/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/widgets/ |
D | RoundedCornerEnforcement.kt | 42 val backgrounds = findViewsWithId(appWidget, R.id.background) in findBackground() 57 fun hasAppWidgetOptedOut(appWidget: View?, background: View): Boolean { in hasAppWidgetOptedOut() 58 return background.id == R.id.background && background.clipToOutline in hasAppWidgetOptedOut() 70 fun computeRoundedRectangle(appWidget: View, background: View, outRect: Rect) { in computeRoundedRectangle() 71 var background = background in computeRoundedRectangle() variable 73 outRect.right = background.width in computeRoundedRectangle() 75 outRect.bottom = background.height in computeRoundedRectangle() 76 while (background !== appWidget) { in computeRoundedRectangle() 77 outRect.offset(background.left, background.top) in computeRoundedRectangle() 78 background = background.parent as View in computeRoundedRectangle() [all …]
|
D | CommunalAppWidgetHostView.kt | 75 val background: View? = RoundedCornerEnforcement.findBackground(this) in enforceRoundedCorners() constant 76 if (background == null || RoundedCornerEnforcement.hasAppWidgetOptedOut(this, background)) { in enforceRoundedCorners() 80 RoundedCornerEnforcement.computeRoundedRectangle(this, background, enforcedRectangle) in enforceRoundedCorners()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/ |
D | Illustration.java | 47 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()
|
D | StatusBarBackgroundLayout.java | 95 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/SettingsLib/tests/robotests/src/com/android/settingslib/utils/ |
D | ThreadUtilsTest.java | 33 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/libs/systemui/weathereffects/graphics/assets/shaders/ |
D | fog_effect.agsl | 18 uniform shader background; 47 * The shader is composed by two image textures (foreground and background) and four layers of 59 // Load background and blend it with constant solid fog color. 60 vec4 bgd = background.eval(fragCoord * uvScaleBgd + uvOffsetBgd); 63 /* Add first layer: background. */ 64 // set background color as the starting layer. 68 // Dither to be applied to background noise. 71 // The furthest fog layer in the background. 79 // The furthest fog layer in the background. 105 /* Add second layer: background fog (far or 1, and close or 2). */ [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/ |
D | ResizeVeil.kt | 192 val background = backgroundSurface in showVeil() constant 195 if (background == null || icon == null || veil == null) return in showVeil() 210 .setLayer(background, VEIL_BACKGROUND_LAYER) in showVeil() 211 .setColor(background, Color.valueOf(backgroundColor.toArgb()).components) in showVeil() 220 veilAnimT.setAlpha(background, animatedValue as Float) in showVeil() 225 veilAnimT.show(background) in showVeil() 226 .setAlpha(background, 0f) in showVeil() 231 veilAnimT.setAlpha(background, 1f).apply() in showVeil() 256 .hide(background) in showVeil() 263 .show(background) in showVeil() [all …]
|
D | MaximizeButtonView.kt | 64 maximizeWindow.background.alpha = 0 in startHoverAnimation() 71 maximizeWindow.background.alpha = animatedValue as Int in startHoverAnimation() 116 maximizeWindow.background = rippleDrawable in setAnimationTints() 124 maximizeWindow.background?.setTintList(ContextCompat.getColorStateList(context, in setAnimationTints() 129 maximizeWindow.background?.setTintList(ContextCompat.getColorStateList(context, in setAnimationTints()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
D | NumPadAnimatorTest.kt | 38 @Mock lateinit var background: GradientDrawable variable in com.android.keyguard.NumPadAnimatorTest 45 underTest = NumPadAnimator(context, background, 0, buttonImage) in setup() 51 verify(background).cornerRadius = 50f in testOnLayout() 52 reset(background) in testOnLayout() 54 verify(background, never()).cornerRadius = anyFloat() in testOnLayout()
|
/frameworks/base/core/java/com/android/internal/graphics/ |
D | ColorUtils.java | 50 public static int compositeColors(@ColorInt int foreground, @ColorInt int background) { in compositeColors() argument 51 int bgAlpha = Color.alpha(background); in compositeColors() 56 Color.red(background), bgAlpha, a); in compositeColors() 58 Color.green(background), bgAlpha, a); in compositeColors() 60 Color.blue(background), bgAlpha, a); in compositeColors() 96 public static double calculateContrast(@ColorInt int foreground, @ColorInt int background) { in calculateContrast() argument 97 if (Color.alpha(background) != 255) { in calculateContrast() 99 + Integer.toHexString(background)); in calculateContrast() 103 foreground = compositeColors(foreground, background); in calculateContrast() 107 final double luminance2 = calculateLuminance(background) + 0.05; in calculateContrast() [all …]
|
/frameworks/libs/systemui/weathereffects/src/com/google/android/wallpaper/weathereffects/data/repository/ |
D | WeatherEffectsRepository.kt | 43 var bgBitmap = _wallpaperImage.value?.background in <lambda>() 63 val background = bgBitmap!! in <lambda>() constant 66 background, in <lambda>() 106 val background = _wallpaperImage.value?.background in <lambda>() constant 116 success = success and (background?.let { in <lambda>()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
D | ContrastColorUtilTest.java | 132 int background = 0xFFFF0101; // Slightly lighter red in testBuilder_ensureColorSpanContrast_partialLength_adjusted() local 137 CharSequence result = ContrastColorUtil.ensureColorSpanContrast(text, background); in testBuilder_ensureColorSpanContrast_partialLength_adjusted() 143 assertContrastIsWithinRange(foregroundColor, background, 3, 3.2); in testBuilder_ensureColorSpanContrast_partialLength_adjusted() 187 public static void assertContrastIsWithinRange(int foreground, int background, in assertContrastIsWithinRange() argument 189 assertContrastIsAtLeast(foreground, background, minContrast); in assertContrastIsWithinRange() 190 assertContrastIsAtMost(foreground, background, maxContrast); in assertContrastIsWithinRange() 193 public static void assertContrastIsAtLeast(int foreground, int background, double minContrast) { in assertContrastIsAtLeast() argument 195 assertThat(calculateContrast(foreground, background)).isAtLeast(minContrast); in assertContrastIsAtLeast() 199 foreground, background), e); in assertContrastIsAtLeast() 203 public static void assertContrastIsAtMost(int foreground, int background, double maxContrast) { in assertContrastIsAtMost() argument [all …]
|
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/ |
D | GhostedViewTransitionAnimatorController.kt | 98 private val backgroundInsets by lazy { background?.opticalInsets ?: Insets.NONE } in <lambda>() 111 private val background: Drawable? constant in com.android.systemui.animation.GhostedViewTransitionAnimatorController 134 if (view.background != null) { in findBackground() 135 return view.background in findBackground() 143 if (v.background != null) { in findBackground() 144 return v.background in findBackground() 157 background = findBackground(ghostedView) 165 background: Drawable, in setBackgroundCornerRadius() 176 val drawable = background ?: return 0f in getCurrentTopCornerRadius() 186 val drawable = background ?: return 0f in getCurrentBottomCornerRadius() [all …]
|
/frameworks/libs/systemui/weathereffects/graphics/src/main/java/com/google/android/wallpaper/weathereffects/graphics/none/ |
D | NoEffect.kt | 26 class NoEffect(val foreground: Bitmap, val background: Bitmap, private var surfaceSize: SizeF) : constant in com.google.android.wallpaper.weathereffects.graphics.none.NoEffect 36 background, in draw() 39 SizeF(background.width.toFloat(), background.height.toFloat()) in draw()
|
/frameworks/base/media/mca/effect/java/android/media/effect/effects/ |
D | BackDropperEffect.java | 92 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/packages/SystemUI/src/com/android/systemui/media/controls/ui/view/ |
D | RecommendationViewHolder.kt | 65 (recommendations.background as IlluminationDrawable).let { background -> in <lambda>() method 66 mediaCoverContainers.forEach { background.registerLightSource(it) } in <lambda>() 67 background.registerLightSource(gutsViewHolder.cancel) in <lambda>() 68 background.registerLightSource(gutsViewHolder.dismiss) in <lambda>() 69 background.registerLightSource(gutsViewHolder.settings) in <lambda>()
|
/frameworks/base/docs/html/sdk/support_api_diff/25.0.0/ |
D | stylesheet-jdiff.css | 6 .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/ |
D | stylesheet-jdiff.css | 6 .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/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/ |
D | NotificationViewWrapper.java | 141 int background = getBackgroundColor(view); in needsInversion() local 142 if (background == Color.TRANSPARENT) { in needsInversion() 143 background = defaultBackgroundColor; in needsInversion() 145 if (background == Color.TRANSPARENT) { in needsInversion() 146 background = resolveBackgroundColor(); in needsInversion() 150 ColorUtils.colorToHSL(background, hsl); in needsInversion() 165 return childrenNeedInversion(background, (ViewGroup) view); in needsInversion() 203 Drawable background = view.getBackground(); in getBackgroundColor() local 204 if (background instanceof ColorDrawable) { in getBackgroundColor() 205 return ((ColorDrawable) background).getColor(); in getBackgroundColor()
|
/frameworks/base/tests/graphics/SilkFX/src/com/android/test/silkfx/materials/ |
D | GlassActivity.kt | 52 var background: Bitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888) in <lambda>() variable in com.android.test.silkfx.materials.GlassActivity 55 backgroundView.setImageBitmap(background) in <lambda>() 56 materialView.backgroundBitmap = background in <lambda>() 65 backgroundView = requireViewById(R.id.background) in <lambda>() 80 background = BitmapFactory.decodeResource(resources, R.drawable.background1) in <lambda>() 142 background = BitmapFactory.decodeResource(resources, resource) in <lambda>() 157 background = BitmapFactory.decodeFileDescriptor(it?.fileDescriptor) in <lambda>()
|
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/items/ |
D | RecyclerItemAdapter.java | 110 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/libs/systemui/weathereffects/src/com/google/android/wallpaper/weathereffects/ |
D | WeatherEngine.kt | 95 createWeatherEffect(asset.foreground, asset.background, asset.weatherEffect) in <lambda>() 121 background: Bitmap, in <lambda>() 129 val rainConfig = RainEffectConfig(context.assets, foreground, background) in <lambda>() 135 context.assets, foreground, background, context.resources.displayMetrics.density in <lambda>() 141 val snowConfig = SnowEffectConfig(context, foreground, background) in <lambda>() 146 activeEffect = NoEffect(foreground, background, screenSize.toSizeF()) in <lambda>()
|
/frameworks/base/core/java/android/view/ |
D | ViewOutlineProvider.java | 36 Drawable background = view.getBackground(); 37 if (background != null) { 38 background.getOutline(outline);
|
/frameworks/libs/systemui/weathereffects/graphics/src/main/java/com/google/android/wallpaper/weathereffects/graphics/rain/ |
D | RainEffectConfig.kt | 40 val background: Bitmap, constant in com.google.android.wallpaper.weathereffects.graphics.rain.RainEffectConfig 58 background: Bitmap, 67 background,
|
/frameworks/base/core/java/android/app/ |
D | EnterTransitionCoordinator.java | 355 Drawable background = decorView.getBackground(); in prepareEnter() local 356 if (background == null) { in prepareEnter() 357 background = new ColorDrawable(Color.TRANSPARENT); in prepareEnter() 358 mReplacedBackground = background; in prepareEnter() 361 background = background.mutate(); in prepareEnter() 362 background.setAlpha(0); in prepareEnter() 364 getWindow().setBackgroundDrawable(background); in prepareEnter() 610 Drawable background = decorView.getBackground(); in startEnterTransition() local 611 if (background != null) { in startEnterTransition() 612 background = background.mutate(); in startEnterTransition() [all …]
|