Searched refs:background (Results 1 - 25 of 83) sorted by relevance

1234

/frameworks/base/libs/androidfw/tests/data/system/
H A DR.h27 background = 0x01010000, // default
/frameworks/support/design/base/android/support/design/widget/
H A DShadowViewDelegate.java24 void setBackgroundDrawable(Drawable background); argument
/frameworks/base/core/java/android/view/
H A DViewOutlineProvider.java27 * Default outline provider for Views, which queries the Outline from the View's background,
28 * or generates a 0 alpha, rectangular Outline the size of the View if a background
36 Drawable background = view.getBackground();
37 if (background != null) {
38 background.getOutline(outline);
50 * This can be used to enable Views that are opaque but lacking a background cast a shadow.
63 * This can be used to enable Views that are opaque but lacking a background cast a shadow.
/frameworks/base/media/mca/effect/java/android/media/effect/effects/
H A DBackDropperEffect.java31 * Replaces the background of the input video stream with a selected video
32 * Learns the background when it first starts up;
33 * needs unobstructed view of background when this happens.
36 * source: A URI for the background video
54 "@filter MediaSource background {\n" +
69 "@connect background[video] => replacer[background];\n" +
92 Filter background = mGraph.getFilter("background");
93 background
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DAppCompatProgressBarHelper.java79 LayerDrawable background = (LayerDrawable) drawable;
80 final int N = background.getNumberOfLayers();
84 int id = background.getId(i);
85 outDrawables[i] = tileify(background.getDrawable(i),
91 newBg.setId(i, background.getId(i));
122 AnimationDrawable background = (AnimationDrawable) drawable;
123 final int N = background.getNumberOfFrames();
125 newBg.setOneShot(background.isOneShot());
128 Drawable frame = tileify(background.getFrame(i), true);
130 newBg.addFrame(frame, background
[all...]
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 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 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 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 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 DAppCompatSpinner.java58 * <li>Allows dynamic tint of its background via the background tint methods in
60 * <li>Allows setting of the background tint using {@link R.attr#buttonTint} and
304 public void setPopupBackgroundDrawable(Drawable background) { argument
306 mPopup.setBackgroundDrawable(background);
308 super.setPopupBackgroundDrawable(background);
474 public void setBackgroundDrawable(Drawable background) { argument
475 super.setBackgroundDrawable(background);
477 mBackgroundTintHelper.onSetBackgroundDrawable(background);
547 int compatMeasureContentWidth(SpinnerAdapter adapter, Drawable background) { argument
[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);
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/
H A DElementLayoutActivity.java139 int background = 0xff000000;
149 background |= (color << shift);
152 mIndicator.setBackgroundColor(background);
/frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/items/
H A DRecyclerItemAdapter.java44 * not create the default background for the list item. This means the item will not have ripple
98 final Drawable background = typedArray.getDrawable(
101 if (selectableItemBackground == null || background == null) {
104 + " background=" + background);
106 final Drawable[] layers = {background, selectableItemBackground};
/frameworks/support/wear/src/android/support/wear/widget/drawer/
H A DWearableDrawerView.java64 * android:background="@color/red"
173 Drawable background;
177 background = typedArray.getDrawable(index);
179 background = context.getDrawable(backgroundResId);
181 return background;
471 Drawable background =
475 setBackground(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/app/
H A DEnterTransitionCoordinator.java340 Drawable background = decorView.getBackground();
341 if (background == null) {
342 background = new ColorDrawable(Color.TRANSPARENT);
343 mReplacedBackground = background;
346 background = background.mutate();
347 background.setAlpha(0);
349 getWindow().setBackgroundDrawable(background);
583 Drawable background = decorView.getBackground();
584 if (background !
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
H A DNotificationViewWrapper.java81 * In dark mode, we draw as little as possible, assuming a black background.
104 Drawable background = mView.getBackground();
105 if (background instanceof ColorDrawable) {
106 mBackgroundColor = ((ColorDrawable) background).getColor();
170 // Parent notifications should always use the normal background color
/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/tools/aapt2/link/
H A DXmlReferenceLinker_test.cpp37 .AddPublicSymbol("android:attr/background", ResourceId(0x01010001),
82 android:background="@color/green"
103 xml_attr = view_el->FindAttribute(xml::kSchemaAndroid, "background");
/frameworks/support/v7/cardview/src/android/support/v7/widget/
H A DCardViewApi21Impl.java30 final RoundRectDrawable background = new RoundRectDrawable(backgroundColor, radius);
31 cardView.setCardBackground(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;

Completed in 2346 milliseconds

1234