/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | LightRevealScrim.kt | 34 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/ |
D | LightRevealScrimTest.kt | 35 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/ |
D | ScrimController.java | 77 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 …]
|
D | ScrimState.java | 24 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/ |
D | ScrimModule.java | 17 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/ |
D | ScrimManager.java | 17 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;
|
D | ScrimController.java | 17 package com.android.systemui.ambient.touch.scrim;
|
D | BouncerScrimController.java | 17 package com.android.systemui.ambient.touch.scrim;
|
D | BouncerlessScrimController.java | 17 package com.android.systemui.ambient.touch.scrim;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/ |
D | AlternateBouncerViewBinder.kt | 46 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/ |
D | ScrimControllerTest.java | 78 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/ |
D | LightRevealScrimInteractorTest.kt | 57 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/ |
D | ShadeViewProviderModule.kt | 161 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/ |
D | BouncerlessScrimControllerTest.java | 17 package com.android.systemui.ambient.touch.scrim;
|
D | ScrimManagerTest.java | 17 package com.android.systemui.ambient.touch.scrim;
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/scrim/ |
D | ScrimViewTest.java | 17 package com.android.systemui.scrim;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ambient/touch/ |
D | BouncerSwipeTouchHandler.java | 38 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/ |
D | BottomSheet.kt | 72 scrimColor = MaterialTheme.colorScheme.scrim.copy(alpha = .32f), in ModalBottomSheet()
|
/frameworks/base/tests/Assist/src/com/android/test/assist/ |
D | AssistInteractionSession.java | 88 mScrim = v.findViewById(R.id.scrim); in onCreateContentView()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/dagger/ |
D | DreamModule.java | 28 import com.android.systemui.ambient.touch.scrim.dagger.ScrimModule;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/ |
D | ShutdownUi.java | 40 import com.android.systemui.scrim.ScrimDrawable;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/scrim/ |
D | ScrimDrawable.java | 17 package com.android.systemui.scrim;
|
D | ScrimView.java | 17 package com.android.systemui.scrim;
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/ambient/touch/ |
D | BouncerSwipeTouchHandlerTest.java | 49 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/ |
D | DreamOverlayContainerViewController.java | 44 import com.android.systemui.ambient.touch.scrim.BouncerlessScrimController;
|