Home
last modified time | relevance | path

Searched refs:background (Results 1 – 25 of 112) sorted by relevance

12345

/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DAppCompatProgressBarHelper.java79 LayerDrawable background = (LayerDrawable) drawable; in tileify() local
80 final int N = background.getNumberOfLayers(); in tileify()
84 int id = background.getId(i); in tileify()
85 outDrawables[i] = tileify(background.getDrawable(i), in tileify()
91 newBg.setId(i, background.getId(i)); in tileify()
122 AnimationDrawable background = (AnimationDrawable) drawable; in tileifyIndeterminate() local
123 final int N = background.getNumberOfFrames(); in tileifyIndeterminate()
125 newBg.setOneShot(background.isOneShot()); in tileifyIndeterminate()
128 Drawable frame = tileify(background.getFrame(i), true); in tileifyIndeterminate()
130 newBg.addFrame(frame, background.getDuration(i)); in tileifyIndeterminate()
DAppCompatBackgroundHelper.java82 void onSetBackgroundDrawable(Drawable background) { in onSetBackgroundDrawable() argument
117 final Drawable background = mView.getBackground(); in applySupportBackgroundTint() local
118 if (background != null) { in applySupportBackgroundTint()
120 && applyFrameworkTintUsingColorFilter(background)) { in applySupportBackgroundTint()
127 AppCompatDrawableManager.tintDrawable(background, mBackgroundTint, in applySupportBackgroundTint()
130 AppCompatDrawableManager.tintDrawable(background, mInternalBackgroundTint, in applySupportBackgroundTint()
171 private boolean applyFrameworkTintUsingColorFilter(@NonNull Drawable background) { in applyFrameworkTintUsingColorFilter() argument
190 AppCompatDrawableManager.tintDrawable(background, info, mView.getDrawableState()); in applyFrameworkTintUsingColorFilter()
DAppCompatSpinner.java304 public void setPopupBackgroundDrawable(Drawable background) { in setPopupBackgroundDrawable() argument
306 mPopup.setBackgroundDrawable(background); in setPopupBackgroundDrawable()
308 super.setPopupBackgroundDrawable(background); in setPopupBackgroundDrawable()
474 public void setBackgroundDrawable(Drawable background) { in setBackgroundDrawable() argument
475 super.setBackgroundDrawable(background); in setBackgroundDrawable()
477 mBackgroundTintHelper.onSetBackgroundDrawable(background); in setBackgroundDrawable()
547 int compatMeasureContentWidth(SpinnerAdapter adapter, Drawable background) { in compatMeasureContentWidth() argument
583 if (background != null) { in compatMeasureContentWidth()
584 background.getPadding(mTempRect); in compatMeasureContentWidth()
763 final Drawable background = getBackground(); in computeContentWidth() local
[all …]
DAppCompatEditText.java81 public void setBackgroundDrawable(Drawable background) { in setBackgroundDrawable() argument
82 super.setBackgroundDrawable(background); in setBackgroundDrawable()
84 mBackgroundTintHelper.onSetBackgroundDrawable(background); in setBackgroundDrawable()
DAppCompatAutoCompleteTextView.java99 public void setBackgroundDrawable(Drawable background) { in setBackgroundDrawable() argument
100 super.setBackgroundDrawable(background); in setBackgroundDrawable()
102 mBackgroundTintHelper.onSetBackgroundDrawable(background); in setBackgroundDrawable()
DAppCompatMultiAutoCompleteTextView.java99 public void setBackgroundDrawable(Drawable background) { in setBackgroundDrawable() argument
100 super.setBackgroundDrawable(background); in setBackgroundDrawable()
102 mBackgroundTintHelper.onSetBackgroundDrawable(background); in setBackgroundDrawable()
DAppCompatButton.java84 public void setBackgroundDrawable(Drawable background) { in setBackgroundDrawable() argument
85 super.setBackgroundDrawable(background); in setBackgroundDrawable()
87 mBackgroundTintHelper.onSetBackgroundDrawable(background); in setBackgroundDrawable()
DAppCompatImageButton.java127 public void setBackgroundDrawable(Drawable background) { in setBackgroundDrawable() argument
128 super.setBackgroundDrawable(background); in setBackgroundDrawable()
130 mBackgroundTintHelper.onSetBackgroundDrawable(background); in setBackgroundDrawable()
/frameworks/base/docs/html/sdk/support_api_diff/25.0.0/
Dstylesheet-jdiff.css6 .diffspechead {background-color:#eee;}
8 .diffspectable td {background-color:eee;border:0px;font-size:90%;font-weight:normal;padding:0px;pa…
9 td.diffvalueold {color:orange;background-color:white;border:0px;font-size:80%;font-style:normal;tex…
10 td.diffvaluenew {color:green;background-color:white;border:0px;font-size:80%;font-weight:normal;tex…
11 td.diffvalue {color:444;background-color:white;border:0px;font-size:80%;font-weight:normal;text-ali…
12 td.diffspec {background-color:white;border:0px;font-size:80%;font-weight:normal;padding:1px;color:4…
/frameworks/base/docs/html/sdk/support_api_diff/25.1.0/
Dstylesheet-jdiff.css6 .diffspechead {background-color:#eee;}
8 .diffspectable td {background-color:eee;border:0px;font-size:90%;font-weight:normal;padding:0px;pa…
9 td.diffvalueold {color:orange;background-color:white;border:0px;font-size:80%;font-style:normal;tex…
10 td.diffvaluenew {color:green;background-color:white;border:0px;font-size:80%;font-weight:normal;tex…
11 td.diffvalue {color:444;background-color:white;border:0px;font-size:80%;font-weight:normal;text-ali…
12 td.diffspec {background-color:white;border:0px;font-size:80%;font-weight:normal;padding:1px;color:4…
/frameworks/base/media/mca/effect/java/android/media/effect/effects/
DBackDropperEffect.java92 Filter background = mGraph.getFilter("background"); in setParameter() local
93 background.setInputValue("sourceUrl", value); in setParameter()
95 Filter background = mGraph.getFilter("background"); in setParameter() local
96 background.setInputValue("context", value); in setParameter()
/frameworks/base/core/java/com/android/internal/graphics/
DColorUtils.java48 public static int compositeColors(@ColorInt int foreground, @ColorInt int background) { in compositeColors() argument
49 int bgAlpha = Color.alpha(background); in compositeColors()
54 Color.red(background), bgAlpha, a); in compositeColors()
56 Color.green(background), bgAlpha, a); in compositeColors()
58 Color.blue(background), bgAlpha, a); in compositeColors()
91 public static double calculateContrast(@ColorInt int foreground, @ColorInt int background) { in calculateContrast() argument
92 if (Color.alpha(background) != 255) { in calculateContrast()
94 + Integer.toHexString(background)); in calculateContrast()
98 foreground = compositeColors(foreground, background); in calculateContrast()
102 final double luminance2 = calculateLuminance(background) + 0.05; in calculateContrast()
[all …]
/frameworks/support/core-utils/java/android/support/v4/graphics/
DColorUtils.java47 public static int compositeColors(@ColorInt int foreground, @ColorInt int background) { in compositeColors() argument
48 int bgAlpha = Color.alpha(background); in compositeColors()
53 Color.red(background), bgAlpha, a); in compositeColors()
55 Color.green(background), bgAlpha, a); in compositeColors()
57 Color.blue(background), bgAlpha, a); in compositeColors()
90 public static double calculateContrast(@ColorInt int foreground, @ColorInt int background) { in calculateContrast() argument
91 if (Color.alpha(background) != 255) { in calculateContrast()
93 + Integer.toHexString(background)); in calculateContrast()
97 foreground = compositeColors(foreground, background); in calculateContrast()
101 final double luminance2 = calculateLuminance(background) + 0.05; in calculateContrast()
[all …]
/frameworks/base/core/java/android/view/
DViewOutlineProvider.java36 Drawable background = view.getBackground();
37 if (background != null) {
38 background.getOutline(outline);
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
DStatusBarBackgroundLayout.java95 public void setStatusBarBackground(Drawable background) { in setStatusBarBackground() argument
96 mStatusBarBackground = background; in setStatusBarBackground()
98 setWillNotDraw(background == null); in setStatusBarBackground()
99 setFitsSystemWindows(background != null); in setStatusBarBackground()
/frameworks/base/core/java/android/app/
DEnterTransitionCoordinator.java340 Drawable background = decorView.getBackground(); in prepareEnter() local
341 if (background == null) { in prepareEnter()
342 background = new ColorDrawable(Color.TRANSPARENT); in prepareEnter()
343 mReplacedBackground = background; in prepareEnter()
346 background = background.mutate(); in prepareEnter()
347 background.setAlpha(0); in prepareEnter()
349 getWindow().setBackgroundDrawable(background); in prepareEnter()
583 Drawable background = decorView.getBackground(); in startEnterTransition() local
584 if (background != null) { in startEnterTransition()
585 background = background.mutate(); in startEnterTransition()
[all …]
DExitTransitionCoordinator.java295 Drawable background; in fadeOutBackground() local
296 if (decor != null && (background = decor.getBackground()) != null) { in fadeOutBackground()
297 background = background.mutate(); in fadeOutBackground()
298 getWindow().setBackgroundDrawable(background); in fadeOutBackground()
299 mBackgroundAnimator = ObjectAnimator.ofInt(background, "alpha", 0); in fadeOutBackground()
/frameworks/base/core/java/android/net/
Dnetwork-policy-restrictions.md3 The tables below show whether an app has network access while on background depending on the status…
9 The cells define the network status when the app is on background.
20 * **ok**: network access granted while app on background (NetworkInfo's state/detailed state should…
21 * **blk**: network access blocked while app on background (NetworkInfo's state/detailed state shoul…
/frameworks/support/wear/src/android/support/wear/widget/drawer/
DWearableDrawerView.java173 Drawable background; in getDrawable() local
177 background = typedArray.getDrawable(index); in getDrawable()
179 background = context.getDrawable(backgroundResId); in getDrawable()
181 return background; in getDrawable()
471 Drawable background = in parseAttributes() local
475 setBackground(background); in parseAttributes()
/frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/items/
DRecyclerItemAdapter.java98 final Drawable background = typedArray.getDrawable( in onCreateViewHolder() local
101 if (selectableItemBackground == null || background == null) { in onCreateViewHolder()
104 + " background=" + background); in onCreateViewHolder()
106 final Drawable[] layers = {background, selectableItemBackground}; in onCreateViewHolder()
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/
DElementLayoutActivity.java139 int background = 0xff000000; in onPreDraw() local
149 background |= (color << shift); in onPreDraw()
152 mIndicator.setBackgroundColor(background); in onPreDraw()
/frameworks/native/opengl/tests/gl_jni/jni/
Dgl_code.cpp15 GLfloat background; variable
175 glClearColor(background, grey, grey, 1.0f); in Java_com_android_gljni_GLJNILib_step()
182 background = 1.0f - background; in Java_com_android_gljni_GLJNILib_changeBackground()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotificationViewWrapper.java104 Drawable background = mView.getBackground(); in onReinflated() local
105 if (background instanceof ColorDrawable) { in onReinflated()
106 mBackgroundColor = ((ColorDrawable) background).getColor(); in onReinflated()
/frameworks/base/core/java/com/android/internal/util/
DNotificationColorUtil.java543 public static int compositeColors(int foreground, int background) { in compositeColors() argument
544 return ColorUtilsFromCompat.compositeColors(foreground, background); in compositeColors()
571 public static int compositeColors(@ColorInt int foreground, @ColorInt int background) { in compositeColors() argument
572 int bgAlpha = Color.alpha(background); in compositeColors()
577 Color.red(background), bgAlpha, a); in compositeColors()
579 Color.green(background), bgAlpha, a); in compositeColors()
581 Color.blue(background), bgAlpha, a); in compositeColors()
614 public static double calculateContrast(@ColorInt int foreground, @ColorInt int background) { in calculateContrast() argument
615 if (Color.alpha(background) != 255) { in calculateContrast()
617 + Integer.toHexString(background)); in calculateContrast()
[all …]
/frameworks/base/graphics/java/android/graphics/drawable/
DRippleDrawable.java848 final RippleBackground background = mBackground; in drawBackgroundAndRipples() local
850 if (active == null && count <= 0 && (background == null || !background.isVisible())) { in drawBackgroundAndRipples()
891 if (background != null && background.isVisible()) { in drawBackgroundAndRipples()
892 background.draw(canvas, p); in drawBackgroundAndRipples()
942 final RippleBackground background = mBackground; in getDirtyBounds() local
943 if (background != null) { in getDirtyBounds()
944 background.getBounds(rippleBounds); in getDirtyBounds()

12345