Home
last modified time | relevance | path

Searched refs:alpha (Results 1 – 25 of 432) sorted by relevance

12345678910>>...18

/frameworks/ml/nn/runtime/test/generated/models/
Dprelu.model.cpp8 auto alpha = model->addOperand(&type1); in CreateModel() local
12 model->setOperandValue(alpha, alpha_init, sizeof(float) * 3); in CreateModel()
13 model->addOperation(ANEURALNETWORKS_PRELU, {input, alpha}, {output}); in CreateModel()
31 auto alpha = model->addOperand(&type1); in CreateModel_relaxed() local
35 model->setOperandValue(alpha, alpha_init, sizeof(float) * 3); in CreateModel_relaxed()
36 model->addOperation(ANEURALNETWORKS_PRELU, {input, alpha}, {output}); in CreateModel_relaxed()
57 auto alpha = model->addOperand(&type2); in CreateModel_quant8() local
61 model->setOperandValue(alpha, alpha_init, sizeof(uint8_t) * 3); in CreateModel_quant8()
62 model->addOperation(ANEURALNETWORKS_PRELU, {input, alpha}, {output}); in CreateModel_quant8()
81 auto alpha = model->addOperand(&type2); in CreateModel_quant8_2() local
[all …]
Dlocal_response_norm_float_1.model.cpp11 auto alpha = model->addOperand(&type2); in CreateModel() local
20 model->setOperandValue(alpha, alpha_init, sizeof(float) * 1); in CreateModel()
23 …model->addOperation(ANEURALNETWORKS_LOCAL_RESPONSE_NORMALIZATION, {input, radius, bias, alpha, bet… in CreateModel()
45 auto alpha = model->addOperand(&type2); in CreateModel_dynamic_output_shape() local
54 model->setOperandValue(alpha, alpha_init, sizeof(float) * 1); in CreateModel_dynamic_output_shape()
57 …model->addOperation(ANEURALNETWORKS_LOCAL_RESPONSE_NORMALIZATION, {input, radius, bias, alpha, bet… in CreateModel_dynamic_output_shape()
Dlocal_response_norm_float_2_relaxed.model.cpp11 auto alpha = model->addOperand(&type2); in CreateModel() local
20 model->setOperandValue(alpha, alpha_init, sizeof(float) * 1); in CreateModel()
23 …model->addOperation(ANEURALNETWORKS_LOCAL_RESPONSE_NORMALIZATION, {input, radius, bias, alpha, bet… in CreateModel()
47 auto alpha = model->addOperand(&type2); in CreateModel_dynamic_output_shape() local
56 model->setOperandValue(alpha, alpha_init, sizeof(float) * 1); in CreateModel_dynamic_output_shape()
59 …model->addOperation(ANEURALNETWORKS_LOCAL_RESPONSE_NORMALIZATION, {input, radius, bias, alpha, bet… in CreateModel_dynamic_output_shape()
Dlocal_response_norm_float_4_relaxed.model.cpp11 auto alpha = model->addOperand(&type2); in CreateModel() local
20 model->setOperandValue(alpha, alpha_init, sizeof(float) * 1); in CreateModel()
23 …model->addOperation(ANEURALNETWORKS_LOCAL_RESPONSE_NORMALIZATION, {input, radius, bias, alpha, bet… in CreateModel()
47 auto alpha = model->addOperand(&type2); in CreateModel_dynamic_output_shape() local
56 model->setOperandValue(alpha, alpha_init, sizeof(float) * 1); in CreateModel_dynamic_output_shape()
59 …model->addOperation(ANEURALNETWORKS_LOCAL_RESPONSE_NORMALIZATION, {input, radius, bias, alpha, bet… in CreateModel_dynamic_output_shape()
Dlocal_response_norm_float_2.model.cpp11 auto alpha = model->addOperand(&type2); in CreateModel() local
20 model->setOperandValue(alpha, alpha_init, sizeof(float) * 1); in CreateModel()
23 …model->addOperation(ANEURALNETWORKS_LOCAL_RESPONSE_NORMALIZATION, {input, radius, bias, alpha, bet… in CreateModel()
45 auto alpha = model->addOperand(&type2); in CreateModel_dynamic_output_shape() local
54 model->setOperandValue(alpha, alpha_init, sizeof(float) * 1); in CreateModel_dynamic_output_shape()
57 …model->addOperation(ANEURALNETWORKS_LOCAL_RESPONSE_NORMALIZATION, {input, radius, bias, alpha, bet… in CreateModel_dynamic_output_shape()
Dlocal_response_norm_float_3_relaxed.model.cpp11 auto alpha = model->addOperand(&type2); in CreateModel() local
20 model->setOperandValue(alpha, alpha_init, sizeof(float) * 1); in CreateModel()
23 …model->addOperation(ANEURALNETWORKS_LOCAL_RESPONSE_NORMALIZATION, {input, radius, bias, alpha, bet… in CreateModel()
47 auto alpha = model->addOperand(&type2); in CreateModel_dynamic_output_shape() local
56 model->setOperandValue(alpha, alpha_init, sizeof(float) * 1); in CreateModel_dynamic_output_shape()
59 …model->addOperation(ANEURALNETWORKS_LOCAL_RESPONSE_NORMALIZATION, {input, radius, bias, alpha, bet… in CreateModel_dynamic_output_shape()
Dlocal_response_norm_float_1_relaxed.model.cpp11 auto alpha = model->addOperand(&type2); in CreateModel() local
20 model->setOperandValue(alpha, alpha_init, sizeof(float) * 1); in CreateModel()
23 …model->addOperation(ANEURALNETWORKS_LOCAL_RESPONSE_NORMALIZATION, {input, radius, bias, alpha, bet… in CreateModel()
47 auto alpha = model->addOperand(&type2); in CreateModel_dynamic_output_shape() local
56 model->setOperandValue(alpha, alpha_init, sizeof(float) * 1); in CreateModel_dynamic_output_shape()
59 …model->addOperation(ANEURALNETWORKS_LOCAL_RESPONSE_NORMALIZATION, {input, radius, bias, alpha, bet… in CreateModel_dynamic_output_shape()
Dlocal_response_norm_float_3.model.cpp11 auto alpha = model->addOperand(&type2); in CreateModel() local
20 model->setOperandValue(alpha, alpha_init, sizeof(float) * 1); in CreateModel()
23 …model->addOperation(ANEURALNETWORKS_LOCAL_RESPONSE_NORMALIZATION, {input, radius, bias, alpha, bet… in CreateModel()
45 auto alpha = model->addOperand(&type2); in CreateModel_dynamic_output_shape() local
54 model->setOperandValue(alpha, alpha_init, sizeof(float) * 1); in CreateModel_dynamic_output_shape()
57 …model->addOperation(ANEURALNETWORKS_LOCAL_RESPONSE_NORMALIZATION, {input, radius, bias, alpha, bet… in CreateModel_dynamic_output_shape()
/frameworks/layoutlib/bridge/src/android/graphics/
DBlendComposite.java58 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/rs/cpu_ref/
DrsCpuBLASDispatch.h26 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 …]
DrsCpuIntrinsicBLAS.cpp144 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/base/libs/hwui/
DLayer.h43 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/base/services/tests/wmtests/src/com/android/server/wm/
DDimmerTests.java127 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/rs/java/android/renderscript/
DScriptIntrinsicBLAS.java320 …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/
DScriptIntrinsicBLAS.cpp72 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 …]
DrsCppStructs.h1850 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/packages/SystemUI/src/com/android/systemui/statusbar/
DCrossFadeHelper.java39 .alpha(0f) in fadeOut()
82 float alpha = Interpolators.ALPHA_OUT.getInterpolation(1.0f - fadeOutAmount); in fadeOut() local
83 view.setAlpha(alpha); in fadeOut()
84 updateLayerType(view, alpha); in fadeOut()
94 private static void updateLayerType(View view, float alpha) { in updateLayerType() argument
95 if (view.hasOverlappingRendering() && alpha > 0.0f && alpha < 1.0f) { in updateLayerType()
119 .alpha(1f) in fadeIn()
152 float alpha = Interpolators.ALPHA_IN.getInterpolation(fadeInAmount); in fadeIn() local
153 view.setAlpha(alpha); in fadeIn()
154 updateLayerType(view, alpha); in fadeIn()
/frameworks/rs/support/java/src/androidx/renderscript/
DScriptIntrinsicBLAS.java327 …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/ml/nn/common/operations/
DNormalization.cpp30 int32_t radius, float bias, float alpha, float beta, in localResponseNormFloat32Impl() argument
51 float multiplier = std::pow(bias + alpha * sum, -beta); in localResponseNormFloat32Impl()
60 float bias, float alpha, float beta, int32_t axis, in localResponseNormFloat16() argument
67 localResponseNormFloat32(inputDataFloat32.data(), inputShape, radius, bias, alpha, beta, axis, in localResponseNormFloat16()
75 float bias, float alpha, float beta, int32_t axis, float* outputData, in localResponseNormFloat32() argument
83 .range = radius, .bias = bias, .alpha = alpha, .beta = beta}; in localResponseNormFloat32()
89 return localResponseNormFloat32Impl(inputData, inputShape, radius, bias, alpha, beta, axis, in localResponseNormFloat32()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DScrimController.java420 float alpha = getCurrentScrimAlpha(scrim); in setOrAdaptCurrentAnimation() local
423 float relativeDiff = alpha - previousEndValue; in setOrAdaptCurrentAnimation()
426 scrim.setTag(TAG_END_ALPHA, alpha); in setOrAdaptCurrentAnimation()
479 public void setAodFrontScrimAlpha(float alpha) { in setAodFrontScrimAlpha() argument
481 && mCurrentInFrontAlpha != alpha) { in setAodFrontScrimAlpha()
482 mCurrentInFrontAlpha = alpha; in setAodFrontScrimAlpha()
486 mState.AOD.setAodFrontScrimAlpha(alpha); in setAodFrontScrimAlpha()
551 private void dispatchScrimState(float alpha) { in dispatchScrimState() argument
552 mScrimStateListener.accept(mState, alpha, mScrimInFront.getColors()); in dispatchScrimState()
583 private void setScrimBehindAlpha(float alpha) { in setScrimBehindAlpha() argument
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/
DBubbleDismissView.java105 mDismissTargetAlphaSpring.addEndListener((anim, canceled, alpha, velocity) -> { in BubbleDismissView() argument
109 if (alpha < 0.5f) { in BubbleDismissView()
130 mDismissGradient.animate().alpha(1f); in springIn()
151 mDismissGradient.animate().alpha(0f).withEndAction( in springOut()
155 mDismissCircle.animate().alpha(0f).scaleX(1.2f).scaleY(1.2f); in springOut()
178 .alpha(encircle ? 0f : 1f) in animateEncircleCenterWithX()
188 .alpha(encircle ? 0f : 1f); in animateEncircleCenterWithX()
199 .alpha(encircle ? 1f : 0f) in animateEncircleCenterWithX()
211 .alpha(0f); in animateEncirclingCircleDisappearance()
215 .alpha(0f); in animateEncirclingCircleDisappearance()
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
DTileDrawable.java97 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()
DCircularBitmapDrawable.java106 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/
DTaskViewTransform.java56 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/
DRoundScrollbarRenderer.java64 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()

12345678910>>...18