/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
H A D | DrawRectFilter.java | 55 "uniform vec4 color;\n" + 57 " gl_FragColor = color;\n" + 113 float[] color = {mColorRed, mColorGreen, mColorBlue, 1f}; 120 mProgram.setHostValue("color", color);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/ |
H A D | MinimizedDockShadow.java | 55 R.color.minimize_dock_shadow_start, null); 57 R.color.minimize_dock_shadow_end, null);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | NotificationBackgroundView.java | 134 public void setRippleColor(int color) { argument 137 ripple.setColor(ColorStateList.valueOf(color));
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | DisplayListLayersActivity.java | 94 LayerView(Context context, int color, int layerType, String tag) { argument 99 mPaint.setColor(color);
|
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/ |
H A D | TextViewBindingAdapter.java | 282 public static void setShadowColor(TextView view, int color) { argument 287 view.setShadowLayer(r, dx, dy, color); 294 int color = view.getShadowColor(); 297 view.setShadowLayer(r, dx, dy, color); 304 int color = view.getShadowColor(); 307 view.setShadowLayer(r, dx, dy, color); 314 int color = view.getShadowColor(); 317 view.setShadowLayer(r, dx, dy, color);
|
/frameworks/support/v7/cardview/api21/android/support/v7/widget/ |
H A D | CardViewApi21.java | 109 public void setBackgroundColor(CardViewDelegate cardView, @Nullable ColorStateList color) { argument 110 getCardBackground(cardView).setColor(color);
|
/frameworks/base/core/java/android/widget/ |
H A D | DatePickerCalendarDelegate.java | 129 // color from the header month text appearance. If it's set, we'll let 130 // that override the "real" header text color. 189 * The legacy text color might have been poorly defined. Ensures that it 191 * exists or modifying the default text color otherwise. 193 * @param color a legacy text color, or {@code null} 194 * @return a color state list with an appropriate activated state, or 198 private ColorStateList applyLegacyColorFixes(@Nullable ColorStateList color) { argument 199 if (color == null || color 229 multiplyAlphaComponent(int color, float alphaMod) argument [all...] |
H A D | CalendarViewLegacyDelegate.java | 354 public void setSelectedWeekBackgroundColor(int color) { argument 355 if (mSelectedWeekBackgroundColor != color) { 356 mSelectedWeekBackgroundColor = color; 373 public void setFocusedMonthDateColor(int color) { argument 374 if (mFocusedMonthDateColor != color) { 375 mFocusedMonthDateColor = color; 392 public void setUnfocusedMonthDateColor(int color) { argument 393 if (mUnfocusedMonthDateColor != color) { 394 mUnfocusedMonthDateColor = color; 411 public void setWeekNumberColor(int color) { argument 426 setWeekSeparatorLineColor(int color) argument [all...] |
/frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/engine/ |
H A D | vr.rs | 36 // material color
125 uchar4 color = rsGetElementAt_uchar4(color_map, intensity * 2);
128 out.r = color.r;
129 out.g = color.g;
130 out.b = color.b;
164 uchar4 color = rsGetElementAt_uchar4(color_map, intensity * 2);
166 float4 fcolor = convert_float4(color);;
259 uchar4 color = rsGetElementAt_uchar4(color_map, intensity * 2);
261 float4 fcolor = convert_float4(color);;
|
/frameworks/support/customtabs/src/android/support/customtabs/ |
H A D | CustomTabsIntent.java | 56 * Extra that changes the background color for the toolbar. colorRes is an int that specifies a 108 * Extra that changes the background color for the secondary toolbar. The value should be an 287 * Sets the toolbar color. 289 * @param color {@link Color} 291 public Builder setToolbarColor(@ColorInt int color) { argument 292 mIntent.putExtra(EXTRA_TOOLBAR_COLOR, color); 423 * Sets the color of the secondary toolbar. 424 * @param color The color for the secondary toolbar. 426 public Builder setSecondaryToolbarColor(@ColorInt int color) { argument [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | MediaRowFocusView.java | 61 R.color.lb_playback_media_row_highlight_color));
|
/frameworks/support/v4/donut/android/support/v4/graphics/drawable/ |
H A D | DrawableWrapperDonut.java | 33 * Also allows backward compatible tinting via a color or {@link ColorStateList}. 286 final int color = tintList.getColorForState(state, tintList.getDefaultColor()); 287 if (!mColorFilterSet || color != mCurrentColor || tintMode != mCurrentMode) { 288 setColorFilter(color, tintMode); 289 mCurrentColor = color;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | BatteryMeterDrawable.java | 152 mChargeColor = context.getColor(R.color.batterymeter_charge_color); 155 mBoltPaint.setColor(context.getColor(R.color.batterymeter_bolt_color)); 162 context.getColor(R.color.dark_mode_icon_color_dual_tone_background); 163 mDarkModeFillColor = context.getColor(R.color.dark_mode_icon_color_dual_tone_fill); 165 context.getColor(R.color.light_mode_icon_color_dual_tone_background); 166 mLightModeFillColor = context.getColor(R.color.light_mode_icon_color_dual_tone_fill); 275 // If we are in power save mode, always use the normal color. 279 int thresh, color = 0; 282 color = mColors[i+1]; 289 return color; [all...] |
/frameworks/rs/api/ |
H A D | rs_graphics.spec | 245 summary: Set the color target 247 Set the color target used for all subsequent rendering calls 385 summary: Clear all color and depth targets 387 Clear all color and depth targets and resume rendering into 401 summary: Clear the specified color from the surface 403 Clears the rendering surface to the specified color. 413 summary: Clear the color target 415 Clear the previously set color target 616 summary: Set the font color 618 Sets the font color fo [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/ |
H A D | UsageGraph.java | 90 mDottedPaint.setColor(context.getColor(R.color.usage_graph_dots)); 126 void setAccentColor(int color) { argument 127 mAccentColor = color; 196 private int getColor(int color, float alphaScale) { argument 197 return (color & (((int) (0xff * alphaScale) << 24) | 0xffffff));
|
/frameworks/native/opengl/libagl/ |
H A D | array.cpp | 109 c->arrays.color.size = 4; 110 c->arrays.color.type = GL_FLOAT; 137 memcpy(v, c->current.color.v, sizeof(vec4_t)); 439 case GL_COLOR_ARRAY: a = &c->arrays.color; break; 1050 clipVec4(nv->color, t, s->color, p->color); 1067 clipVec4(nv->color, t, s->color, p->color); [all...] |
/frameworks/base/tools/aapt/ |
H A D | Images.cpp | 187 png_uint_32 color = p[0] | (p[1] << 8) | (p[2] << 16) | (p[3] << 24); local 193 if (color == COLOR_LAYOUT_BOUNDS_TICK) { 196 if (color == COLOR_TICK) { 212 *outError = "White frame must be a solid color (no alpha)"; 214 if (color == COLOR_WHITE) { 217 if (color == COLOR_TICK) { 220 if (color == COLOR_LAYOUT_BOUNDS_TICK) { 419 png_byte* color = rows[y] + x * 4; local 420 uint8_t opacity = color[3]; 514 png_bytep color local [all...] |
/frameworks/base/tools/aapt2/compile/ |
H A D | Png.cpp | 191 printf("Unknown color type %d.\n", color_type); 315 printf("Found 257th color at %d, %d\n", i, j); 340 // Choose the best color type for the image. 355 *colorType = PNG_COLOR_TYPE_PALETTE; // 1 byte/pixel + 4 bytes/color 374 // color type chosen 608 png_uint_32 color = p[0] | (p[1] << 8) | (p[2] << 16) | (p[3] << 24); local 614 if (color == kColorLayoutBoundsTick) { 617 if (color == kColorTick) { 635 *outError = "White frame must be a solid color (no alpha)"; 637 if (color 822 png_byte* color = rows[y] + x * 4; local 913 png_bytep color = rows[top] + left*4; local [all...] |
/frameworks/base/media/java/android/media/ |
H A D | ClosedCaptionRenderer.java | 525 int color = (data2 >> 1) & 0x7; 531 if (color == COLOR_INVALID) { 533 color = COLOR_WHITE; 537 return new StyleCode(style, color); 540 StyleCode(int style, int color) { argument 542 mColor = color; 591 int color = (data2 >> 1) & 0x7; 593 if (color == COLOR_INVALID) { 595 color = COLOR_WHITE; 598 return new PAC(row, -1, style, color); 602 PAC(int row, int col, int style, int color) argument 636 MutableBackgroundColorSpan(int color) argument 640 setBackgroundColor(int color) argument 1403 setBackgroundSpans(int color) argument [all...] |
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/ |
H A D | TimePickerDialog.java | 203 mSelectedColor = res.getColor(mThemeDark? R.color.red : R.color.blue); 205 res.getColor(mThemeDark? android.R.color.white : R.color.numbers_text_color); 318 int white = res.getColor(android.R.color.white); 319 int circleBackground = res.getColor(R.color.circle_background); 320 int line = res.getColor(R.color.line_background); 321 int timeDisplay = res.getColor(R.color.numbers_text_color); 322 ColorStateList doneTextColor = res.getColorStateList(R.color.done_text_color); 325 int darkGray = res.getColor(R.color [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
H A D | BackgroundManager.java | 73 * <li>a solid color (set via {@link #setColor})</li> 171 throw new IllegalStateException("Can't draw with translucent alpha and color filter"); 251 public void setColor(int color) { argument 252 ((ColorDrawable) mDrawable).setColor(color); 356 * Optimizes drawing when the dim drawable is an alpha-only color and imagein is opaque. 402 int color = Color.argb(getAlpha(), dimAlpha, dimAlpha, dimAlpha); 403 mColorFilter = new PorterDuffColorFilter(color, PorterDuff.Mode.MULTIPLY); 546 public void setColor(int color) { argument 547 mColor = color; 726 if (DEBUG) Log.v(TAG, "onActivityStart " + this + " updating service color " 968 setColor(@olorInt int color) argument [all...] |
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/ |
H A D | DirectoryItemAnimator.java | 37 * new Item, this class manually animates a background color change. This enables selected Items to 48 mDefaultColor = context.getResources().getColor(R.color.item_doc_background); 49 mSelectedColor = context.getResources().getColor(R.color.item_doc_background_selected); 140 * Animates changes in background color.
|
H A D | DocumentHolder.java | 63 mDefaultBgColor = context.getColor(R.color.item_doc_background); 64 mSelectedBgColor = context.getColor(R.color.item_doc_background_selected);
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
H A D | KeyguardAbsKeyInputView.java | 249 public void showMessage(String message, int color) { argument 250 mSecurityMessageDisplay.setNextMessageColor(color);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | UserAvatarView.java | 93 public void setFrameColor(ColorStateList color) { argument 94 mDrawable.setFrameColor(color);
|