Searched defs:background (Results 1 - 25 of 35) sorted by relevance

12

/frameworks/support/design/base/android/support/design/widget/
H A DShadowViewDelegate.java24 void setBackgroundDrawable(Drawable background); argument
/frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/
H A DAppCompatTintableViewActions.java40 * Sets the passed color state list as the background tint on a {@link View}.
51 return "set background tint list";
66 * Sets the passed mode as the background tint mode on a <code>View</code>.
77 return "set background tint mode";
144 * Sets background drawable on a <code>View</code> that implements the
147 public static ViewAction setBackgroundDrawable(final Drawable background) { argument
156 return "set background drawable";
163 view.setBackgroundDrawable(background);
171 * Sets background resource on a <code>View</code> that implements the
183 return "set background resourc
[all...]
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
H A DStatusBarBackgroundLayout.java34 * inset area, making a background effect for the navigation bar. To make use of this layout,
95 public void setStatusBarBackground(Drawable background) { argument
96 mStatusBarBackground = background;
98 setWillNotDraw(background == null);
99 setFitsSystemWindows(background != null);
H A DIllustration.java39 * drawable to fit the width of the view and fills the rest with the background.
86 * The background will be drawn to fill up the rest of the view. It will also be scaled by the
93 public void setBackgroundDrawable(Drawable background) { argument
94 if (background == mBackground) {
97 mBackground = background;
169 // Scale the background bounds by the same scale to compensate for the scale done to the
180 // Draw the background filling parts not covered by the illustration
183 // Scale the background so its size matches the foreground
/frameworks/base/libs/hwui/tests/unit/
H A DRecordingCanvasTests.cpp287 // a background!
595 sp<RenderNode> background = TestUtils::createNode(50, 50, 150, 150, local
602 background->mutateStagingProperties().setProjectionReceiver(false);
606 [&background](RecordingCanvas& canvas) {
608 canvas.drawRenderNode(background.get());
615 background->mutateStagingProperties().setProjectionReceiver(true);
619 [&background](RecordingCanvas& canvas) {
621 canvas.drawRenderNode(background.get());
632 EXPECT_TRUE(background->stagingProperties().isProjectionReceiver());
633 EXPECT_FALSE(background
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DAppCompatAutoCompleteTextView.java40 * <li>Allows dynamic tint of its background via the background tint methods in
42 * <li>Allows setting of the background tint using {@link R.attr#backgroundTint} and
99 public void setBackgroundDrawable(Drawable background) { argument
100 super.setBackgroundDrawable(background);
102 mBackgroundTintHelper.onSetBackgroundDrawable(background);
H A DAppCompatButton.java42 * <li>Allows dynamic tint of its background via the background tint methods in
44 * <li>Allows setting of the background tint using {@link R.attr#backgroundTint} and
84 public void setBackgroundDrawable(Drawable background) { argument
85 super.setBackgroundDrawable(background);
87 mBackgroundTintHelper.onSetBackgroundDrawable(background);
H A DAppCompatEditText.java39 * <li>Allows dynamic tint of its background via the background tint methods in
41 * <li>Allows setting of the background tint using {@link R.attr#backgroundTint} and
81 public void setBackgroundDrawable(Drawable background) { argument
82 super.setBackgroundDrawable(background);
84 mBackgroundTintHelper.onSetBackgroundDrawable(background);
H A DAppCompatMultiAutoCompleteTextView.java40 * <li>Allows dynamic tint of its background via the background tint methods in
42 * <li>Allows setting of the background tint using {@link R.attr#backgroundTint} and
99 public void setBackgroundDrawable(Drawable background) { argument
100 super.setBackgroundDrawable(background);
102 mBackgroundTintHelper.onSetBackgroundDrawable(background);
H A DAppCompatBackgroundHelper.java75 // Update the default background tint
82 void onSetBackgroundDrawable(Drawable background) { argument
84 // We don't know that this drawable is, so we need to clear the default background tint
117 final Drawable background = mView.getBackground();
118 if (background != null) {
120 && applyFrameworkTintUsingColorFilter(background)) {
127 AppCompatDrawableManager.tintDrawable(background, mBackgroundTint,
130 AppCompatDrawableManager.tintDrawable(background, mInternalBackgroundTint,
152 // On API 22+, if we're using an internal compat background tint, we're also
167 * Applies the framework background tin
171 applyFrameworkTintUsingColorFilter(@onNull Drawable background) argument
[all...]
H A DAppCompatImageButton.java43 * <li>Allows dynamic tint of its background via the background tint methods in
45 * <li>Allows setting of the background tint using {@link R.attr#backgroundTint} and
127 public void setBackgroundDrawable(Drawable background) { argument
128 super.setBackgroundDrawable(background);
130 mBackgroundTintHelper.onSetBackgroundDrawable(background);
H A DAppCompatImageView.java42 * <li>Allows dynamic tint of its background via the background tint methods in
44 * <li>Allows setting of the background tint using {@link R.attr#backgroundTint} and
137 public void setBackgroundDrawable(Drawable background) { argument
138 super.setBackgroundDrawable(background);
140 mBackgroundTintHelper.onSetBackgroundDrawable(background);
H A DAppCompatTextView.java43 * <li>Allows dynamic tint of its background via the background tint methods in
45 * <li>Allows setting of the background tint using {@link R.attr#backgroundTint} and
94 public void setBackgroundDrawable(Drawable background) { argument
95 super.setBackgroundDrawable(background);
97 mBackgroundTintHelper.onSetBackgroundDrawable(background);
/frameworks/base/core/java/android/view/autofill/
H A DAutofillPopupWindow.java266 public void setBackgroundDrawable(Drawable background) { argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DNotificationBackgroundView.java29 * A view that can be used for both the dimmed and normal background of an notification.
79 * Sets a background drawable. As we need to change our bounds independently of layout, we need
80 * the notion of a background independently of the regular View background..
82 public void setCustomBackground(Drawable background) { argument
87 mBackground = background;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DLockscreenWallpaper.java287 ConstantState(Bitmap background) { argument
288 mBackground = background;
/frameworks/native/opengl/tests/gl_jni/jni/
H A Dgl_code.cpp15 GLfloat background; variable
175 glClearColor(background, grey, grey, 1.0f);
182 background = 1.0f - background;
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/
H A DSetupWizardLayout.java97 // Set the background from XML, either directly or built from a bitmap tile
98 final Drawable background =
100 if (background != null) {
101 setLayoutBackground(background);
298 * Set the background of the layout, which is expected to be able to extend infinitely. If it is
301 public void setLayoutBackground(Drawable background) { argument
305 view.setBackgroundDrawable(background);
310 * Set the background of the layout to a repeating bitmap tile. To use a different kind of
/frameworks/support/design/src/android/support/design/internal/
H A DBottomNavigationItemView.java254 public void setItemBackground(int background) { argument
255 Drawable backgroundDrawable = background == 0
256 ? null : ContextCompat.getDrawable(getContext(), background);
H A DBottomNavigationMenuView.java231 * Sets the resource ID to be used for item background.
233 * @param background the resource ID of the background
235 public void setItemBackgroundRes(int background) { argument
236 mItemBackgroundRes = background;
239 item.setItemBackground(background);
244 * Returns the resource ID for the background of the menu items.
246 * @return the resource ID for the background
/frameworks/base/core/java/com/android/internal/graphics/
H A DColorUtils.java48 public static int compositeColors(@ColorInt int foreground, @ColorInt int background) { argument
49 int bgAlpha = Color.alpha(background);
54 Color.red(background), bgAlpha, a);
56 Color.green(background), bgAlpha, a);
58 Color.blue(background), bgAlpha, a);
85 * Returns the contrast ratio between {@code foreground} and {@code background}.
86 * {@code background} must be opaque.
91 public static double calculateContrast(@ColorInt int foreground, @ColorInt int background) { argument
92 if (Color.alpha(background) != 255) {
93 throw new IllegalArgumentException("background ca
118 calculateMinimumAlpha(@olorInt int foreground, @ColorInt int background, float minContrastRatio) argument
[all...]
/frameworks/support/core-utils/java/android/support/v4/graphics/
H A DColorUtils.java47 public static int compositeColors(@ColorInt int foreground, @ColorInt int background) { argument
48 int bgAlpha = Color.alpha(background);
53 Color.red(background), bgAlpha, a);
55 Color.green(background), bgAlpha, a);
57 Color.blue(background), bgAlpha, a);
84 * Returns the contrast ratio between {@code foreground} and {@code background}.
85 * {@code background} must be opaque.
90 public static double calculateContrast(@ColorInt int foreground, @ColorInt int background) { argument
91 if (Color.alpha(background) != 255) {
92 throw new IllegalArgumentException("background ca
117 calculateMinimumAlpha(@olorInt int foreground, @ColorInt int background, float minContrastRatio) argument
[all...]
/frameworks/base/core/java/android/view/
H A DTextureView.java314 public void setBackgroundDrawable(Drawable background) { argument
315 if (background != null && !sTextureViewIgnoresDrawableSetters) {
317 "TextureView doesn't support displaying a background drawable");
332 /* Simplify drawing to guarantee the layer is the only thing drawn - so e.g. no background,
/frameworks/base/core/java/com/android/internal/util/
H A DNotificationColorUtil.java255 * @param findFg if true, we assume {@param color} is a foreground, otherwise a background.
325 * @param findFg if true, we assume {@param color} is a foreground, otherwise a background.
379 /** Finds a background color for a text view with given text color and hint text color, that
408 * @param backgroundColor the background color to ensure the contrast against.
426 + " and %s (over background) by changing #%s to %s",
543 public static int compositeColors(int foreground, int background) { argument
544 return ColorUtilsFromCompat.compositeColors(foreground, background);
571 public static int compositeColors(@ColorInt int foreground, @ColorInt int background) { argument
572 int bgAlpha = Color.alpha(background);
577 Color.red(background), bgAlph
614 calculateContrast(@olorInt int foreground, @ColorInt int background) argument
[all...]
/frameworks/support/design/src/android/support/design/widget/
H A DFloatingActionButton.java63 * <p>The background color of this view defaults to the your theme's {@code colorAccent}. If you
234 * Returns the tint applied to the background drawable, if specified.
236 * @return the tint applied to the background drawable
246 * Applies a tint to the background drawable. Does not modify the current tint
260 * Returns the blending mode used to apply the tint to the background
263 * @return the blending mode used to apply the tint to the background
275 * {@link #setBackgroundTintList(ColorStateList)}} to the background
290 public void setBackgroundDrawable(Drawable background) { argument
291 Log.i(LOG_TAG, "Setting a custom background is not supported.");
296 Log.i(LOG_TAG, "Setting a custom background i
823 setBackgroundDrawable(Drawable background) argument
[all...]

Completed in 4291 milliseconds

12