/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
D | VectorUtil.java | 39 public static double norm(double[] a) { in norm() method in VectorUtil 53 double norm = norm(a); in normalize() local 54 a[0] /= norm; in normalize() 55 a[1] /= norm; in normalize() 56 a[2] /= norm; in normalize()
|
D | Quaternion.java | 49 double norm = Math.sqrt(dot(a, a)); in normal() local 50 return new double[]{a[0] / norm, a[1] / norm, a[2] / norm}; in normal()
|
D | ViewMatrix.java | 281 VectorUtil.norm(zv); in look() 282 VectorUtil.norm(rv); in look() 301 VectorUtil.norm(zv); in lookAt() 302 VectorUtil.norm(rv); in lookAt()
|
/frameworks/av/media/codecs/amrwb/enc/src/ |
D | autocorr.c | 40 Word32 i, norm, shift; in Autocorr() local 70 norm = norm_l(L_sum); in Autocorr() 71 shift = 4 - (norm >> 1); in Autocorr() 98 norm = norm_l(L_sum); in Autocorr() 99 L_sum = (L_sum << norm); in Autocorr() 119 L_sum1 = L_sum1<<norm; in Autocorr() 120 L_sum = L_sum<<norm; in Autocorr()
|
D | pitch_f4.c | 173 Word32 corr, exp_corr, norm, exp, scale; in Norm_Corr() local 235 norm = extract_h(L_tmp); in Norm_Corr() 239 L_tmp = L_mult(corr, norm); in Norm_Corr()
|
/frameworks/av/media/codecs/amrnb/enc/src/ |
D | autocorr.cpp | 311 Word16 norm; in Autocorr() local 414 norm = norm_l(sum); in Autocorr() 416 sum <<= norm; in Autocorr() 448 sum <<= (norm + 1); in Autocorr() 455 norm -= overfl_shft; in Autocorr() 457 return (norm); in Autocorr()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/display/ |
D | BrightnessUtils.java | 55 final float normalizedVal = MathUtils.norm(GAMMA_SPACE_MIN, GAMMA_SPACE_MAX, val); in convertGammaToLinear() 78 final float normalizedVal = MathUtils.norm(GAMMA_SPACE_MIN, GAMMA_SPACE_MAX, val); in convertGammaToLinearFloat() 131 final float normalizedVal = MathUtils.norm(min, max, val) * 12; in convertLinearToGammaFloat()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | NormFilter.java | 56 float norm = (float) Math.hypot(xValue, yValue); in onProcess() local 57 if (mLogVerbose) Log.v(TAG, "Norm = " + norm); in onProcess() 60 outFrame.setValue(norm); in onProcess()
|
/frameworks/av/media/libaudioprocessing/ |
D | AudioMixerOps.h | 75 static const float norm = 1. / (1 << 12); variable 76 return value * volume * norm; 81 static const float norm = 1. / (1 << 28); variable 82 return value * volume * norm; 97 static const float norm = 1. / (1 << (15 + 12)); variable 98 return static_cast<float>(value) * static_cast<float>(volume) * norm; 103 static const float norm = 1. / (1ULL << (15 + 28)); variable 104 return static_cast<float>(value) * static_cast<float>(volume) * norm; 182 static constexpr float norm = 1. / (1 << 15); variable 183 *auxaccum += norm * value; [all …]
|
D | AudioResamplerFirGen.h | 551 const double norm = 1. / (int64_t{L} << integralShift); 553 firMin = fmin * norm; 554 firMax = fmax * norm;
|
/frameworks/native/libs/math/include/math/ |
D | TQuatHelpers.h | 175 constexpr T PURE norm(const QUATERNION<T>& q) { in norm() function 181 return norm(q); in length() 226 const T nq(norm(q.xyz)); in exp() 232 const T nq(norm(q)); in log() 233 return QUATERNION<T>((std::acos(q.w/nq)/norm(q.xyz))*q.xyz, log(nq)); in log() 239 const T nq(norm(q)); in pow()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | Vector3Test.java | 70 assertTrue(nearlyEqual(unitXAxis.norm(), 1.0f)); in testVector3Norm() 71 assertTrue(nearlyEqual(unitYAxis.norm(), 1.0f)); in testVector3Norm() 72 assertTrue(nearlyEqual(unitZAxis.norm(), 1.0f)); in testVector3Norm() 73 assertTrue(nearlyEqual(x1y1.norm(), (float)Math.sqrt(2))); in testVector3Norm()
|
/frameworks/rs/support/java/src/androidx/renderscript/ |
D | Element.java | 739 Element(long id, RenderScript rs, DataType dt, DataKind dk, boolean norm, int size) { in Element() argument 754 mNormalized = norm; in Element() 779 boolean norm = false; in createUser() 781 long id = rs.nElementCreate(dt.mID, dk.mID, norm, vecSize); in createUser() 782 return new Element(id, rs, dt, dk, norm, vecSize); in createUser() 817 boolean norm = false; in createVector() 818 long id = rs.nElementCreate(dt.mID, dk.mID, norm, size); in createVector() 819 return new Element(id, rs, dt, dk, norm, size); in createVector() 885 boolean norm = true; in createPixel() 886 long id = rs.nElementCreate(dt.mID, dk.mID, norm, size); in createPixel() [all …]
|
D | RenderScript.java | 358 native long rsnElementCreate(long con, long type, int kind, boolean norm, int vecSize); in rsnElementCreate() argument 359 synchronized long nElementCreate(long type, int kind, boolean norm, int vecSize) { in nElementCreate() argument 361 return rsnElementCreate(mContext, type, kind, norm, vecSize); in nElementCreate() 1034 native long rsnIncElementCreate(long con, long type, int kind, boolean norm, int vecSize); in rsnIncElementCreate() argument 1035 synchronized long nIncElementCreate(long type, int kind, boolean norm, int vecSize) { in nIncElementCreate() argument 1037 return rsnIncElementCreate(mIncCon, type, kind, norm, vecSize); in nIncElementCreate()
|
/frameworks/av/media/libeffects/hapticgenerator/ |
D | Processors.cpp | 224 const float norm = (1.0f + poleCoeff1 + poleCoeff2) / (1.0f + zeroCoeff1 + zeroCoeff2); in bsfCoefs() local 225 coefficient[0] = 1.0f * norm; in bsfCoefs() 226 coefficient[1] = zeroCoeff1 * norm; in bsfCoefs() 227 coefficient[2] = zeroCoeff2 * norm; in bsfCoefs()
|
/frameworks/base/rs/java/android/renderscript/ |
D | Element.java | 1083 Element(long id, RenderScript rs, DataType dt, DataKind dk, boolean norm, int size) { in Element() argument 1098 mNormalized = norm; in Element() 1159 boolean norm = false; in createUser() 1161 long id = rs.nElementCreate(dt.mID, dk.mID, norm, vecSize); in createUser() 1162 return new Element(id, rs, dt, dk, norm, vecSize); in createUser() 1198 boolean norm = false; in createVector() 1199 long id = rs.nElementCreate(dt.mID, dk.mID, norm, size); in createVector() 1200 return new Element(id, rs, dt, dk, norm, size); in createVector() 1269 boolean norm = true; in createPixel() 1270 long id = rs.nElementCreate(dt.mID, dk.mID, norm, size); in createPixel() [all …]
|
/frameworks/rs/ |
D | rsComponent.cpp | 29 void Component::set(RsDataType dt, RsDataKind dk, bool norm, uint32_t vecSize) { in set() argument 32 mNormalized = norm; in set()
|
D | rsComponent.h | 34 void set(RsDataType dt, RsDataKind dk, bool norm, uint32_t vecSize=1);
|
D | rsScriptC_Lib.cpp | 335 bool norm, uint32_t vecSize) { in rsrElementCreate() argument 336 return rsi_ElementCreate(rsc, dt, dk, norm, vecSize); in rsrElementCreate()
|
D | rsElement.cpp | 415 bool norm, in rsi_ElementCreate() argument 417 return (RsElement)Element::create(rsc, dt, dk, norm, vecSize); in rsi_ElementCreate()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/ |
D | AnyMotionDetector.java | 382 public float norm() { in norm() method in AnyMotionDetector.Vector3 387 float mag = norm(); in normalized() 401 Math.atan2(crossVector.norm(), dotProduct(other)))); in angleBetween()
|
/frameworks/av/media/codecs/amrwb/enc/src/asm/ARMV5E/ |
D | Norm_Corr_opt.s | 168 MOV r6, r6, ASR #16 @norm = extract_h(L_tmp) 170 ADD r12, r12, r12 @L_tmp = vo_L_mult(corr, norm)
|
/frameworks/av/media/codecs/amrwb/enc/src/asm/ARMV7/ |
D | Norm_Corr_neon.s | 208 MOV r6, r6, ASR #16 @norm = extract_h(L_tmp) 210 ADD r12, r12, r12 @L_tmp = vo_L_mult(corr, norm)
|
/frameworks/native/libs/input/ |
D | VelocityTracker.cpp | 455 float norm = vectorNorm(&q[j][0], m); in solveLeastSquares() local 456 if (norm < 0.000001f) { in solveLeastSquares() 459 ALOGD(" - no solution, norm=%f", norm); in solveLeastSquares() 464 float invNorm = 1.0f / norm; in solveLeastSquares()
|
/frameworks/base/core/java/android/util/ |
D | MathUtils.java | 209 public static float norm(float start, float stop, float value) { in norm() method in MathUtils
|