Home
last modified time | relevance | path

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

12345

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/
DThreadUtilsTest.java35 Thread background = new Thread(new Runnable() { in testMainThread() local
40 background.start(); in testMainThread()
41 background.join(); in testMainThread()
47 Thread background = new Thread(new Runnable() { in testEnsureMainThread() local
56 background.start(); in testEnsureMainThread()
57 background.join(); in testEnsureMainThread()
/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.java298 public void setPopupBackgroundDrawable(Drawable background) { in setPopupBackgroundDrawable() argument
300 mPopup.setBackgroundDrawable(background); in setPopupBackgroundDrawable()
302 super.setPopupBackgroundDrawable(background); in setPopupBackgroundDrawable()
468 public void setBackgroundDrawable(Drawable background) { in setBackgroundDrawable() argument
469 super.setBackgroundDrawable(background); in setBackgroundDrawable()
471 mBackgroundTintHelper.onSetBackgroundDrawable(background); in setBackgroundDrawable()
541 int compatMeasureContentWidth(SpinnerAdapter adapter, Drawable background) { in compatMeasureContentWidth() argument
577 if (background != null) { in compatMeasureContentWidth()
578 background.getPadding(mTempRect); in compatMeasureContentWidth()
757 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()
DAppCompatMultiAutoCompleteTextView.java99 public void setBackgroundDrawable(Drawable background) { in setBackgroundDrawable() argument
100 super.setBackgroundDrawable(background); in setBackgroundDrawable()
102 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()
/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/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/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/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/items/
DRecyclerItemAdapter.java112 Drawable background = view.getBackground(); in onCreateViewHolder() local
113 if (background == null) { in onCreateViewHolder()
114 background = typedArray.getDrawable( in onCreateViewHolder()
118 if (selectableItemBackground == null || background == null) { in onCreateViewHolder()
121 + " background=" + background); in onCreateViewHolder()
123 final Drawable[] layers = {background, selectableItemBackground}; in onCreateViewHolder()
/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/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/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsImpl.java66 GradientDrawable background = new GradientDrawable(mContext); in showShutdownUi() local
67 background.setAlpha((int) (SHUTDOWN_SCRIM_ALPHA * 255)); in showShutdownUi()
85 window.setBackgroundDrawable(background); in showShutdownUi()
105 background.setColors(colors, false); in showShutdownUi()
106 background.setScreenSize(displaySize.x, displaySize.y); in showShutdownUi()
/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.java174 Drawable background; in getDrawable() local
178 background = typedArray.getDrawable(index); in getDrawable()
180 background = context.getDrawable(backgroundResId); in getDrawable()
182 return background; in getDrawable()
472 Drawable background = in parseAttributes() local
476 setBackground(background); in parseAttributes()
/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/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/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/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()
/frameworks/base/core/java/com/android/internal/util/
DNotificationColorUtil.java606 public static int compositeColors(int foreground, int background) { in compositeColors() argument
607 return ColorUtilsFromCompat.compositeColors(foreground, background); in compositeColors()
634 public static int compositeColors(@ColorInt int foreground, @ColorInt int background) { in compositeColors() argument
635 int bgAlpha = Color.alpha(background); in compositeColors()
640 Color.red(background), bgAlpha, a); in compositeColors()
642 Color.green(background), bgAlpha, a); in compositeColors()
644 Color.blue(background), bgAlpha, a); in compositeColors()
677 public static double calculateContrast(@ColorInt int foreground, @ColorInt int background) { in calculateContrast() argument
678 if (Color.alpha(background) != 255) { in calculateContrast()
680 + Integer.toHexString(background)); in calculateContrast()
[all …]

12345