/frameworks/native/services/surfaceflinger/RenderEngine/ |
D | GLES10RenderEngine.cpp | 32 bool premultipliedAlpha, bool opaque, float alpha) { argument 34 bool premultipliedAlpha, bool opaque, int alpha) { 43 if (CC_UNLIKELY(alpha < 1.0f)) { 45 glColor4f(alpha, alpha, alpha, alpha); 47 glColor4f(1.0f, 1.0f, 1.0f, alpha); 50 if (CC_UNLIKELY(alpha < 0xFF)) { 51 GLfloat floatAlpha = alpha * (1.0f / 255.0f); 64 if (alpha < 1.0f || !opaque) { 66 if (alpha < 0xFF || !opaque) {
|
D | GLES11RenderEngine.cpp | 112 bool opaque, float alpha) { argument 115 bool premultipliedAlpha, bool opaque, int alpha) { 123 if (CC_UNLIKELY(alpha < 1.0f)) { 125 if (CC_UNLIKELY(alpha < 0xFF)) { 133 envColor[0] = alpha; 135 envColor[0] = alpha * (1.0f / 255.0f); 169 if (alpha < 1.0f || !opaque) { 171 if (alpha < 0xFF || !opaque) { 182 void GLES11RenderEngine::setupDimLayerBlending(float alpha) { argument 184 void GLES11RenderEngine::setupDimLayerBlending(int alpha) { [all …]
|
D | GLES20RenderEngine.cpp | 122 bool opaque, float alpha) { argument 125 bool premultipliedAlpha, bool opaque, int alpha) { 131 mState.setPlaneAlpha(alpha); 133 if (alpha < 1.0f || !opaque) { 135 mState.setPlaneAlpha(alpha / 255.0f); 137 if (alpha < 0xFF || !opaque) { 147 void GLES20RenderEngine::setupDimLayerBlending(float alpha) { argument 149 void GLES20RenderEngine::setupDimLayerBlending(int alpha) { 155 mState.setColor(0, 0, 0, alpha); 157 mState.setColor(0, 0, 0, alpha/255.0f); [all …]
|
D | RenderEngine.h | 73 void clearWithColor(float red, float green, float blue, float alpha); 75 float red, float green, float blue, float alpha); 99 virtual void setupLayerBlending(bool premultipliedAlpha, bool opaque, float alpha) = 0; 100 virtual void setupDimLayerBlending(float alpha) = 0; 102 virtual void setupLayerBlending(bool premultipliedAlpha, bool opaque, int alpha) = 0; 103 virtual void setupDimLayerBlending(int alpha) = 0;
|
/frameworks/rs/cpu_ref/ |
D | rsCpuBLASDispatch.h | 23 const float alpha, const float *A, const int lda, 28 const int KL, const int KU, const float alpha, 56 const double alpha, const double *A, const int lda, 61 const int KL, const int KU, const double alpha, 89 const void *alpha, const void *A, const int lda, 94 const int KL, const int KU, const void *alpha, 122 const void *alpha, const void *A, const int lda, 127 const int KL, const int KU, const void *alpha, 158 const int N, const float alpha, const float *A, 162 const int N, const int K, const float alpha, const float *A, [all …]
|
D | rsCpuIntrinsicBLAS.cpp | 137 cblas_sgemv(CblasRowMajor, TransA, call->M, call->N, call->alpha.f, (float*)A, in invokeForEach() 143 call->alpha.f, (float*)A, lda, (float*)X, call->incX, in invokeForEach() 179 cblas_dgemv(CblasRowMajor, TransA, call->M, call->N, call->alpha.d, (double*)A, in invokeForEach() 185 call->alpha.d, (double*)A, lda, (double*)X, call->incX, in invokeForEach() 221 cblas_cgemv(CblasRowMajor, TransA, call->M, call->N, (void*)&call->alpha.c, (void*)A, in invokeForEach() 227 (void*)&call->alpha.c, (void*)A, lda, (void*)X, call->incX, in invokeForEach() 263 cblas_zgemv(CblasRowMajor, TransA, call->M, call->N, (void*)&call->alpha.z, (void*)A, in invokeForEach() 269 (void*)&call->alpha.z, (void*)A, lda, (void*)X, call->incX, in invokeForEach() 308 cblas_ssymv(CblasRowMajor, Uplo, call->N, call->alpha.f, (float*)A, lda, in invokeForEach() 313 cblas_ssbmv(CblasRowMajor, Uplo, call->N, call->K, call->alpha.f, in invokeForEach() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | ScrimController.java | 225 public void setDozeInFrontAlpha(float alpha) { in setDozeInFrontAlpha() argument 226 mDozeInFrontAlpha = alpha; in setDozeInFrontAlpha() 230 public void setDozeBehindAlpha(float alpha) { in setDozeBehindAlpha() argument 231 mDozeBehindAlpha = alpha; in setDozeBehindAlpha() 314 private void setScrimBehindColor(float alpha) { in setScrimBehindColor() argument 315 setScrimColor(mScrimBehind, alpha); in setScrimBehindColor() 318 private void setScrimInFrontColor(float alpha) { in setScrimInFrontColor() argument 319 setScrimColor(mScrimInFront, alpha); in setScrimInFrontColor() 320 if (alpha == 0f) { in setScrimInFrontColor() 329 private void setScrimColor(View scrim, float alpha) { in setScrimColor() argument [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
D | BlendComposite.java | 58 private float alpha; field in BlendComposite 65 private BlendComposite(BlendingMode mode, float alpha) { in BlendComposite() argument 67 setAlpha(alpha); in BlendComposite() 74 public static BlendComposite getInstance(BlendingMode mode, float alpha) { in getInstance() argument 75 if (alpha > 0.9999f) { in getInstance() 78 return new BlendComposite(mode, alpha); in getInstance() 82 return alpha; in getAlpha() 89 private void setAlpha(float alpha) { in setAlpha() argument 90 if (alpha < 0.0f || alpha > 1.0f) { in setAlpha() 95 this.alpha = alpha; in setAlpha() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DimLayer.java | 155 private void setAlpha(float alpha) { in setAlpha() argument 156 if (mAlpha == alpha) { in setAlpha() 159 mAlpha = alpha; in setAlpha() 160 adjustAlpha(alpha); in setAlpha() 163 private void adjustAlpha(float alpha) { in adjustAlpha() argument 164 if (DEBUG_DIM_LAYER) Slog.v(TAG, "setAlpha alpha=" + alpha); in adjustAlpha() 167 mDimSurface.setAlpha(alpha); in adjustAlpha() 169 if (alpha == 0 && mShowing) { in adjustAlpha() 175 } else if (alpha > 0 && !mShowing) { in adjustAlpha() 265 void show(int layer, float alpha, long duration) { in show() argument [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | CrossFadeHelper.java | 33 .alpha(0f) in fadeOut() 75 float alpha = Interpolators.ALPHA_OUT.getInterpolation(1.0f - fadeOutAmount); in fadeOut() local 76 view.setAlpha(alpha); in fadeOut() 77 updateLayerType(view, alpha); in fadeOut() 87 private static void updateLayerType(View view, float alpha) { in updateLayerType() argument 88 if (view.hasOverlappingRendering() && alpha > 0.0f && alpha < 1.0f) { in updateLayerType() 102 .alpha(1f) in fadeIn() 134 float alpha = Interpolators.ALPHA_IN.getInterpolation(fadeInAmount); in fadeIn() local 135 view.setAlpha(alpha); in fadeIn() 136 updateLayerType(view, alpha); in fadeIn()
|
D | KeyguardAffordanceView.java | 169 float alpha = mCircleRadius / mMinBackgroundRadius; in updateIconColor() local 170 alpha = Math.min(1.0f, alpha); in updateIconColor() 171 int color = (int) mColorInterpolator.evaluate(alpha, mNormalColor, mInverseColor); in updateIconColor() 199 int color = Color.argb((int) (Color.alpha(mCircleColor) * fraction), in updateCircleColor() 452 public void setRestingAlpha(float alpha) { in setRestingAlpha() argument 453 mRestingAlpha = alpha; in setRestingAlpha() 456 setImageAlpha(alpha, false); in setRestingAlpha() 463 public void setImageAlpha(float alpha, boolean animate) { in setImageAlpha() argument 464 setImageAlpha(alpha, animate, -1, null, null); in setImageAlpha() 476 public void setImageAlpha(float alpha, boolean animate, long duration, in setImageAlpha() argument [all …]
|
/frameworks/base/rs/java/android/renderscript/ |
D | ScriptIntrinsicBLAS.java | 320 …public void SGEMV(@Transpose int TransA, float alpha, Allocation A, Allocation X, int incX, float … in SGEMV() argument 324 …trinsicBLAS_Single(getID(mRS), RsBlas_sgemv, TransA, 0, 0, 0, 0, M, N, 0, alpha, A.getID(mRS), X.g… in SGEMV() local 342 …public void DGEMV(@Transpose int TransA, double alpha, Allocation A, Allocation X, int incX, doubl… in DGEMV() argument 346 …trinsicBLAS_Double(getID(mRS), RsBlas_dgemv, TransA, 0, 0, 0, 0, M, N, 0, alpha, A.getID(mRS), X.g… in DGEMV() local 364 …public void CGEMV(@Transpose int TransA, Float2 alpha, Allocation A, Allocation X, int incX, Float… in CGEMV() argument 368 …cBLAS_Complex(getID(mRS), RsBlas_cgemv, TransA, 0, 0, 0, 0, M, N, 0, alpha.x, alpha.y, A.getID(mRS… in CGEMV() 386 …public void ZGEMV(@Transpose int TransA, Double2 alpha, Allocation A, Allocation X, int incX, Doub… in ZGEMV() argument 390 …trinsicBLAS_Z(getID(mRS), RsBlas_zgemv, TransA, 0, 0, 0, 0, M, N, 0, alpha.x, alpha.y, A.getID(mRS… in ZGEMV() 417 …public void SGBMV(@Transpose int TransA, int KL, int KU, float alpha, Allocation A, Allocation X, … in SGBMV() argument 425 …trinsicBLAS_Single(getID(mRS), RsBlas_sgbmv, TransA, 0, 0, 0, 0, M, N, 0, alpha, A.getID(mRS), X.g… in SGBMV() local [all …]
|
/frameworks/rs/cpp/ |
D | ScriptIntrinsicBLAS.cpp | 66 call.alpha.f = alphaF; in setUpBLASCall() 71 call.alpha.d = alphaD; in setUpBLASCall() 76 call.alpha.c.r = alphaCX; in setUpBLASCall() 77 call.alpha.c.i = alphaCY; in setUpBLASCall() 83 call.alpha.z.r = alphaZX; in setUpBLASCall() 84 call.alpha.z.i = alphaZY; in setUpBLASCall() 103 float alpha, RsAllocation A, RsAllocation B, in nScriptIntrinsicBLAS_Single() argument 106 M, N, K, incX, incY, KL, KU, alpha, beta, 0.0, 0.0, in nScriptIntrinsicBLAS_Single() 117 double alpha, RsAllocation A, RsAllocation B, in nScriptIntrinsicBLAS_Double() argument 120 M, N, K, incX, incY, KL, KU, 0.0f, 0.0f, alpha, beta, in nScriptIntrinsicBLAS_Double() [all …]
|
D | rsCppStructs.h | 1850 float alpha, sp<Allocation> A, sp<Allocation> X, int incX, 1869 double alpha, sp<Allocation> A, sp<Allocation> X, int incX, 1888 Float2 alpha, sp<Allocation> A, sp<Allocation> X, int incX, 1907 Double2 alpha, sp<Allocation> A, sp<Allocation> X, int incX, 1935 int KL, int KU, float alpha, sp<Allocation> A, sp<Allocation> X, int incX, 1963 int KL, int KU, double alpha, sp<Allocation> A, sp<Allocation> X, 1991 int KL, int KU, Float2 alpha, sp<Allocation> A, sp<Allocation> X, 2019 int KL, int KU, Double2 alpha, sp<Allocation> A, sp<Allocation> X, int incX, 2549 void SSYMV(RsBlasUplo Uplo, float alpha, sp<Allocation> A, sp<Allocation> X, 2575 void SSBMV(RsBlasUplo Uplo, int K, float alpha, sp<Allocation> A, sp<Allocation> X, [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/tv/animations/ |
D | DismissAnimationsHolder.java | 66 .alpha(1.0f) in startEnterAnimation() 77 .alpha(1.0f); in startEnterAnimation() 83 .alpha(0.5f); in startEnterAnimation() 89 .alpha(0.5f); in startEnterAnimation() 96 .alpha(mDismissIconNotInDismissStateAlpha) in startExitAnimation() 107 .alpha(0.0f); in startExitAnimation() 113 .alpha(1.0f); in startExitAnimation() 119 .alpha(1.0f); in startExitAnimation() 126 .alpha(0.0f) in startDismissAnimation() 137 .alpha(0.0f); in startDismissAnimation() [all …]
|
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
D | ScriptIntrinsicBLAS.java | 327 …public void SGEMV(@Transpose int TransA, float alpha, Allocation A, Allocation X, int incX, float … in SGEMV() argument 341 …trinsicBLAS_Single(getID(mRS), RsBlas_sgemv, TransA, 0, 0, 0, 0, M, N, 0, alpha, aID, xID, beta, y… in SGEMV() local 359 …public void DGEMV(@Transpose int TransA, double alpha, Allocation A, Allocation X, int incX, doubl… in DGEMV() argument 373 …trinsicBLAS_Double(getID(mRS), RsBlas_dgemv, TransA, 0, 0, 0, 0, M, N, 0, alpha, aID, xID, beta, y… in DGEMV() local 391 …public void CGEMV(@Transpose int TransA, Float2 alpha, Allocation A, Allocation X, int incX, Float… in CGEMV() argument 405 …cBLAS_Complex(getID(mRS), RsBlas_cgemv, TransA, 0, 0, 0, 0, M, N, 0, alpha.x, alpha.y, aID, xID, b… in CGEMV() 423 …public void ZGEMV(@Transpose int TransA, Double2 alpha, Allocation A, Allocation X, int incX, Doub… in ZGEMV() argument 437 …trinsicBLAS_Z(getID(mRS), RsBlas_zgemv, TransA, 0, 0, 0, 0, M, N, 0, alpha.x, alpha.y, aID, xID, b… in ZGEMV() 464 …public void SGBMV(@Transpose int TransA, int KL, int KU, float alpha, Allocation A, Allocation X, … in SGBMV() argument 482 …trinsicBLAS_Single(getID(mRS), RsBlas_sgbmv, TransA, 0, 0, 0, 0, M, N, 0, alpha, aID, xID, beta, y… in SGBMV() local [all …]
|
/frameworks/base/libs/hwui/ |
D | Vertex.h | 104 float alpha; member 106 static inline void set(AlphaVertex* vertex, float x, float y, float alpha) { in set() 107 *vertex = { x, y, alpha }; in set() 112 AlphaVertex::set(vertex, src.x + x, src.y + y, src.alpha); in copyWithOffset() 115 static inline void setColor(AlphaVertex* vertex, float alpha) { in setColor() 116 vertex[0].alpha = alpha; in setColor()
|
D | BakedOpState.h | 135 const float alpha; variable 145 , alpha(snapshot.alpha) in BakedOpState() 152 , alpha(snapshot.alpha) in BakedOpState() 158 , alpha(snapshot.alpha) in BakedOpState() 164 , alpha(1.0f) in BakedOpState()
|
/frameworks/base/core/java/android/view/ |
D | RoundScrollbarRenderer.java | 57 public void drawRoundScrollbars(Canvas canvas, float alpha, Rect bounds) { in drawRoundScrollbars() argument 58 if (alpha == 0) { in drawRoundScrollbars() 73 setThumbColor(applyAlpha(DEFAULT_THUMB_COLOR, alpha)); in drawRoundScrollbars() 74 setTrackColor(applyAlpha(DEFAULT_TRACK_COLOR, alpha)); in drawRoundScrollbars() 107 private static int applyAlpha(int color, float alpha) { in applyAlpha() argument 108 int alphaByte = (int) (Color.alpha(color) * alpha); in applyAlpha()
|
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
D | TileDrawable.java | 97 final int alpha = mPaint.getAlpha(); in draw() local 99 mPaint.setAlpha(alpha); in draw() 105 public void setAlpha(int alpha) { in setAlpha() argument 107 mPaint.setAlpha(alpha); in setAlpha() 108 setInnerAlpha(alpha); in setAlpha() 109 if (alpha != old) { in setAlpha() 165 public void setInnerAlpha(int alpha) { in setInnerAlpha() argument 166 if (mInner != null) mInner.setAlpha(alpha); in setInnerAlpha()
|
D | CircularBitmapDrawable.java | 106 float alpha = placeholder.getPaint().getAlpha() / 255f; in onDrawPlaceholderOrProgress() local 108 onDrawCircularBitmap(bitmap, canvas, mRect, bounds, alpha); in onDrawPlaceholderOrProgress() 132 final Rect src, final Rect dst, final float alpha) { in onDrawCircularBitmap() argument 151 mBitmapPaint.setAlpha((int) (oldAlpha * alpha)); in onDrawCircularBitmap() 162 public void setAlpha(int alpha) { in setAlpha() argument 163 super.setAlpha(alpha); in setAlpha() 166 mBitmapPaint.setAlpha(alpha); in setAlpha() 167 if (alpha != old) { in setAlpha()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
D | TaskViewTransform.java | 56 public float alpha = 1f; field in TaskViewTransform 71 alpha = tv.getAlpha(); in fillIn() 84 alpha = other.alpha; in copyFrom() 97 && other.alpha == alpha in isSame() 109 alpha = 1f; in reset() 118 return (Float.compare(alpha, v) != 0); in hasAlphaChangedFrom() 153 v.setAlpha(alpha); in applyToTaskView() 172 ObjectAnimator anim = ObjectAnimator.ofFloat(v, View.ALPHA, v.getAlpha(), alpha); in applyToTaskView()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/ |
D | ViewState.java | 28 public float alpha; field in ViewState 35 alpha = viewState.alpha; in copyFrom() 43 alpha = view.getAlpha(); in initFrom()
|
D | NotificationChildrenContainer.java | 487 childState.alpha = 0; 489 childState.alpha = 1; 491 childState.alpha = (mActualHeight - childState.yTranslation) / childState.height; 492 childState.alpha = Math.max(0.0f, Math.min(1.0f, childState.alpha)); 514 mGroupOverFlowState.alpha = mirrorView.getAlpha(); 518 mGroupOverFlowState.alpha = 0.0f; 590 float alpha = mChildrenExpanded && viewState.alpha != 0 ? 0.5f : 0; 591 if (mUserLocked && viewState.alpha != 0) { 592 alpha = NotificationUtils.interpolate(0, 0.5f, 593 Math.min(viewState.alpha, expandFraction)); [all …]
|
/frameworks/support/compat/tests/java/android/support/v4/view/ |
D | ViewPropertyAnimatorCompatTest.java | 58 ViewCompat.animate(mView).alpha(0).setDuration(100).withEndAction(new Runnable() { in testWithEndAction() 74 ViewCompat.animate(mView).alpha(0).setDuration(50).withEndAction(new Runnable() { in testWithEndAction() 78 ViewCompat.animate(mView).alpha(1); in testWithEndAction() 94 ViewCompat.animate(mView).alpha(0).setDuration(100).withStartAction(new Runnable() { in testWithStartAction() 110 ViewCompat.animate(mView).alpha(0).setDuration(50).withStartAction(new Runnable() { in testWithStartAction() 114 ViewCompat.animate(mView).alpha(1); in testWithStartAction()
|