/frameworks/base/services/core/java/com/android/server/policy/ |
H A D | WindowOrientationListener.java | 511 + ", magnitude=" + Math.sqrt(x * x + y * y + z * z)); 538 + ", magnitude=" + Math.sqrt(x * x + y * y + z * z)); 552 final float magnitude = (float) Math.sqrt(x * x + y * y + z * z);
|
/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/native/ |
H A D | sparse_weight_vector.cpp | 85 w_[iter->first] += ((multiplier * sqrt(w1.normalizer_)) / 86 (sqrt(iter->second)) 235 return sqrt(result)/normalizer_;
|
/frameworks/base/core/java/android/transition/ |
H A D | ArcMotion.java | 259 float ratio = (float) Math.sqrt(ratio2);
|
/frameworks/base/libs/hwui/utils/ |
H A D | Blur.cpp | 28 // "high quality" mode, in SkBlurMask::Blur() (1 / sqrt(3)). 68 // g(x) = ( 1 / sqrt( 2 * pi ) * sigma) * e ^ ( -x^2 / 2 * sigma^2 ) 77 float coeff1 = 1.0f / (sqrt(2.0f * pi) * sigma);
|
/frameworks/base/media/mca/filterpacks/native/base/ |
H A D | geometry.cpp | 26 return std::sqrt(x_ * x_ + y_ * y_);
|
H A D | vec_types.h | 44 return static_cast<T>(sqrt(sum));
|
/frameworks/base/tests/Assist/src/com/android/test/assist/ |
H A D | AssistInteractionSession.java | 133 int radius = (int) Math.sqrt(centerX*centerX + centerY*centerY) + 1;
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
H A D | CSVWriterFilter.java | 100 float vectorAccel = (float) Math.sqrt(Math.pow(motionValues[0], 2) +
|
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/ |
H A D | LocationCluster.java | 127 norm = Math.sqrt(norm);
|
/frameworks/rs/scriptc/ |
H A D | rs_quaternion.rsh | 178 const float recipLen = 1.f / sqrt(len); 198 const float recipLen = 1.f / sqrt(len);
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | RippleForeground.java | 171 (1000 * Math.sqrt(mTargetRadius / WAVE_TOUCH_DOWN_ACCELERATION * mDensity) + 0.5); 206 return (int) (1000 * Math.sqrt(remainingRadius / (WAVE_TOUCH_UP_ACCELERATION
|
/frameworks/av/media/libstagefright/codecs/avc/enc/src/ |
H A D | rate_control.cpp | 478 //rateCtrl->Qc = (Int)(prev_QP * sqrt(prev_actual_bits/curr_target) + 0.4); 488 Qstep = (int)(prev_QP * (sqrt(prev_RD / curr_RD) + prev_RD / curr_RD) / 2.0 + 0.9); /* Quadratic and linear approximation */ 490 Qstep = (int)(prev_QP * (sqrt(prev_RD / curr_RD) + pow(prev_RD / curr_RD, 1.0 / 3.0)) / 2.0 + 0.9); 562 diff_counter_BTdst = (int)(sqrt(curr_mad / (pMP->aver_mad + 0.0001)) * 10 + 0.4) - 10; 563 //diff_counter_BTdst = (int)((sqrt(curr_mad/pMP->aver_mad)*2+curr_mad/pMP->aver_mad)/(3*0.1) + 0.4) - 10; 568 //diff_counter_BTsrc = 10 - (int)((sqrt(curr_mad/pMP->aver_mad) + pow(curr_mad/pMP->aver_mad, 1.0/3.0))/(2.0*0.1) + 0.4); 569 diff_counter_BTsrc = 10 - (int)(sqrt(curr_mad / (pMP->aver_mad + 0.0001)) * 10 + 0.5); 583 diff_counter_BTdst = (int)(sqrt(curr_mad / (pMP->aver_mad_prev + 0.0001)) * 10 + 0.4) - 10; 589 //diff_counter_BTsrc = 10 - (Int)((sqrt(curr_mad/pMP->aver_mad_prev) + pow(curr_mad/pMP->aver_mad_prev, 1.0/3.0))/(2.0*0.1) + 0.4); 590 diff_counter_BTsrc = 10 - (int)(sqrt(curr_ma [all...] |
/frameworks/base/core/java/android/util/ |
H A D | PathParser.java | 581 float adjust = (float) (Math.sqrt(dsq) / 1.99999); 586 double s = Math.sqrt(disc); 670 Math.sin(eta2 - eta1) * (Math.sqrt(4 + (3 * tanDiff2 * tanDiff2)) - 1) / 3;
|
/frameworks/support/graphics/drawable/static/src/android/support/graphics/drawable/ |
H A D | PathParser.java | 609 float adjust = (float) (Math.sqrt(dsq) / 1.99999); 614 double s = Math.sqrt(disc); 698 Math.sin(eta2 - eta1) * (Math.sqrt(4 + (3 * tanDiff2 * tanDiff2)) - 1) / 3;
|
/frameworks/av/services/audioflinger/ |
H A D | AudioResamplerFirGen.h | 206 struct I0ATerm<0> { // 1/sqrt(2*PI); 322 * which requires sqrt and exp. 350 return exp(x) * sqrt(y) * num / den; 360 return exp(x) * sqrt(y) * 372 * the sqrt and numerator multiply and denominator divide into the computation. 692 // y = I0(beta * sqrt(1.0 - sqr(x * xfrac))) * yscale * sg.valueAdvance() / x;
|
/frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/engine/ |
H A D | ViewMatrix.java | 358 scale = Math.sqrt(scale);
363 double dz = Math.sqrt(Math.abs(1 - (dx * dx + dy * dy)));
|
H A D | Quaternion.java | 49 double norm = Math.sqrt(dot(a, a));
|
/frameworks/rs/driver/runtime/ |
H A D | rs_cl.c | 586 extern float __attribute__((overloadable)) sqrt(float); 588 return 1.f / sqrt(v); 595 FN_FUNC_FN(sqrt) 597 extern float2 __attribute__((overloadable)) sqrt(float2); 598 extern float3 __attribute__((overloadable)) sqrt(float3); 599 extern float4 __attribute__((overloadable)) sqrt(float4); 954 return sqrt(v.x*v.x + v.y*v.y); 957 return sqrt(v.x*v.x + v.y*v.y + v.z*v.z); 960 return sqrt(v.x*v.x + v.y*v.y + v.z*v.z + v.w*v.w); 1011 return sqrt( [all...] |
/frameworks/rs/api/ |
H A D | rs_math.spec | 76 summary: 2 / sqrt(pi), as a 32 bit float 139 summary: 1 / sqrt(2), as a 32 bit float 146 summary: sqrt(2), as a 32 bit float 777 Returns the approximate value of <code>(1.f / sqrt(value))</code>. 797 See also @sqrt(), @native_sqrt(). 810 Returns the hypotenuse, i.e. <code>sqrt(a * a + b * b)</code>. 1689 Returns approximate (1 / sqrt(v)). 1763 Returns the approximate sqrt(v). 1765 See also @sqrt(), @half_sqrt(). 1990 Returns (1 / sqrt( [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | EdgeEffect.java | 224 Math.sqrt(Math.abs(mPullDistance) * mBounds.height()) - 0.3d) / 0.7d);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | FlingAnimationUtils.java | 134 * Math.sqrt(Math.abs(endValue - currValue) / maxDistance));
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/ |
H A D | BitmapUtils.java | 74 (int) Math.ceil(Math.sqrt((double) (w * h) / maxNumOfPixels));
|
/frameworks/base/rs/java/android/renderscript/ |
H A D | Matrix3f.java | 119 float len = (float)java.lang.Math.sqrt(x*x + y*y + z*z);
|
/frameworks/base/services/core/java/com/android/server/location/ |
H A D | LocationFudger.java | 81 // algebra results in the following sqrt calculation to 85 private static final double PREVIOUS_WEIGHT = Math.sqrt(1 - NEW_WEIGHT * NEW_WEIGHT);
|
/frameworks/base/tools/split-select/ |
H A D | RuleGenerator.cpp | 31 double root = sqrt((h*h) + (8*l*h));
|