/frameworks/support/design/src/android/support/design/widget/ |
H A D | CoordinatorLayout.java | 327 * @param color Color to use as a background drawable to draw behind the status bar 330 public void setStatusBarBackgroundColor(@ColorInt int color) { argument 331 setStatusBarBackground(new ColorDrawable(color)); 1746 * Supply a scrim color that will be painted behind the associated child view. 1756 * @return the desired scrim color in 0xAARRGGBB format. The default return value is
|
H A D | TabLayout.java | 335 // If we have an explicit text color set, use it instead 340 // We have an explicit selected text color set, so we need to make merge it with the 367 * Sets the tab indicator's color for the currently selected tab. 369 * @param color color to use for the indicator 373 public void setSelectedTabIndicatorColor(@ColorInt int color) { argument 374 mTabStrip.setSelectedIndicatorColor(color); 1817 void setSelectedIndicatorColor(int color) { argument 1818 if (mSelectedIndicatorPaint.getColor() != color) { 1819 mSelectedIndicatorPaint.setColor(color); [all...] |
/frameworks/support/graphics/drawable/static/src/android/support/graphics/drawable/ |
H A D | VectorDrawableCompat.java | 253 * Ensures the tint filter is consistent with the current tint color and 263 final int color = tint.getColorForState(getState(), Color.TRANSPARENT); 264 return new PorterDuffColorFilter(color, tintMode); 440 private static int applyAlpha(int color, float alpha) { argument 441 int alphaBytes = Color.alpha(color); 442 color &= 0x00FFFFFF; 443 color |= ((int) (alphaBytes * alpha)) << 24; 444 return color;
|
/frameworks/support/recommendation/src/android/support/app/recommendation/ |
H A D | ContentRecommendation.java | 423 * Returns the accent color value to be used in the UI when displaying this content 426 * @return An integer value representing the accent color for this recommendation. 822 * Sets the accent color value to be used in the UI when displaying this content 825 * @param color An integer value representing the accent color for this recommendation. 828 public Builder setColor(@ColorInt int color) { argument 829 mBuilderColor = color;
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
H A D | BrowseFragment.java | 676 * Sets the brand color for the browse fragment. The brand color is used as 677 * the primary color for UI elements in the browse fragment. For example, 678 * the background color of the headers fragment uses the brand color. 680 * @param color The color to use as the brand color of the fragment. 682 public void setBrandColor(@ColorInt int color) { argument 683 mBrandColor = color; [all...] |
H A D | BrowseSupportFragment.java | 678 * Sets the brand color for the browse fragment. The brand color is used as 679 * the primary color for UI elements in the browse fragment. For example, 680 * the background color of the headers fragment uses the brand color. 682 * @param color The color to use as the brand color of the fragment. 684 public void setBrandColor(@ColorInt int color) { argument 685 mBrandColor = color; [all...] |
/frameworks/support/v4/java/android/support/v4/widget/ |
H A D | SlidingPaneLayout.java | 105 * If no fade color is given by default it will fade to 80% gray. 110 * The fade color used for the sliding panel. 0 = no fading. 120 * The fade color used for the panel covered by the slider. 0 = no fading. 300 * Set the color used to fade the sliding pane out when it is slid most of the way offscreen. 302 * @param color An ARGB-packed color value 304 public void setSliderFadeColor(@ColorInt int color) { argument 305 mSliderFadeColor = color; 309 * @return The ARGB-packed color value used to fade the sliding pane 317 * Set the color use 322 setCoveredFadeColor(@olorInt int color) argument [all...] |
H A D | SwipeRefreshLayout.java | 495 * Set the background color of the progress spinner disc. 497 * @param colorRes Resource id of the color. 504 * Set the background color of the progress spinner disc. 506 * @param color 508 public void setProgressBackgroundColorSchemeColor(@ColorInt int color) { argument 509 mCircleView.setBackgroundColor(color); 510 mProgress.setBackgroundColor(color); 522 * Set the color resources used in the progress animation from color resources. 523 * The first color wil [all...] |
H A D | DrawerLayout.java | 506 * Set a color to use for the scrim that obscures primary content while a drawer is open. 508 * @param color Color to use in 0xAARRGGBB format. 510 public void setScrimColor(@ColorInt int color) { argument 511 mScrimColor = color; 1326 * @param color Color to use as a background drawable to draw behind the status bar 1329 public void setStatusBarBackgroundColor(@ColorInt int color) { argument 1330 mStatusBarBackground = new ColorDrawable(color); 1383 final int color = imag << 24 | (mScrimColor & 0xffffff); 1384 mScrimPaint.setColor(color);
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | Toolbar.java | 108 * <p>In modern Android UIs developers should lean more on a visually distinct color scheme for 828 * Sets the text color, size, style, hint color, and highlight color 839 * Sets the text color, size, style, hint color, and highlight color 850 * Sets the text color of the title, if present. 852 * @param color The new text color i 854 setTitleTextColor(@olorInt int color) argument 866 setSubtitleTextColor(@olorInt int color) argument [all...] |
/frameworks/base/core/java/android/view/ |
H A D | Window.java | 258 * Flag for letting the theme drive the color of the window caption controls. Use with 263 * Flag for setting light-color controls on the window caption. Use with 268 * Flag for setting dark-color controls on the window caption. Use with 1415 * with the color 0 or the system drawable android:drawable/empty.) 1428 * with the color 0 or the system drawable android:drawable/empty.) 2108 * @return the color of the status bar. 2114 * Sets the color of the status bar to {@code color}. 2121 * If {@code color} is not opaque, consider setting 2128 public abstract void setStatusBarColor(@ColorInt int color); argument 2151 setNavigationBarColor(@olorInt int color) argument [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | RemoteViews.java | 1938 * Helper action to set a color filter on a compound drawable on a TextView. Supports relative 1943 int color, PorterDuff.Mode mode) { 1947 this.color = color; 1955 color = parcel.readInt(); 1973 dest.writeInt(color); 1990 d.setColorFilter(color, mode); 2000 final int color; field in class:RemoteViews.TextViewDrawableColorFilterAction 2493 * Equivalent to applying a color filter on one of the drawables in 2498 * {@link android.widget.TextView#getCompoundDrawablesRelative()} to set the color 1942 TextViewDrawableColorFilterAction(int viewId, boolean isRelative, int index, int color, PorterDuff.Mode mode) argument 2506 setTextViewCompoundDrawablesRelativeColorFilter(int viewId, int index, int color, PorterDuff.Mode mode) argument 2786 setTextColor(int viewId, @ColorInt int color) argument [all...] |
/frameworks/base/core/java/com/android/internal/policy/ |
H A D | DecorView.java | 246 R.color.system_bar_background_semi_transparent, null /* theme */); 1114 return state.color; 1121 * Update a color view 1123 * @param state the color view to update. 1125 * @param color the current color to apply. 1129 * @param rightMargin rightMargin for the color view. 1132 private void updateColorViewInt(final ColorViewState state, int sysUiVis, int color, argument 1139 && (color & Color.BLACK) != 0 1153 view.setBackgroundColor(color); 2213 int color; field in class:DecorView.ColorViewState [all...] |
H A D | PhoneWindow.java | 3784 public void setStatusBarColor(int color) { argument 3785 mStatusBarColor = color; 3798 public void setNavigationBarColor(int color) { argument 3799 mNavigationBarColor = color;
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | Canvas.java | 339 * The layer requires full 8-bit precision for each color channel. 404 * to apply an xfermode, color filter, or alpha, as it will perform much 465 * to apply an xfermode, color filter, or alpha, as it will perform much 965 * specified RGB color, using srcover porterduff mode. 967 * @param r red component (0..255) of the color to draw onto the canvas 968 * @param g green component (0..255) of the color to draw onto the canvas 969 * @param b blue component (0..255) of the color to draw onto the canvas 977 * specified ARGB color, using srcover porterduff mode. 979 * @param a alpha component (0..255) of the color to draw onto the canvas 980 * @param r red component (0..255) of the color t 994 drawColor(@olorInt int color) argument 1005 drawColor(@olorInt int color, @NonNull PorterDuff.Mode mode) argument 2049 native_drawColor(long nativeCanvas, int color, int mode) argument [all...] |
H A D | Paint.java | 36 * The Paint class holds the style and color information about how to draw 341 * both (in the same color). The default is FILL. 851 * Return the paint's color. Note that the color is a 32bit value 856 * @return the paint's color (and alpha). 866 * Set the paint's color. Note that the color is an int containing alpha 871 * @param color The new color (including alpha) to set in the paint. 873 public void setColor(@ColorInt int color) { argument 877 nSetColor(long paintPtr, @ColorInt int color) argument 2702 nSetShadowLayer(long paintPtr, float radius, float dx, float dy, int color) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | OpenGLRenderer.cpp | 592 * is drawn with the rgba color (0,0,0,alpha). The alpha value offered by the 1328 // The last parameter is important: we are not drawing in the color buffer 1586 * TODO: handle alpha_8 textures correctly by applying paint color, but *not* 1712 * translucency of the color from its position, we simply use a varying parameter to define how far 1772 void OpenGLRenderer::drawColor(int color, SkXfermode::Mode mode) { argument 1780 paint.setColor(color); 1987 .setFillShadowTexturePaint(*texture, textShadow.color, *paint, currentSnapshot()->alpha)
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | ExpandableNotificationRow.java | 692 getStatusBarNotification().getNotification().color); 1386 public static void applyTint(View v, int color) { argument 1388 if (color != 0) { 1391 color = 0xff000000; 1397 background.setColor(color); 1542 // and has a custom background color
|
/frameworks/native/opengl/libagl/ |
H A D | context.h | 148 vec4_t color; member in struct:android::gl::vertex_t 203 array_t color; member in struct:android::gl::array_machine_t
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
H A D | HWC2On1Adapter.cpp | 1205 // We can only do this after attempting to read the color transform 1509 static std::string colorString(hwc_color_t color) argument 1513 output << static_cast<int32_t>(color.r) << ", "; 1514 output << static_cast<int32_t>(color.g) << ", "; 1515 output << static_cast<int32_t>(color.b) << ", "; 1516 output << static_cast<int32_t>(color.a) << "]"; 1715 ALOGE("Unable to find HWC1 ID for color mode %d on config %u", mode, mId); 2031 Error HWC2On1Adapter::Layer::setColor(hwc_color_t color) argument 2033 mColor.setPending(color); 2277 // HWC1 never supports color transform [all...] |
/frameworks/rs/driver/ |
H A D | rsdRuntimeStubs.cpp | 1079 void color(float r, float g, float b, float a) { function
|
/frameworks/base/core/java/android/app/admin/ |
H A D | DevicePolicyManager.java | 514 * A integer extra indicating the predominant color to show during the provisioning. 515 * Refer to {@link android.graphics.Color} for how the color is represented. 6166 * Called by a profile owner of a managed profile to set the color used for customization. This 6167 * color is used as background color of the confirm credentials screen for that user. The 6168 * default color is teal (#00796B). 6174 * @param color The 24bit (0xRRGGBB) representation of the color to be used. 6177 public void setOrganizationColor(@NonNull ComponentName admin, int color) { argument 6181 color | 6199 setOrganizationColorForUser(@olorInt int color, @UserIdInt int userId) argument [all...] |
/frameworks/base/core/java/android/webkit/ |
H A D | WebView.java | 2618 public void setBackgroundColor(int color) { argument 2619 mProvider.getViewDelegate().setBackgroundColor(color);
|
/frameworks/base/media/java/android/media/ |
H A D | Cea708CaptionRenderer.java | 712 // TODO : with a solid foreground color. 830 * CEA-708B-specific color. 913 * {@link CaptionColor} objects that indicate the foreground, background, and edge color of a 1638 private void setPenColor(Cea708CCParser.CaptionPenColor color) { argument 1640 mCurrentWindowLayout.setPenColor(color);
|
/frameworks/base/services/core/java/com/android/server/power/ |
H A D | PowerManagerService.java | 2561 private void setAttentionLightInternal(boolean on, int color) { argument 2571 light.setFlashing(color, Light.LIGHT_FLASH_HARDWARE, (on ? 3 : 0), 0); 3589 public void setAttentionLight(boolean on, int color) { argument 3595 setAttentionLightInternal(on, color);
|