Home
last modified time | relevance | path

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

12345

/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
DIllustration.java47 private Drawable background; field in Illustration
92 public void setBackgroundDrawable(Drawable background) { in setBackgroundDrawable() argument
93 if (background == this.background) { in setBackgroundDrawable()
96 this.background = background; in setBackgroundDrawable()
171 if (background != null) { in onLayout()
174 background.setBounds( in onLayout()
185 if (background != null) { in onDraw()
192 && shouldMirrorDrawable(background, getLayoutDirection())) { in onDraw()
195 canvas.translate(-background.getBounds().width(), 0); in onDraw()
197 background.draw(canvas); in onDraw()
DStatusBarBackgroundLayout.java95 public void setStatusBarBackground(Drawable background) { in setStatusBarBackground() argument
96 statusBarBackground = background; in setStatusBarBackground()
98 setWillNotDraw(background == null); in setStatusBarBackground()
99 setFitsSystemWindows(background != null); in setStatusBarBackground()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DMediaArtworkProcessorTest.kt66 val background = processor.processArtwork(context, artwork)!! in testProcessArtwork() constant
68 assertThat(background.height).isLessThan(screenHeight) in testProcessArtwork()
69 assertThat(background.width).isLessThan(screenWidth) in testProcessArtwork()
70 assertThat(background.config).isEqualTo(Bitmap.Config.ARGB_8888) in testProcessArtwork()
92 val background = processor.processArtwork(context, artwork)!! in testConfig() constant
94 assertThat(background.config).isEqualTo(Bitmap.Config.ARGB_8888) in testConfig()
105 val background = processor.processArtwork(context, artwork) in testRecycledArtwork() constant
107 assertThat(background).isNull() in testRecycledArtwork()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/
DThreadUtilsTest.java33 Thread background = new Thread(() -> assertThat(ThreadUtils.isMainThread()).isFalse()); in testMainThread() local
34 background.start(); in testMainThread()
35 background.join(); in testMainThread()
41 Thread background = new Thread(() -> { in testEnsureMainThread() local
48 background.start(); in testEnsureMainThread()
49 background.join(); in testEnsureMainThread()
/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/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/
DNotificationViewWrapper.java119 int background = getBackgroundColor(view); in needsInversion() local
120 if (background == Color.TRANSPARENT) { in needsInversion()
121 background = defaultBackgroundColor; in needsInversion()
123 if (background == Color.TRANSPARENT) { in needsInversion()
124 background = resolveBackgroundColor(); in needsInversion()
128 ColorUtils.colorToHSL(background, hsl); in needsInversion()
143 return childrenNeedInversion(background, (ViewGroup) view); in needsInversion()
181 Drawable background = view.getBackground(); in getBackgroundColor() local
182 if (background instanceof ColorDrawable) { in getBackgroundColor()
183 return ((ColorDrawable) background).getColor(); in getBackgroundColor()
/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/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/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/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/items/
DRecyclerItemAdapter.java110 Drawable background = view.getBackground(); in onCreateViewHolder() local
111 if (background == null) { in onCreateViewHolder()
112 background = in onCreateViewHolder()
116 if (selectableItemBackground == null || background == null) { in onCreateViewHolder()
123 + background); in onCreateViewHolder()
125 final Drawable[] layers = {background, selectableItemBackground}; in onCreateViewHolder()
/frameworks/base/core/java/android/app/
DEnterTransitionCoordinator.java350 Drawable background = decorView.getBackground(); in prepareEnter() local
351 if (background == null) { in prepareEnter()
352 background = new ColorDrawable(Color.TRANSPARENT); in prepareEnter()
353 mReplacedBackground = background; in prepareEnter()
356 background = background.mutate(); in prepareEnter()
357 background.setAlpha(0); in prepareEnter()
359 getWindow().setBackgroundDrawable(background); in prepareEnter()
593 Drawable background = decorView.getBackground(); in startEnterTransition() local
594 if (background != null) { in startEnterTransition()
595 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/proto/android/app/
Denums.proto70 // Process is in the background transient so we will try to keep running.
72 // Process is in the background running a backup/restore operation.
74 // Process is in the background running a service. Unlike oom_adj, this
75 // level is used for both the normal running in background state and the
78 // Process is in the background running a receiver. Note that from the
86 // Process is in the background, but it can't restore its state so we want
89 // Process is in the background but hosts the home activity.
91 // Process is in the background but hosts the last shown activity.
/frameworks/base/core/java/android/view/
DViewOutlineProvider.java36 Drawable background = view.getBackground();
37 if (background != null) {
38 background.getOutline(outline);
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DDualToneHandler.kt86 getColorForDarkIntensity(intensity, lightColor.background, darkColor.background)
98 private data class Color(val single: Int, val background: Int, val fill: Int) constant in com.android.systemui.Color
/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/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/CarSystemUI/src/com/android/systemui/statusbar/hvac/
DAnimatedTemperatureView.java135 ImageView background = new ImageView(context); in AnimatedTemperatureView() local
137 background.setImageDrawable(mBackgroundColor); in AnimatedTemperatureView()
138 background.setVisibility(View.GONE); in AnimatedTemperatureView()
140 mBackgroundAnimator = new TemperatureBackgroundAnimator(this, background); in AnimatedTemperatureView()
152 addView(background, ViewGroup.LayoutParams.MATCH_PARENT, in AnimatedTemperatureView()
/frameworks/native/opengl/tests/gl_jni/jni/
Dgl_code.cpp20 GLfloat background; variable
180 glClearColor(background, grey, grey, 1.0f); in Java_com_android_gljni_GLJNILib_step()
187 background = 1.0f - background; in Java_com_android_gljni_GLJNILib_changeBackground()
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsImpl.java90 ScrimDrawable background = new ScrimDrawable(); in showShutdownUi() local
91 background.setAlpha((int) (SHUTDOWN_SCRIM_ALPHA * 255)); in showShutdownUi()
115 window.setBackgroundDrawable(background); in showShutdownUi()
133 background.setColor(colors.getMainColor(), false); in showShutdownUi()
/frameworks/base/core/proto/android/net/
Dnetworkrequest.proto61 // requests is in the background. A network that has one or more
62 // background requests and loses its last foreground request to a
63 // higher-scoring network will not go into the background immediately,
64 // but will linger and go into the background after the linger timeout.
/frameworks/base/core/java/com/android/internal/util/
DContrastColorUtil.java617 public static int compositeColors(int foreground, int background) { in compositeColors() argument
618 return ColorUtilsFromCompat.compositeColors(foreground, background); in compositeColors()
645 public static int compositeColors(@ColorInt int foreground, @ColorInt int background) { in compositeColors() argument
646 int bgAlpha = Color.alpha(background); in compositeColors()
651 Color.red(background), bgAlpha, a); in compositeColors()
653 Color.green(background), bgAlpha, a); in compositeColors()
655 Color.blue(background), bgAlpha, a); in compositeColors()
700 public static double calculateContrast(@ColorInt int foreground, @ColorInt int background) { in calculateContrast() argument
701 if (Color.alpha(background) != 255) { in calculateContrast()
703 + Integer.toHexString(background)); in calculateContrast()
[all …]
/frameworks/base/graphics/java/android/graphics/drawable/
DRippleDrawable.java828 final RippleBackground background = mBackground; in drawBackgroundAndRipples() local
830 if (active == null && count <= 0 && (background == null || !background.isVisible())) { in drawBackgroundAndRipples()
841 if (background != null && background.isVisible()) { in drawBackgroundAndRipples()
842 background.draw(canvas, p); in drawBackgroundAndRipples()
931 final RippleBackground background = mBackground; in getDirtyBounds() local
932 if (background != null) { in getDirtyBounds()
933 background.getBounds(rippleBounds); in getDirtyBounds()
/frameworks/base/core/java/com/android/internal/widget/
DEmphasizedNotificationButton.java56 DrawableWrapper background = (DrawableWrapper) getBackground().mutate(); in EmphasizedNotificationButton() local
57 mRipple = (RippleDrawable) background.getDrawable(); in EmphasizedNotificationButton()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
DAdaptiveIconTest.java77 final ShapeDrawable background = mock(ShapeDrawable.class); in setBackgroundColor_shouldUpdateColorFilter() local
78 when(icon.getDrawable(0)).thenReturn(background); in setBackgroundColor_shouldUpdateColorFilter()
82 verify(background).setColorFilter(Color.BLUE, PorterDuff.Mode.SRC_ATOP); in setBackgroundColor_shouldUpdateColorFilter()

12345