/frameworks/rs/cpu_ref/ |
D | rsCpuBLASDispatch.h | 26 const float alpha, const float *A, const int lda, 31 const int KL, const int KU, const float alpha, 59 const double alpha, const double *A, const int lda, 64 const int KL, const int KU, const double alpha, 92 const void *alpha, const void *A, const int lda, 97 const int KL, const int KU, const void *alpha, 125 const void *alpha, const void *A, const int lda, 130 const int KL, const int KU, const void *alpha, 161 const int N, const float alpha, const float *A, 165 const int N, const int K, const float alpha, const float *A, [all …]
|
D | rsCpuIntrinsicBLAS.cpp | 144 static void walk_tiled_gemm(Func blasFunc, T_param alpha, T_param beta, int vecSize, in walk_tiled_gemm() argument 184 mEnd - mStart, nEnd - nStart, call->K, alpha, in walk_tiled_gemm() 196 float alpha = call->alpha.f; in walk_2d_sgemm() local 199 walk_tiled_gemm<float, float, FnPtr_cblas_sgemm>(cblas_sgemm, alpha, beta, 1, call, mtls); in walk_2d_sgemm() 207 double alpha = call->alpha.d; in walk_2d_dgemm() local 210 walk_tiled_gemm<double, double, FnPtr_cblas_dgemm>(cblas_dgemm, alpha, beta, 1, call, mtls); in walk_2d_dgemm() 218 void * alpha = (void *)&call->alpha.c; in walk_2d_cgemm() local 221 walk_tiled_gemm<float, void *, FnPtr_cblas_cgemm>(cblas_cgemm, alpha, beta, 2, call, mtls); in walk_2d_cgemm() 229 void * alpha = (void *)&call->alpha.z; in walk_2d_zgemm() local 232 walk_tiled_gemm<double, void *, FnPtr_cblas_zgemm>(cblas_zgemm, alpha, beta, 2, call, mtls); in walk_2d_zgemm() [all …]
|
/frameworks/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() 92 alpha = Math.min(alpha, 1.0f); in setAlpha() [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/base/libs/hwui/ |
D | Layer.h | 43 Layer(RenderState& renderState, sk_sp<SkColorFilter>, int alpha, SkBlendMode mode); 61 inline void setAlpha(int alpha) { this->alpha = alpha; } in setAlpha() argument 63 inline void setAlpha(int alpha, SkBlendMode mode) { in setAlpha() argument 64 this->alpha = alpha; in setAlpha() 68 inline int getAlpha() const { return alpha; } in getAlpha() 108 int alpha; variable
|
/frameworks/rs/cpp/ |
D | ScriptIntrinsicBLAS.cpp | 72 call.alpha.f = alphaF; in setUpBLASCall() 77 call.alpha.d = alphaD; in setUpBLASCall() 82 call.alpha.c.r = alphaCX; in setUpBLASCall() 83 call.alpha.c.i = alphaCY; in setUpBLASCall() 89 call.alpha.z.r = alphaZX; in setUpBLASCall() 90 call.alpha.z.i = alphaZY; in setUpBLASCall() 109 float alpha, RsAllocation A, RsAllocation B, in nScriptIntrinsicBLAS_Single() argument 112 M, N, K, incX, incY, KL, KU, alpha, beta, 0.0, 0.0, in nScriptIntrinsicBLAS_Single() 123 double alpha, RsAllocation A, RsAllocation B, in nScriptIntrinsicBLAS_Double() argument 126 M, N, K, incX, incY, KL, KU, 0.0f, 0.0f, alpha, beta, in nScriptIntrinsicBLAS_Double() [all …]
|
D | rsCppStructs.h | 1850 float alpha, const sp<Allocation>& A, const sp<Allocation>& X, int incX, 1869 double alpha, const sp<Allocation>& A, const sp<Allocation>& X, int incX, 1888 Float2 alpha, const sp<Allocation>& A, const sp<Allocation>& X, int incX, 1907 Double2 alpha, const sp<Allocation>& A, const sp<Allocation>& X, int incX, 1935 … int KL, int KU, float alpha, const sp<Allocation>& A, const sp<Allocation>& X, int incX, 1963 int KL, int KU, double alpha, const sp<Allocation>& A, const sp<Allocation>& X, 1991 int KL, int KU, Float2 alpha, const sp<Allocation>& A, const sp<Allocation>& X, 2019 … int KL, int KU, Double2 alpha, const sp<Allocation>& A, const sp<Allocation>& X, int incX, 2549 void SSYMV(RsBlasUplo Uplo, float alpha, const sp<Allocation>& A, const sp<Allocation>& X, 2575 … void SSBMV(RsBlasUplo Uplo, int K, float alpha, const sp<Allocation>& A, const sp<Allocation>& X, [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | DimmerTests.java | 127 final float alpha = 0.8f; in testDimAboveNoChildCreatesSurface() local 128 mDimmer.dimAbove(mTransaction, alpha); in testDimAboveNoChildCreatesSurface() 134 verify(mTransaction).setAlpha(dimLayer, alpha); in testDimAboveNoChildCreatesSurface() 140 float alpha = 0.8f; in testDimAboveNoChildRedundantlyUpdatesAlphaOnExistingSurface() local 141 mDimmer.dimAbove(mTransaction, alpha); in testDimAboveNoChildRedundantlyUpdatesAlphaOnExistingSurface() 144 alpha = 0.9f; in testDimAboveNoChildRedundantlyUpdatesAlphaOnExistingSurface() 145 mDimmer.dimAbove(mTransaction, alpha); in testDimAboveNoChildRedundantlyUpdatesAlphaOnExistingSurface() 180 final float alpha = 0.8f; in testDimAboveWithChildCreatesSurfaceAboveChild() local 181 mDimmer.dimAbove(mTransaction, child, alpha); in testDimAboveWithChildCreatesSurfaceAboveChild() 186 verify(mTransaction).setAlpha(dimLayer, alpha); in testDimAboveWithChildCreatesSurfaceAboveChild() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | CrossFadeHelper.java | 43 .alpha(0f) in fadeOut() 86 float alpha = Interpolators.ALPHA_OUT.getInterpolation(1.0f - fadeOutAmount); in fadeOut() local 87 view.setAlpha(alpha); in fadeOut() 88 updateLayerType(view, alpha); in fadeOut() 98 private static void updateLayerType(View view, float alpha) { in updateLayerType() argument 99 if (view.hasOverlappingRendering() && alpha > 0.0f && alpha < 1.0f) { in updateLayerType() 123 .alpha(1f) in fadeIn() 156 float alpha = Interpolators.ALPHA_IN.getInterpolation(fadeInAmount); in fadeIn() local 157 view.setAlpha(alpha); in fadeIn() 158 updateLayerType(view, alpha); in fadeIn()
|
D | ScrimView.java | 142 float tintAmount = Color.alpha(mTintColor) / 255f; in updateColorWithTint() 147 boolean hasAlpha = Color.alpha(mTintColor) != 0; in updateColorWithTint() 183 public void setViewAlpha(float alpha) { in setViewAlpha() argument 184 if (isNaN(alpha)) { in setViewAlpha() 187 if (alpha != mViewAlpha) { in setViewAlpha() 188 mViewAlpha = alpha; in setViewAlpha() 190 mDrawable.setAlpha((int) (255 * alpha)); in setViewAlpha()
|
/frameworks/rs/support/java/src/androidx/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/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | ScrimController.java | 437 float alpha = getCurrentScrimAlpha(scrim); in setOrAdaptCurrentAnimation() local 440 float relativeDiff = alpha - previousEndValue; in setOrAdaptCurrentAnimation() 443 scrim.setTag(TAG_END_ALPHA, alpha); in setOrAdaptCurrentAnimation() 500 public void setAodFrontScrimAlpha(float alpha) { in setAodFrontScrimAlpha() argument 502 || mState == ScrimState.PULSING) && mCurrentInFrontAlpha != alpha) { in setAodFrontScrimAlpha() 503 mCurrentInFrontAlpha = alpha; in setAodFrontScrimAlpha() 507 mState.AOD.setAodFrontScrimAlpha(alpha); in setAodFrontScrimAlpha() 508 mState.PULSING.setAodFrontScrimAlpha(alpha); in setAodFrontScrimAlpha() 593 private void dispatchScrimState(float alpha) { in dispatchScrimState() argument 594 mScrimStateListener.accept(mState, alpha, mScrimInFront.getColors()); in dispatchScrimState() [all …]
|
D | ButtonDispatcher.java | 171 public void setAlpha(float alpha) { in setAlpha() argument 172 setAlpha(alpha, false /* animate */); in setAlpha() 175 public void setAlpha(float alpha, boolean animate) { in setAlpha() argument 176 setAlpha(alpha, animate, true /* cancelAnimator */); in setAlpha() 179 public void setAlpha(float alpha, boolean animate, long duration) { in setAlpha() argument 180 setAlpha(alpha, animate, duration, true /* cancelAnimator */); in setAlpha() 183 public void setAlpha(float alpha, boolean animate, boolean cancelAnimator) { in setAlpha() argument 185 alpha, in setAlpha() 187 (getAlpha() < alpha) ? FADE_DURATION_IN : FADE_DURATION_OUT, in setAlpha() 191 public void setAlpha(float alpha, boolean animate, long duration, boolean cancelAnimator) { in setAlpha() argument [all …]
|
/frameworks/ml/nn/runtime/test/specs/V1_3/ |
D | elu.mod.py | 17 def test(name, input0, alpha, output0, input0_data, output0_data): argument 18 model = Model().Operation("ELU", input0, alpha).To(output0) 27 alpha=Float32Scalar("alpha", 1.0), 36 alpha=Float32Scalar("alpha", 0.1), 45 alpha=Float32Scalar("alpha", 10),
|
/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/legacy/recents/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/core/java/android/view/ |
D | RoundScrollbarRenderer.java | 64 public void drawRoundScrollbars(Canvas canvas, float alpha, Rect bounds) { in drawRoundScrollbars() argument 65 if (alpha == 0) { in drawRoundScrollbars() 80 setThumbColor(applyAlpha(DEFAULT_THUMB_COLOR, alpha)); in drawRoundScrollbars() 81 setTrackColor(applyAlpha(DEFAULT_TRACK_COLOR, alpha)); in drawRoundScrollbars() 114 private static int applyAlpha(int color, float alpha) { in applyAlpha() argument 115 int alphaByte = (int) (Color.alpha(color) * alpha); in applyAlpha()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/ |
D | BubbleDismissView.java | 78 mDismissTargetAlphaSpring.addEndListener((anim, canceled, alpha, velocity) -> { in BubbleDismissView() argument 82 if (alpha < 0.5f) { in BubbleDismissView() 98 .alpha(1f); in springIn() 112 .alpha(1f) in springIn() 124 .alpha(0f); in springOut() 136 .alpha(0f); in springOut()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Color.java | 550 public float alpha() { in alpha() method in Color 779 public static float alpha(@ColorLong long color) { in alpha() method in Color 845 float a = alpha(color); in toArgb() 883 return new Color(red(color), green(color), blue(color), alpha(color), colorSpace(color)); in valueOf() 1016 public static long pack(float red, float green, float blue, float alpha) { in pack() argument 1017 return pack(red, green, blue, alpha, ColorSpace.get(ColorSpace.Named.SRGB)); in pack() 1040 public static long pack(float red, float green, float blue, float alpha, in pack() argument 1044 ((int) (alpha * 255.0f + 0.5f) << 24) | in pack() 1065 int a = (int) (Math.max(0.0f, Math.min(alpha, 1.0f)) * 1023.0f + 0.5f); in pack() 1114 float a = alpha(color); in convert() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | Dimmer.java | 204 float alpha) { in dim() argument 219 t.setAlpha(d.mDimLayer, alpha); in dim() 246 void dimAbove(SurfaceControl.Transaction t, float alpha) { in dimAbove() argument 247 dim(t, null, 1, alpha); in dimAbove() 259 void dimAbove(SurfaceControl.Transaction t, WindowContainer container, float alpha) { in dimAbove() argument 260 dim(t, container, 1, alpha); in dimAbove() 271 void dimBelow(SurfaceControl.Transaction t, WindowContainer container, float alpha) { in dimBelow() argument 272 dim(t, container, -1, alpha); in dimBelow() 379 float alpha = ((float) currentPlayTime / getDuration()) * (mToAlpha - mFromAlpha) in apply() local 381 t.setAlpha(sc, alpha); in apply()
|
/frameworks/base/libs/hwui/utils/ |
D | MathUtils.h | 46 inline static float clampAlpha(float alpha) { in clampAlpha() argument 47 if (alpha <= ALPHA_EPSILON) { in clampAlpha() 49 } else if (alpha >= (1 - ALPHA_EPSILON)) { in clampAlpha() 52 return alpha; in clampAlpha()
|
/frameworks/layoutlib/bridge/src/android/view/shadow/ |
D | HighQualityShadowPainter.java | 38 Canvas canvas, float alpha, float densityDpi) { in paintRectShadow() argument 49 if (!outline.getRect(rectScaled) || alpha < MIN_ALPHA) { in paintRectShadow() 68 alpha = (alpha > 1.0f) ? 1.0f : alpha; in paintRectShadow() 71 paintAmbientShadow(poly, canvas, width, height, alpha, rectOriginal, radius); in paintRectShadow() 73 canvas, densityDpi, width, height, alpha, rectOriginal, radius); in paintRectShadow() 102 float alpha, Rect shadowCasterOutline, float radius) { in paintAmbientShadow() argument 111 .setShadowStrength(ShadowConstants.AMBIENT_SHADOW_STRENGTH * alpha) in paintAmbientShadow() 140 float densityDpi, int width, int height, float alpha, Rect shadowCasterOutline, in paintSpotShadow() argument 163 .setShadowStrength(ShadowConstants.SPOT_SHADOW_STRENGTH * alpha) in paintSpotShadow()
|
/frameworks/base/core/java/com/android/internal/graphics/ |
D | ColorUtils.java | 49 int bgAlpha = Color.alpha(background); in compositeColors() 50 int fgAlpha = Color.alpha(foreground); in compositeColors() 92 if (Color.alpha(background) != 255) { in calculateContrast() 96 if (Color.alpha(foreground) < 255) { in calculateContrast() 124 return binaryAlphaSearch(foreground, background, minContrastRatio, (fg, bg, alpha) -> { in calculateMinimumBackgroundAlpha() 125 int testBackground = blendARGB(leastContrastyColor, bg, alpha/255f); in calculateMinimumBackgroundAlpha() 145 if (Color.alpha(background) != 255) { in calculateMinimumAlpha() 150 ContrastCalculator contrastCalculator = (fg, bg, alpha) -> { in calculateMinimumAlpha() 151 int testForeground = setAlphaComponent(fg, alpha); in calculateMinimumAlpha() 340 @IntRange(from = 0x0, to = 0xFF) int alpha) { in setAlphaComponent() [all …]
|
/frameworks/ml/nn/common/operations/ |
D | LocalResponseNormalization.cpp | 51 int32_t radius, float bias, float alpha, float beta, in localResponseNormFloat32Impl() argument 72 float multiplier = std::pow(bias + alpha * sum, -beta); in localResponseNormFloat32Impl() 81 bool localResponseNorm(const T* inputData, const Shape& inputShape, int32_t radius, T bias, T alpha, 86 float bias, float alpha, float beta, int32_t axis, float* outputData, in localResponseNorm() argument 94 .range = radius, .bias = bias, .alpha = alpha, .beta = beta}; in localResponseNorm() 100 return localResponseNormFloat32Impl(inputData, inputShape, radius, bias, alpha, beta, axis, in localResponseNorm() 107 _Float16 bias, _Float16 alpha, _Float16 beta, int32_t axis, in localResponseNorm() argument 114 localResponseNorm<float>(inputDataFloat32.data(), inputShape, radius, bias, alpha, beta, axis, in localResponseNorm()
|