Home
last modified time | relevance | path

Searched refs:mAlpha (Results 1 – 25 of 38) sorted by relevance

12

/frameworks/base/core/java/android/view/animation/
DTransformation.java50 protected float mAlpha; field in Transformation
76 mAlpha = 1.0f; in clear()
107 mAlpha = t.getAlpha(); in set()
124 mAlpha *= t.getAlpha(); in compose()
143 mAlpha *= t.getAlpha(); in postCompose()
169 mAlpha = alpha; in setAlpha()
209 return mAlpha; in getAlpha()
233 sb.append("{alpha="); sb.append(mAlpha); in toShortString()
244 pw.print("{alpha="); pw.print(mAlpha); in printShortString()
/frameworks/base/graphics/java/android/graphics/drawable/
DTransitionDrawable.java74 private int mAlpha = 0; field in TransitionDrawable
117 mAlpha = 0; in startTransition()
130 mAlpha = 255; in showSecondLayer()
140 mAlpha = 0; in resetTransition()
160 mAlpha = 0; in reverseTransition()
165 mAlpha = 255; in reverseTransition()
175 mFrom = mAlpha; in reverseTransition()
199 mAlpha = (int) (mFrom + (mTo - mFrom) * normalized); in draw()
204 final int alpha = mAlpha; in draw()
DColorStateListDrawable.java97 mState.mAlpha = alpha; in setAlpha()
106 mState.mAlpha = -1; in clearAlpha()
150 if (mState.mAlpha != -1) { in onStateChange()
151 color = (color & 0xFFFFFF) | MathUtils.constrain(mState.mAlpha, 0, 255) << 24; in onStateChange()
245 int mAlpha = -1; field in ColorStateListDrawable.ColorStateListDrawableState
255 mAlpha = state.mAlpha; in ColorStateListDrawableState()
DShapeDrawable.java235 paint.setAlpha(modulateAlpha(prevAlpha, state.mAlpha)); in draw()
282 mShapeState.mAlpha = alpha; in setAlpha()
288 return mShapeState.mAlpha; in getAlpha()
549 int mAlpha = 255; field in ShapeDrawable.ShapeState
584 mAlpha = orig.mAlpha; in ShapeState()
DDrawableContainer.java65 private int mAlpha = 0xFF; field in DrawableContainer
144 if (!mHasAlpha || mAlpha != alpha) { in setAlpha()
146 mAlpha = alpha; in setAlpha()
159 return mAlpha; in getAlpha()
285 mCurrDrawable.setAlpha(mAlpha); in jumpToCurrentState()
536 d.setAlpha(mAlpha); in initializeDrawableForDisplay()
577 mCurrDrawable.setAlpha(mAlpha); in animate()
582 mCurrDrawable.setAlpha(((255-animAlpha)*mAlpha)/255); in animate()
599 mLastDrawable.setAlpha((animAlpha*mAlpha)/255); in animate()
/frameworks/base/libs/hwui/
DOutline.h31 Outline() : mShouldClip(false), mType(Type::None), mRadius(0), mAlpha(0.0f) {} in Outline()
34 mAlpha = alpha; in setRoundRect()
68 mAlpha = alpha; in setConvexPath()
74 mAlpha = 0.0f; in setEmpty()
80 mAlpha = 0.0f; in setNone()
85 float getAlpha() const { return mAlpha; } in getAlpha()
127 float mAlpha; variable
DDeferredLayerUpdater.cpp61 mAlpha = PaintUtils::getAlphaDirect(paint); in setPaint()
72 mLayer = new Layer(mRenderState, mColorFilter, mAlpha, mMode); in apply()
76 mLayer->setAlpha(mAlpha, mMode); in apply()
DRenderProperties.h83 bool setAlpha(uint8_t alpha) { return RP_SET(mAlpha, alpha); } in setAlpha()
85 uint8_t alpha() const { return mAlpha; } in alpha()
115 uint8_t mAlpha; variable
228 return RP_SET(mPrimitiveFields.mAlpha, alpha); in setAlpha()
231 float getAlpha() const { return mPrimitiveFields.mAlpha; } in getAlpha()
537 (!MathUtils::isZero(mPrimitiveFields.mAlpha) && mPrimitiveFields.mAlpha < 1 && in promotedToLayer()
561 float mAlpha = 1; member
DRenderProperties.cpp130 if (mPrimitiveFields.mAlpha < 1 && !MathUtils::isZero(mPrimitiveFields.mAlpha)) { in debugOutputProperties()
137 output << indent << "(ScaleAlpha " << mPrimitiveFields.mAlpha << ")" << std::endl; in debugOutputProperties()
147 << (int)layerBounds.bottom << ", " << (int)(mPrimitiveFields.mAlpha * 255) in debugOutputProperties()
DDeferredLayerUpdater.h113 int mAlpha = 255; variable
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/views/
DAnimateableViewBounds.java39 protected float mAlpha = 1f; field in AnimateableViewBounds
56 outline.setAlpha(Utilities.mapRange(mAlpha, MIN_ALPHA, MAX_ALPHA)); in getOutline()
73 if (Float.compare(alpha, mAlpha) != 0) { in setAlpha()
74 mAlpha = alpha; in setAlpha()
84 return mAlpha; in getAlpha()
/frameworks/base/core/java/com/android/internal/colorextraction/drawable/
DScrimDrawable.java43 private int mAlpha = 255; field in ScrimDrawable
98 if (alpha != mAlpha) { in setAlpha()
99 mAlpha = alpha; in setAlpha()
106 return mAlpha; in getAlpha()
133 mPaint.setAlpha(mAlpha); in draw()
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/
DAssistDisclosure.java110 private int mAlpha = 0; field in AssistDisclosure.AssistDisclosureView
170 mAlpha = 0; in onDetachedFromWindow()
180 mPaint.setAlpha(mAlpha); in onDraw()
181 mShadowPaint.setAlpha(mAlpha / 4); in onDraw()
231 mAlpha = (int) mAlphaOutAnimator.getAnimatedValue(); in onAnimationUpdate()
233 mAlpha = (int) mAlphaInAnimator.getAnimatedValue(); in onAnimationUpdate()
/frameworks/base/core/java/com/android/internal/widget/
DDrawableHolder.java43 private float mAlpha = 1f; field in DrawableHolder
129 if (mAlpha <= threshold) // don't bother if it won't show up in draw()
135 mDrawable.setAlpha((int) Math.round(mAlpha * 255f)); in draw()
175 mAlpha = alpha; in setAlpha()
195 return mAlpha; in getAlpha()
/frameworks/base/graphics/java/android/graphics/
DOutline.java75 public float mAlpha; field in Outline
143 mAlpha = alpha; in setAlpha()
150 return mAlpha; in getAlpha()
168 mAlpha = src.mAlpha; in set()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DKeyguardUserSwitcherScrim.java45 private int mAlpha = 255; field in KeyguardUserSwitcherScrim
68 mAlpha = alpha; in setAlpha()
75 return mAlpha; in getAlpha()
106 (int) (Color.alpha(mDarkColor) * mAlpha / 255f), 0, 0, 0), in updatePaint()
DKeyButtonDrawable.java159 mState.mAlpha = alpha; in setAlpha()
359 Math.round(alpha * (mState.mAlpha / 255f) * (1 - mState.mDarkIntensity))); in updateShadowAlpha()
385 int mAlpha; field in KeyButtonDrawable.ShadowDrawableState
403 mAlpha = 255; in ShadowDrawableState()
/frameworks/layoutlib/bridge/src/android/graphics/
DShader_Delegate.java52 private float mAlpha = 1.0f; field in Shader_Delegate
112 mAlpha = alpha; in setAlpha()
116 return mAlpha; in getAlpha()
/frameworks/base/libs/hwui/hwui/
DAnimatedImageDrawable.h64 int getStagingAlpha() const { return mStagingProperties.mAlpha; } in getStagingAlpha()
65 void setStagingAlpha(int alpha) { mStagingProperties.mAlpha = alpha; } in setStagingAlpha()
145 int mAlpha = SK_AlphaOPAQUE; member
DAnimatedImageDrawable.cpp132 if (mProperties.mAlpha != SK_AlphaOPAQUE || mProperties.mColorFilter.get()) { in onDraw()
134 lazyPaint->setAlpha(mProperties.mAlpha); in onDraw()
209 if (mStagingProperties.mAlpha != SK_AlphaOPAQUE || mStagingProperties.mColorFilter.get()) { in drawStaging()
211 paint.setAlpha(mStagingProperties.mAlpha); in drawStaging()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DButtonDispatcher.java49 private Float mAlpha; field in ButtonDispatcher
91 if (mAlpha != null) { in addView()
92 view.setAlpha(mAlpha); in addView()
128 return mAlpha != null ? mAlpha : 1; in getAlpha()
206 mAlpha = alpha; in setAlpha()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationMenuRow.java106 private float mAlpha = 0f; field in NotificationMenuRow
198 return mAlpha > 0; in isMenuVisible()
377 if (mAlpha == 0f && mParent != null) { in onSnapOpen()
542 mAlpha = alpha; in setMenuAlpha()
554 mMenuContainer.getChildAt(i).setAlpha(mAlpha); in setMenuAlpha()
590 mFadeAnimator = ValueAnimator.ofFloat(mAlpha, 1); in fadeInMenu()
618 mMenuFadedIn = mAlpha == 1; in fadeInMenu()
696 menuView.setAlpha(mAlpha); in addMenuView()
/frameworks/base/core/java/android/widget/
DScrollBarDrawable.java57 private int mAlpha = 255; field in ScrollBarDrawable
321 d.setAlpha(mAlpha); in propagateCurrentState()
362 mAlpha = alpha; in setAlpha()
381 return mAlpha; in getAlpha()
/frameworks/base/libs/hwui/pipeline/skia/
DRenderNodeDrawable.cpp187 AlphaFilterCanvas(SkCanvas* canvas, float alpha) : SkPaintFilterCanvas(canvas), mAlpha(alpha) {} in AlphaFilterCanvas()
195 paint->writable()->setAlpha((uint8_t)(*paint)->getAlpha() * mAlpha); in onFilter()
205 float mAlpha; member in android::uirenderer::skiapipeline::AlphaFilterCanvas
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DBoundsAnimationControllerTests.java136 float mAlpha; field in BoundsAnimationControllerTests.TestBoundsAnimationTarget
196 mAlpha = alpha; in setPinnedStackAlpha()
347 assertEquals((float) mMockAnimator.getAnimatedValue(), mTarget.mAlpha, 0.01f); in update()
383 assertEquals(mTarget.mAlpha, 1f, 0.01f); in end()

12