Home
last modified time | relevance | path

Searched refs:getAlpha (Results 1 – 25 of 151) sorted by relevance

1234567

/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
DTileDrawable.java94 if (!isVisible() && mPaint.getAlpha() == 0) { in draw()
97 final int alpha = mPaint.getAlpha(); in draw()
106 final int old = mPaint.getAlpha(); in setAlpha()
126 return mPaint.getAlpha(); in getCurrentAlpha()
145 if (mPaint.getAlpha() == 255) { in setVisible()
DCircularBitmapDrawable.java106 float alpha = placeholder.getPaint().getAlpha() / 255f; in onDrawPlaceholderOrProgress()
150 int oldAlpha = mBitmapPaint.getAlpha(); in onDrawCircularBitmap()
165 final int old = mBitmapPaint.getAlpha(); in setAlpha()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardClockSwitchTest.java197 assertThat(mLargeClockFrame.getAlpha()).isEqualTo(1); in switchingToBigClockWithAnimation_makesSmallClockDisappear()
199 assertThat(mSmallClockFrame.getAlpha()).isEqualTo(0); in switchingToBigClockWithAnimation_makesSmallClockDisappear()
207 assertThat(mLargeClockFrame.getAlpha()).isEqualTo(1); in switchingToBigClockNoAnimation_makesSmallClockDisappear()
209 assertThat(mSmallClockFrame.getAlpha()).isEqualTo(0); in switchingToBigClockNoAnimation_makesSmallClockDisappear()
221 assertThat(mSmallClockFrame.getAlpha()).isEqualTo(1); in switchingToSmallClockWithAnimation_makesBigClockDisappear()
225 assertThat(mLargeClockFrame.getAlpha()).isEqualTo(0); in switchingToSmallClockWithAnimation_makesBigClockDisappear()
233 assertThat(mSmallClockFrame.getAlpha()).isEqualTo(1); in switchingToSmallClockNoAnimation_makesBigClockDisappear()
237 assertThat(mLargeClockFrame.getAlpha()).isEqualTo(0); in switchingToSmallClockNoAnimation_makesBigClockDisappear()
/frameworks/base/core/java/android/view/animation/
DTransformation.java111 mAlpha = t.getAlpha(); in set()
128 mAlpha *= t.getAlpha(); in compose()
148 mAlpha *= t.getAlpha(); in postCompose()
180 public float getAlpha() { in getAlpha() method in Transformation
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
DMagnificationThumbnailTest.java83 assertThat(mMagnificationThumbnail.mThumbnailLayout.getAlpha()).isGreaterThan(0.5f); in updateThumbnailShows()
100 assertThat(mMagnificationThumbnail.mThumbnailLayout.getAlpha()).isLessThan(0.1f); in updateThumbnailLingersThenHidesAfterTimeout()
119 assertThat(mMagnificationThumbnail.mThumbnailLayout.getAlpha()).isLessThan(0.1f); in hideThumbnailRemoves()
155 assertThat(mMagnificationThumbnail.mThumbnailLayout.getAlpha()).isLessThan(0.1f); in hideShowHideShowHideRemoves()
/frameworks/base/libs/hwui/utils/
DPaintUtils.h39 if (paint->getAlpha() != 0xFF || PaintUtils::isBlendedShader(paint->getShader()) || in isOpaquePaint()
60 return paint ? paint->getAlpha() : 255; in getAlphaDirect()
/frameworks/base/libs/hwui/pipeline/skia/
DReorderBarrierDrawables.cpp135 if (casterProperties.getAlpha() <= 0.0f || casterProperties.getOutline().getAlpha() <= 0.0f || in drawShadow()
143 casterProperties.getAlpha() * casterProperties.getOutline().getAlpha(); in drawShadow()
DRenderNodeDrawable.cpp206 paint.setAlpha((uint8_t)paint.getAlpha() * mAlpha); in onFilter()
406 if (properties.getAlpha() < 1) { in setViewProperties()
411 *alphaMultiplier = properties.getAlpha(); in setViewProperties()
421 canvas->saveLayerAlpha(&bounds, (int)(properties.getAlpha() * 255)); in setViewProperties()
/frameworks/base/core/java/android/inputmethodservice/navigationbar/
DButtonDispatcher.java66 setVisibility(getAlpha() == 1 ? View.VISIBLE : View.INVISIBLE);
118 public float getAlpha() { in getAlpha() method in ButtonDispatcher
168 (getAlpha() < alpha) ? FADE_DURATION_IN : FADE_DURATION_OUT, in setAlpha()
178 mFadeAnimator = ValueAnimator.ofFloat(getAlpha(), alpha); in setAlpha()
187 int prevAlpha = (int) (getAlpha() * 255); in setAlpha()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSImplTest.java171 assertThat(mQsView.getAlpha()).isEqualTo(1f); in transitionToFullShade_smallScreen_alphaAlways1()
186 assertThat(mQsView.getAlpha()).isEqualTo(123f); in transitionToFullShade_largeScreen_alphaLargeScreenShadeInterpolator()
201 assertThat(mQsView.getAlpha()).isEqualTo(transitionProgress); in transitionToFullShade_onKeyguard_noBouncer_setsAlphaUsingLinearInterpolator()
216 assertThat(mQsView.getAlpha()) in transitionToFullShade_onKeyguard_bouncerActive_setsAlphaUsingBouncerInterpolator()
231 assertThat(mQsView.getAlpha()).isEqualTo(1); in transitionToFullShade_inFullWidth_alwaysSetsAlphaTo1()
236 assertThat(mQsView.getAlpha()).isEqualTo(1); in transitionToFullShade_inFullWidth_alwaysSetsAlphaTo1()
237 assertThat(mQsView.getAlpha()).isEqualTo(1); in transitionToFullShade_inFullWidth_alwaysSetsAlphaTo1()
242 assertThat(mQsView.getAlpha()).isEqualTo(1); in transitionToFullShade_inFullWidth_alwaysSetsAlphaTo1()
341 assertThat(mQsView.getAlpha()).isEqualTo(transitionProgress); in setQsExpansion_inSplitShade_whenTransitioningToKeyguard_setsAlphaBasedOnShadeTransitionProgress()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip2/phone/
DPipMenuView.java178 if (v.getAlpha() != 0) { in PipMenuView()
186 if (mMenuContainer.getAlpha() != 0) { in PipMenuView()
276 mMenuContainer.getAlpha(), 1f); in showMenu()
279 mSettingsButton.getAlpha(), 1f); in showMenu()
281 mDismissButton.getAlpha(), 1f); in showMenu()
369 mMenuContainer.getAlpha(), 0f); in hideMenu()
372 mSettingsButton.getAlpha(), 0f); in hideMenu()
374 mDismissButton.getAlpha(), 0f); in hideMenu()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
DPipMenuView.java180 if (v.getAlpha() != 0) { in PipMenuView()
188 if (mMenuContainer.getAlpha() != 0) { in PipMenuView()
278 mMenuContainer.getAlpha(), 1f); in showMenu()
281 mSettingsButton.getAlpha(), 1f); in showMenu()
283 mDismissButton.getAlpha(), 1f); in showMenu()
371 mMenuContainer.getAlpha(), 0f); in hideMenu()
374 mSettingsButton.getAlpha(), 0f); in hideMenu()
376 mDismissButton.getAlpha(), 0f); in hideMenu()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/buttons/
DButtonDispatcher.java70 setVisibility(getAlpha() == 1 ? View.VISIBLE : View.INVISIBLE);
127 public float getAlpha() { in getAlpha() method in ButtonDispatcher
187 (getAlpha() < alpha) ? FADE_DURATION_IN : FADE_DURATION_OUT, in setAlpha()
197 mFadeAnimator = ValueAnimator.ofFloat(getAlpha(), alpha); in setAlpha()
206 int prevAlpha = (int) (getAlpha() * 255); in setAlpha()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DKeyguardStatusBarViewControllerTest.java417 assertThat(mKeyguardStatusBarView.getAlpha()).isEqualTo(1f); in updateViewState_alphaAndVisibilityGiven_viewUpdated()
424 assertThat(mKeyguardStatusBarView.getAlpha()).isEqualTo(newAlpha); in updateViewState_alphaAndVisibilityGiven_viewUpdated()
444 float oldAlpha = mKeyguardStatusBarView.getAlpha(); in updateViewState_notKeyguardState_nothingUpdated()
448 assertThat(mKeyguardStatusBarView.getAlpha()).isEqualTo(oldAlpha); in updateViewState_notKeyguardState_nothingUpdated()
601 assertThat(mKeyguardStatusBarView.getAlpha()).isEqualTo(0.456f); in updateViewState_flagOn_doesNothing()
617 assertThat(mKeyguardStatusBarView.getAlpha()).isEqualTo(0.456f); in updateViewStateWithAlphaAndVis_flagOn_doesNothing()
631 assertThat(mKeyguardStatusBarView.getAlpha()).isEqualTo(0.456f); in setAlpha_flagOn_doesNothing()
657 assertThat(mKeyguardStatusBarView.getAlpha()).isEqualTo(0.5f); in setAlpha_explicitAlpha_setsExplicitAlpha()
668 assertThat(mKeyguardStatusBarView.getAlpha()).isGreaterThan(0); in setAlpha_explicitAlpha_thenMinusOneAlpha_setsAlphaBasedOnDefaultCriteria()
669 assertThat(mKeyguardStatusBarView.getAlpha()).isNotEqualTo(0.5f); in setAlpha_explicitAlpha_thenMinusOneAlpha_setsAlphaBasedOnDefaultCriteria()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/fragment/
DCollapsedStatusBarFragmentTest.java197 assertEquals(0f, getEndSideContentView().getAlpha(), 0.01); in testSystemStatusAnimation_startedDisabled_finishedWithAnimator_showsSystemInfo()
199 assertEquals(0f, getEndSideContentView().getAlpha(), 0.01); in testSystemStatusAnimation_startedDisabled_finishedWithAnimator_showsSystemInfo()
205 assertEquals(0, getEndSideContentView().getAlpha(), 0.01); in testSystemStatusAnimation_startedDisabled_finishedWithAnimator_showsSystemInfo()
212 assertEquals(1, getEndSideContentView().getAlpha(), 0.01); in testSystemStatusAnimation_startedDisabled_finishedWithAnimator_showsSystemInfo()
227 assertEquals(0, getEndSideContentView().getAlpha(), 0.01); in testSystemStatusAnimation_systemInfoDisabled_staysInvisible()
236 assertEquals(1, getEndSideContentView().getAlpha(), 0.01); in testSystemStatusAnimation_notDisabled_animatesAlphaZero()
244 assertEquals(0, getEndSideContentView().getAlpha(), 0.01); in testSystemStatusAnimation_notDisabled_animatesAlphaZero()
251 assertEquals(1, getEndSideContentView().getAlpha(), 0.01); in testSystemStatusAnimation_notDisabled_animatesBackToAlphaOne()
259 assertEquals(0, getEndSideContentView().getAlpha(), 0.01); in testSystemStatusAnimation_notDisabled_animatesBackToAlphaOne()
267 assertEquals(1, getEndSideContentView().getAlpha(), 0.01); in testSystemStatusAnimation_notDisabled_animatesBackToAlphaOne()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DRemoteInputViewTest.java408 assertEquals(0f, fadeOutView.getAlpha()); in testFocusAnimation()
415 assertEquals(1f, fadeOutView.getAlpha()); in testFocusAnimation()
418 assertEquals(1f, view.getAlpha()); in testFocusAnimation()
441 assertEquals(0f, fadeInView.getAlpha()); in testDefocusAnimation()
448 assertEquals(1f, fadeInView.getAlpha()); in testDefocusAnimation()
470 assertEquals(1f, view.getAlpha()); in testUnanimatedFocusAfterDefocusAnimation()
476 assertEquals(1f, view.getAlpha()); in testUnanimatedFocusAfterDefocusAnimation()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/activityembedding/
DActivityEmbeddingAnimationAdapter.java151 t.setAlpha(mLeash, mTransformation.getAlpha()); in onAnimationUpdateInner()
205 t.setAlpha(mLeash, mTransformation.getAlpha()); in onAnimationUpdateInner()
232 t.setAlpha(mLeash, mTransformation.getAlpha()); in onAnimationUpdateInner()
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/embedding/
DTaskFragmentAnimationAdapter.java140 t.setAlpha(mLeash, mTransformation.getAlpha()); in onAnimationUpdateInner()
189 t.setAlpha(mLeash, mTransformation.getAlpha()); in onAnimationUpdateInner()
207 t.setAlpha(mLeash, mTransformation.getAlpha()); in onAnimationUpdateInner()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/
DBubbleFlyoutViewTest.java106 assertEquals(0f, mFlyoutText.getAlpha(), 0.01f); in testSetCollapsePercent()
110 assertEquals(1f, mFlyoutText.getAlpha(), 0.01f); in testSetCollapsePercent()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/
DBubbleBarMenuView.java121 public float getAlpha() { in getAlpha() method in BubbleBarMenuView
122 return mBubbleSectionView.getAlpha(); in getAlpha()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DPageIndicator.java218 v.setAlpha(getAlpha(i == index)); in setIndex()
249 first.setAlpha(getAlpha(false)); in animate()
252 second.setAlpha(getAlpha(true)); in animate()
257 private float getAlpha(boolean isMajor) {
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/animation/
DUnfoldMoveFromCenterAnimator.kt123 view.get()?.alpha = alphaProvider.getAlpha(progress) in AnimatedView()
166 fun getAlpha(progress: Float): Float in getAlpha() method
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/
DSplashScreenExitAnimation.java84 mBrandingStartAlpha = brandingView.getAlpha(); in SplashScreenExitAnimation()
92 mIconStartAlpha = iconView.getAlpha(); in SplashScreenExitAnimation()
/frameworks/base/graphics/java/android/graphics/drawable/
DShapeDrawable.java234 final int prevAlpha = paint.getAlpha(); in draw()
238 if (paint.getAlpha() != 0 || paint.getXfermode() != null || paint.hasShadowLayer()) { in draw()
287 public int getAlpha() { in getAlpha() method in ShapeDrawable
328 final int alpha = p.getAlpha(); in getOpacity()
506 outline.setAlpha(getAlpha() / 255.0f); in getOutline()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DViewState.java133 public float getAlpha() { in getAlpha() method in ViewState
236 mAlpha = view.getAlpha(); in initFrom()
301 } else if (view.getAlpha() != this.mAlpha) { in applyToView()
379 if (!wasVisible && (alpha != 0 || child.getAlpha() != 0) in animateTo()
383 float childAlpha = child.getAlpha(); in animateTo()
469 child.getAlpha(), newEndValue); in startAlphaAnimation()
511 child.setTag(TAG_START_ALPHA, child.getAlpha()); in startAlphaAnimation()

1234567