Home
last modified time | relevance | path

Searched refs:scrim (Results 1 – 25 of 31) sorted by relevance

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DLightRevealScrim.kt34 fun setRevealAmountOnScrim(amount: Float, scrim: LightRevealScrim) in setRevealAmountOnScrim()
73 override fun setRevealAmountOnScrim(amount: Float, scrim: LightRevealScrim) { in setRevealAmountOnScrim()
80 with(scrim) { in setRevealAmountOnScrim()
84 scrim.width * initialWidthMultiplier + -scrim.width * ovalWidthIncreaseAmount, in setRevealAmountOnScrim()
85 scrim.height * OVAL_INITIAL_TOP_PERCENT - scrim.height * interpolatedAmount, in setRevealAmountOnScrim()
86 scrim.width * (1f - initialWidthMultiplier) + scrim.width * ovalWidthIncreaseAmount, in setRevealAmountOnScrim()
87 scrim.height * OVAL_INITIAL_BOTTOM_PERCENT + scrim.height * interpolatedAmount in setRevealAmountOnScrim()
104 override fun setRevealAmountOnScrim(amount: Float, scrim: LightRevealScrim) { in setRevealAmountOnScrim()
107 scrim.interpolatedRevealAmount = interpolatedAmount in setRevealAmountOnScrim()
109 scrim.startColorAlpha = in setRevealAmountOnScrim()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DLightRevealScrimTest.kt35 private lateinit var scrim: LightRevealScrim in <lambda>() variable in com.android.systemui.statusbar.LightRevealScrimTest
40 scrim = LightRevealScrim(context, null, DEFAULT_WIDTH, DEFAULT_HEIGHT) in <lambda>()
41 scrim.isScrimOpaqueChangedListener = Consumer { opaque -> in <lambda>()
44 scrim.revealAmount = 0f in <lambda>()
45 assertTrue("Scrim is not opaque in initial setup", scrim.isScrimOpaque) in <lambda>()
50 scrim.alpha = 0.5f in <lambda>()
51 assertFalse("Scrim is opaque even though alpha is set", scrim.isScrimOpaque) in <lambda>()
56 scrim.visibility = View.INVISIBLE in <lambda>()
57 assertFalse("Scrim is opaque even though it's invisible", scrim.isScrimOpaque) in <lambda>()
58 scrim.visibility = View.GONE in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DScrimController.java77 import com.android.systemui.scrim.ScrimView;
202 static final int TAG_KEY_ANIM = R.id.scrim;
954 private void setOrAdaptCurrentAnimation(@Nullable View scrim) { in setOrAdaptCurrentAnimation() argument
955 if (scrim == null) { in setOrAdaptCurrentAnimation()
959 float alpha = getCurrentScrimAlpha(scrim); in setOrAdaptCurrentAnimation()
960 boolean qsScrimPullingDown = scrim == mScrimBehind && mQsBottomVisible; in setOrAdaptCurrentAnimation()
961 if (isAnimating(scrim) && !qsScrimPullingDown) { in setOrAdaptCurrentAnimation()
963 ValueAnimator previousAnimator = (ValueAnimator) scrim.getTag(TAG_KEY_ANIM); in setOrAdaptCurrentAnimation()
964 float previousEndValue = (Float) scrim.getTag(TAG_END_ALPHA); in setOrAdaptCurrentAnimation()
965 float previousStartValue = (Float) scrim.getTag(TAG_START_ALPHA); in setOrAdaptCurrentAnimation()
[all …]
DScrimState.java24 import com.android.systemui.scrim.ScrimView;
439 public void updateScrimColor(ScrimView scrim, float alpha, int tint) { in updateScrimColor() argument
441 tint = scrim == mScrimInFront ? ScrimController.DEBUG_FRONT_TINT in updateScrimColor()
445 scrim == mScrimInFront ? "front_scrim_alpha" : "back_scrim_alpha", in updateScrimColor()
449 scrim == mScrimInFront ? "front_scrim_tint" : "back_scrim_tint", in updateScrimColor()
452 scrim.setTint(tint); in updateScrimColor()
453 scrim.setViewAlpha(alpha); in updateScrimColor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/ambient/touch/scrim/dagger/
DScrimModule.java17 package com.android.systemui.ambient.touch.scrim.dagger;
19 import com.android.systemui.ambient.touch.scrim.BouncerScrimController;
20 import com.android.systemui.ambient.touch.scrim.BouncerlessScrimController;
21 import com.android.systemui.ambient.touch.scrim.ScrimController;
/frameworks/base/packages/SystemUI/src/com/android/systemui/ambient/touch/scrim/
DScrimManager.java17 package com.android.systemui.ambient.touch.scrim;
19 import static com.android.systemui.ambient.touch.scrim.dagger.ScrimModule.BOUNCERLESS_SCRIM_CONTROL…
20 import static com.android.systemui.ambient.touch.scrim.dagger.ScrimModule.BOUNCER_SCRIM_CONTROLLER;
DScrimController.java17 package com.android.systemui.ambient.touch.scrim;
DBouncerScrimController.java17 package com.android.systemui.ambient.touch.scrim;
DBouncerlessScrimController.java17 package com.android.systemui.ambient.touch.scrim;
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/
DAlternateBouncerViewBinder.kt46 import com.android.systemui.scrim.ScrimView in <lambda>()
105 val scrim: ScrimView = in <lambda>() constant
107 scrim.viewAlpha = 0f in <lambda>()
186 val scrim = view.requireViewById(R.id.alternate_bouncer_scrim) as ScrimView in <lambda>() constant
220 viewModel.scrimAlpha.collect { scrim.viewAlpha = it } in <lambda>()
224 viewModel.scrimColor.collect { scrim.tint = it } in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DScrimControllerTest.java78 import com.android.systemui.scrim.ScrimView;
321 Arrays.stream(ScrimState.values()).forEach((scrim) -> { in tearDown()
322 scrim.setAodFrontScrimAlpha(0f); in tearDown()
323 scrim.setClipQsScrim(false); in tearDown()
2072 private void assertAlphaAfterExpansion(ScrimView scrim, float expectedAlpha, float expansion) { in assertAlphaAfterExpansion() argument
2076 assertEquals(expectedAlpha, scrim.getViewAlpha(), 0.2); in assertAlphaAfterExpansion()
2079 private void assertTintAfterExpansion(ScrimView scrim, int expectedTint, float expansion) { in assertTintAfterExpansion() argument
2082 + Integer.toHexString(scrim.getTint()) + " for scrim: " + getScrimName(scrim); in assertTintAfterExpansion()
2085 assertEquals(message, expectedTint, scrim.getTint(), 0.1); in assertTintAfterExpansion()
2089 scrimToTint.forEach((scrim, hasTint) -> assertScrimTint(scrim, hasTint)); in assertScrimTinted()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/domain/interactor/
DLightRevealScrimInteractorTest.kt57 override fun setRevealAmountOnScrim(amount: Float, scrim: LightRevealScrim) {} in setRevealAmountOnScrim()
62 override fun setRevealAmountOnScrim(amount: Float, scrim: LightRevealScrim) {} in setRevealAmountOnScrim()
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/
DShadeViewProviderModule.kt161 val scrim = in <lambda>() constant
165 scrim.scrimLogger = scrimLogger in <lambda>()
166 return scrim in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/ambient/touch/scrim/
DBouncerlessScrimControllerTest.java17 package com.android.systemui.ambient.touch.scrim;
DScrimManagerTest.java17 package com.android.systemui.ambient.touch.scrim;
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/scrim/
DScrimViewTest.java17 package com.android.systemui.scrim;
/frameworks/base/packages/SystemUI/src/com/android/systemui/ambient/touch/
DBouncerSwipeTouchHandler.java38 import com.android.systemui.ambient.touch.scrim.ScrimController;
39 import com.android.systemui.ambient.touch.scrim.ScrimManager;
/frameworks/base/packages/CredentialManager/src/com/android/credentialmanager/common/ui/
DBottomSheet.kt72 scrimColor = MaterialTheme.colorScheme.scrim.copy(alpha = .32f), in ModalBottomSheet()
/frameworks/base/tests/Assist/src/com/android/test/assist/
DAssistInteractionSession.java88 mScrim = v.findViewById(R.id.scrim); in onCreateContentView()
/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/dagger/
DDreamModule.java28 import com.android.systemui.ambient.touch.scrim.dagger.ScrimModule;
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DShutdownUi.java40 import com.android.systemui.scrim.ScrimDrawable;
/frameworks/base/packages/SystemUI/src/com/android/systemui/scrim/
DScrimDrawable.java17 package com.android.systemui.scrim;
DScrimView.java17 package com.android.systemui.scrim;
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/ambient/touch/
DBouncerSwipeTouchHandlerTest.java49 import com.android.systemui.ambient.touch.scrim.ScrimController;
50 import com.android.systemui.ambient.touch.scrim.ScrimManager;
/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/
DDreamOverlayContainerViewController.java44 import com.android.systemui.ambient.touch.scrim.BouncerlessScrimController;

12