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

1234

/frameworks/base/libs/androidfw/tests/data/system/
H A DR.h25 background = 0x01010000, // default enumerator in enum:android::R::attr::__anon1043
/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.java81 LayerDrawable background = (LayerDrawable) drawable;
82 final int N = background.getNumberOfLayers();
86 int id = background.getId(i);
87 outDrawables[i] = tileify(background.getDrawable(i),
93 newBg.setId(i, background.getId(i));
124 AnimationDrawable background = (AnimationDrawable) drawable;
125 final int N = background.getNumberOfFrames();
127 newBg.setOneShot(background.isOneShot());
130 Drawable frame = tileify(background.getFrame(i), true);
132 newBg.addFrame(frame, background
[all...]
H A DAppCompatBackgroundHelper.java70 // Update the default background tint
76 void onSetBackgroundDrawable(Drawable background) { argument
77 // We don't know that this drawable is, so we need to clear the default background tint
110 final Drawable background = mView.getBackground();
111 if (background != null) {
112 if (Build.VERSION.SDK_INT == 21 && applyFrameworkTintUsingColorFilter(background)) {
121 AppCompatDrawableManager.tintDrawable(background, mBackgroundTint,
124 AppCompatDrawableManager.tintDrawable(background, mInternalBackgroundTint,
144 * Applies the framework background tint to a view, but using the compat method (ColorFilter)
148 private boolean applyFrameworkTintUsingColorFilter(@NonNull Drawable background) { argument
[all...]
H A DAppCompatAutoCompleteTextView.java36 * <li>Allows dynamic tint of it background via the background tint methods in
38 * <li>Allows setting of the background tint using {@link R.attr#backgroundTint} and
102 public void setBackgroundDrawable(Drawable background) { argument
103 super.setBackgroundDrawable(background);
105 mBackgroundTintHelper.onSetBackgroundDrawable(background);
H A DAppCompatButton.java38 * <li>Allows dynamic tint of it background via the background tint methods in
40 * <li>Allows setting of the background tint using {@link R.attr#backgroundTint} and
82 public void setBackgroundDrawable(Drawable background) { argument
83 super.setBackgroundDrawable(background);
85 mBackgroundTintHelper.onSetBackgroundDrawable(background);
H A DAppCompatEditText.java36 * <li>Allows dynamic tint of it background via the background tint methods in
38 * <li>Allows setting of the background tint using {@link R.attr#backgroundTint} and
80 public void setBackgroundDrawable(Drawable background) { argument
81 super.setBackgroundDrawable(background);
83 mBackgroundTintHelper.onSetBackgroundDrawable(background);
H A DAppCompatImageButton.java34 * <li>Allows dynamic tint of it background via the background tint methods in
36 * <li>Allows setting of the background tint using {@link R.attr#backgroundTint} and
83 public void setBackgroundDrawable(Drawable background) { argument
84 super.setBackgroundDrawable(background);
86 mBackgroundTintHelper.onSetBackgroundDrawable(background);
H A DAppCompatImageView.java34 * <li>Allows dynamic tint of it background via the background tint methods in
36 * <li>Allows setting of the background tint using {@link R.attr#backgroundTint} and
83 public void setBackgroundDrawable(Drawable background) { argument
84 super.setBackgroundDrawable(background);
86 mBackgroundTintHelper.onSetBackgroundDrawable(background);
H A DAppCompatMultiAutoCompleteTextView.java36 * <li>Allows dynamic tint of it background via the background tint methods in
38 * <li>Allows setting of the background tint using {@link R.attr#backgroundTint} and
102 public void setBackgroundDrawable(Drawable background) { argument
103 super.setBackgroundDrawable(background);
105 mBackgroundTintHelper.onSetBackgroundDrawable(background);
H A DAppCompatTextView.java36 * <li>Allows dynamic tint of it background via the background tint methods in
38 * <li>Allows setting of the background tint using {@link R.attr#backgroundTint} and
80 public void setBackgroundDrawable(Drawable background) { argument
81 super.setBackgroundDrawable(background);
83 mBackgroundTintHelper.onSetBackgroundDrawable(background);
H A DAppCompatImageHelper.java84 final Drawable background = mView.getBackground();
86 && background instanceof android.graphics.drawable.RippleDrawable) {
H A DAppCompatSpinner.java55 * <li>Dynamic tinting of the background via the background tint methods in
57 * <li>Configuring the background tint using {@link R.attr#backgroundTint} and
305 public void setPopupBackgroundDrawable(Drawable background) { argument
307 mPopup.setBackgroundDrawable(background);
309 super.setPopupBackgroundDrawable(background);
467 public void setBackgroundDrawable(Drawable background) { argument
468 super.setBackgroundDrawable(background);
470 mBackgroundTintHelper.onSetBackgroundDrawable(background);
536 private int compatMeasureContentWidth(SpinnerAdapter adapter, Drawable background) { argument
[all...]
/frameworks/support/v4/api21/android/support/v4/view/
H A DViewCompatLollipop.java91 // Work around a bug in L that did not update the state of the background
93 Drawable background = view.getBackground();
96 if ((background != null) && hasTint) {
97 if (background.isStateful()) {
98 background.setState(view.getDrawableState());
100 view.setBackground(background);
113 // Work around a bug in L that did not update the state of the background
115 Drawable background = view.getBackground();
118 if ((background != null) && hasTint) {
119 if (background
[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/docs/html/ndk/reference/
H A Ddoxygen.css96 background-color: #F1F1F1;
132 background-color: #B8B8B8;
164 background-color: #FBFCFD;
178 background-color: #FCFCFC;
197 -webkit-transition-property: background-color, box-shadow;
199 -moz-transition-property: background-color, box-shadow;
201 -ms-transition-property: background-color, box-shadow;
203 -o-transition-property: background-color, box-shadow;
205 transition-property: background-color, box-shadow;
210 background
[all...]
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/
H A DElementLayoutActivity.java139 int background = 0xff000000;
149 background |= (color << shift);
152 mIndicator.setBackgroundColor(background);
/frameworks/base/services/core/java/com/android/server/policy/
H A DRecentApplicationsBackground.java29 * A vertical linear layout. However, instead of drawing the background
30 * behnd the items, it draws the background outside the items based on the
31 * padding. If there isn't enough room to draw both, it clips the background
90 final Drawable background = mBackground;
91 if (background != null) {
102 // The background here is a gradient that wants to
115 background.setBounds(left, top, right, bottom);
123 canvas.drawRect(background.getBounds(), p);
/frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/items/
H A DRecyclerItemAdapter.java87 final Drawable background = typedArray.getDrawable(
90 if (selectableItemBackground == null || background == null) {
93 + " background=" + background);
95 final Drawable[] layers = { background, selectableItemBackground };
/frameworks/base/libs/androidfw/tests/
H A DTheme_test.cpp47 ASSERT_GE(theme1.getAttribute(android::R::attr::background, &val), 0);
60 ASSERT_GE(theme2.getAttribute(android::R::attr::background, &val), 0);
/frameworks/support/v4/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.java331 Drawable background = decorView.getBackground();
332 if (background != null) {
334 background = background.mutate();
335 background.setAlpha(0);
336 getWindow().setBackgroundDrawable(background);
578 Drawable background = decorView.getBackground();
579 if (background != null) {
580 background = background
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
H A DNotificationCustomViewWrapper.java111 Drawable background = mView.getBackground();
113 if (background instanceof ColorDrawable) {
114 mBackgroundColor = ((ColorDrawable) background).getColor();
130 // Parent notifications should always use the normal background color

Completed in 7186 milliseconds

1234