Searched refs:color (Results 26 - 50 of 332) sorted by relevance

1234567891011>>

/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DSpeechOrbView.java35 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/opt/datetimepicker/src/com/android/datetimepicker/time/
H A DCircleView.java51 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);
H A DAmPmCirclesView.java77 mUnselectedColor = res.getColor(android.R.color.white);
78 mSelectedColor = res.getColor(R.color.blue);
79 mAmPmTextColor = res.getColor(R.color.ampm_text_color);
104 mUnselectedColor = res.getColor(R.color.dark_gray);
105 mSelectedColor = res.getColor(R.color.red);
106 mAmPmTextColor = res.getColor(android.R.color.white);
109 mUnselectedColor = res.getColor(android.R.color.white);
110 mSelectedColor = res.getColor(R.color.blue);
111 mAmPmTextColor = res.getColor(R.color.ampm_text_color);
/frameworks/base/core/java/android/text/
H A DTextPaint.java78 * @param color underline solid color
82 public void setUnderlineText(int color, float thickness) { argument
83 underlineColor = color;
/frameworks/base/core/java/android/text/style/
H A DBackgroundColorSpan.java29 public BackgroundColorSpan(int color) { argument
30 mColor = color;
H A DForegroundColorSpan.java30 public ForegroundColorSpan(@ColorInt int color) { argument
31 mColor = color;
/frameworks/rs/driver/
H A DrsdFrameBufferObj.h30 void setColorTarget(DrvAllocation *color, uint32_t index) { argument
31 mColorTargets[index] = color;
H A DrsdFrameBuffer.cpp49 // Now attach color targets
51 DrvAllocation *color = nullptr; local
53 color = (DrvAllocation *)fb->mHal.state.colorTargets[i]->mHal.drv;
55 if (color->uploadDeferred) {
60 fbo->setColorTarget(color, i);
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DKeyguardSecurityView.java89 * Show a message on the security view with a specified color
92 * @param color the color to use
94 void showMessage(String message, int color); argument
/frameworks/native/opengl/libagl/
H A Dvertex.cpp36 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/design/base/android/support/design/widget/
H A DFloatingActionButtonImpl.java69 resources.getColor(R.color.design_fab_stroke_top_outer_color),
70 resources.getColor(R.color.design_fab_stroke_top_inner_color),
71 resources.getColor(R.color.design_fab_stroke_end_inner_color),
72 resources.getColor(R.color.design_fab_stroke_end_outer_color));
/frameworks/base/libs/hwui/
H A DGlop.h103 const void* color; member in struct:android::uirenderer::Glop::Mesh::Vertices
123 FloatColor color; member in struct:android::uirenderer::Glop::Fill
131 FloatColor color; member in union:android::uirenderer::Glop::Fill::Filter
H A DVertex.h80 * Simple structure to describe a vertex with a position, texture UV and ARGB color.
88 float u, float v, int color) {
90 float a = ((color >> 24) & 0xff) / 255.0f;
91 float r = a * ((color >> 16) & 0xff) / 255.0f;
92 float g = a * ((color >> 8) & 0xff) / 255.0f;
93 float b = a * ((color) & 0xff) / 255.0f;
87 set(ColorTextureVertex* vertex, float x, float y, float u, float v, int color) argument
/frameworks/base/docs/html/ndk/reference/
H A Ddoxygen.css22 color: #585858;
96 background-color: #F1F1F1;
113 color: #646464;
119 color: #747474;
132 background-color: #B8B8B8;
133 color: #ffffff;
138 color: #ffffff;
149 color: #4665A2;
153 color: #4665A2;
164 background-color
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DImageUtils.java35 // 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/native/opengl/tests/hwc/
H A DhwcTestLib.cpp301 // Parse fractional color of form [0.##, 0.##, 0.##]
307 ColorFract color; local
317 if (!in || ((chStart != '<') && (chStart != '['))) { return color; }
321 if (!in) { return color; }
322 if ((c1 < 0.0) || (c1 > 1.0)) { return color; }
324 if (!in || (ch != ',')) { return color; }
328 if (!in) { return color; }
329 if ((c2 < 0.0) || (c2 > 1.0)) { return color; }
331 if (!in || (ch != ',')) { return color; }
335 if (!in) { return color; }
545 hwcTestColor2Pixel(uint32_t format, ColorFract color, float alpha) argument
653 hwcTestFillColor(GraphicBuffer *gBuf, ColorFract color, float alpha) argument
792 hwcTestColorConvert(uint32_t fromFormat, uint32_t toFormat, ColorFract& color) argument
[all...]
/frameworks/support/v4/java/android/support/v4/graphics/
H A DColorUtils.java22 * A set of color-related utility methods, building upon those available in {@code Color}.
59 * Returns the luminance of a color.
63 public static double calculateLuminance(int color) { argument
64 double red = Color.red(color) / 255d;
67 double green = Color.green(color) / 255d;
70 double blue = Color.blue(color) / 255d;
104 * @param foreground the foreground color.
105 * @param background the background color. Should be opaque.
199 * Convert the ARGB color to its HSL (hue-saturation-lightness) components.
206 * @param color th
209 colorToHSL(int color, float[] hsl) argument
282 setAlphaComponent(int color, int alpha) argument
[all...]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DGraphExporter.java117 String color = filter.getSignature().getOutputPortInfo(portName).isRequired()
121 " [shape=point,label=\"\",color=" + color + "];\n" +
124 "dummy" + dummyNodeCounter + " [color=" + color + "];\n");
135 String color = filter.getSignature().getInputPortInfo(portName).isRequired()
139 " [shape=point,label=\"\",color=" + color + "];\n" +
142 getDotName(portName) + "_IN [color=" + color
[all...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DResourceHelper.java67 * Returns the color value represented by the given string value
68 * @param value the color value
69 * @return the color as an int
94 char[] color = new char[8];
95 color[0] = color[1] = 'F';
96 color[2] = color[3] = value.charAt(0);
97 color[4] = color[
[all...]
/frameworks/opt/colorpicker/src/com/android/colorpicker/
H A DColorPickerPalette.java31 * A color picker custom view which creates an grid of color squares. The number of squares per
103 for (int color : colors) {
104 View colorSwatch = createColorSwatch(color, selectedColor);
105 setSwatchDescription(rowNumber, tableElements, rowElements, color == selectedColor,
184 * Creates a color swatch.
186 private ColorPickerSwatch createColorSwatch(int color, int selectedColor) { argument
187 ColorPickerSwatch view = new ColorPickerSwatch(getContext(), color,
188 color == selectedColor, mOnColorSelectedListener);
H A DColorPickerDialog.java32 * select a specific color swatch, which invokes a listener.
128 public void onColorSelected(int color) { argument
130 mListener.onColorSelected(color);
136 listener.onColorSelected(color);
139 if (color != mSelectedColor) {
140 mSelectedColor = color;
141 // Redraw palette to show checkmark on newly selected color before dismissing.
178 public void setSelectedColor(int color) { argument
179 if (mSelectedColor != color) {
180 mSelectedColor = color;
[all...]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/
H A DColorOverlayDimmer.java25 * Helper class for assigning a dim color to Paint. It holds the alpha value for
45 context.getResources().getColor(R.color.lb_view_dim_mask_color));
55 * Creates a ColorOverlayDimmer for the given color and levels.
57 * @param dimColor The color for fully dimmed. Only the RGB values are
124 * Change the RGB of the color according to current dim level. Maintains the
125 * alpha value of the color.
127 * @param color The color to apply the dim level to.
128 * @return A color with the RGB values adjusted by the alpha of the current
131 public int applyToColor(int color) { argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DDataUsageGraph.java47 mTrackColor = context.getColor(R.color.data_usage_graph_track);
48 mUsageColor = context.getColor(R.color.system_accent_color);
49 mOverlimitColor = context.getColor(R.color.system_warning_color);
50 mWarningColor = context.getColor(R.color.data_usage_graph_warning);
/frameworks/base/tests/LockTaskTests/src/com/google/android/example/locktasktests/
H A DLaunchActivity.java47 final int color = activityManager.getLockTaskModeState() !=
49 findViewById(R.id.root_launch).setBackgroundColor(color);
/frameworks/support/design/lollipop/android/support/design/widget/
H A DCircularBorderDrawableLollipop.java74 * Ensures the tint filter is consistent with the current tint color and
82 final int color = tint.getColorForState(getState(), Color.TRANSPARENT);
83 return new PorterDuffColorFilter(color, tintMode);

Completed in 1097 milliseconds

1234567891011>>