/frameworks/rs/java/tests/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/ml/bordeaux/service/src/android/bordeaux/services/ |
D | BaseCluster.java | 189 double norm = 0; in normalizeCenter() local 191 norm += mCenter[i] * mCenter[i]; in normalizeCenter() 193 norm = Math.sqrt(norm); in normalizeCenter() 195 mCenter[i] /= norm; in normalizeCenter() 203 double norm = 0; in averageCenter() local 206 norm += mCenter[i] * mCenter[i]; in averageCenter() 208 norm = Math.sqrt(norm); in averageCenter() 210 mCenter[i] /= norm; in averageCenter()
|
D | LocationCluster.java | 122 double norm = 0f; in moveAwayCluster() local 125 norm += vector[i] * vector[i]; in moveAwayCluster() 127 norm = Math.sqrt(norm); in moveAwayCluster() 132 (vector[i] / norm) * Math.sin(radian); in moveAwayCluster()
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/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/libstagefright/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/av/services/audioflinger/ |
D | AudioMixerOps.h | 84 static const float norm = 1. / (1 << 12); 85 return value * volume * norm; 90 static const float norm = 1. / (1 << 28); 91 return value * volume * norm; 106 static const float norm = 1. / (1 << (15 + 12)); 107 return static_cast<float>(value) * static_cast<float>(volume) * norm; 112 static const float norm = 1. / (1ULL << (15 + 28)); 113 return static_cast<float>(value) * static_cast<float>(volume) * norm; 191 static const float norm = 1. / (1 << 15); 192 *auxaccum += norm * value; [all …]
|
D | AudioResamplerFirGen.h | 550 double norm = 1./((1ULL<<(sizeof(T)*8-1))*L); 552 firMin = fmin * norm; 553 firMax = fmax * norm;
|
/frameworks/ml/bordeaux/learning/multiclass_pa/native/ |
D | multiclass_pa.cpp | 92 float norm = 0; in L2NormSquare() local 94 norm += inputs[i] * inputs[i]; in L2NormSquare() 96 return norm; in L2NormSquare() 101 float norm = 0; in SparseL2NormSquare() local 103 norm += inputs[i].second * inputs[i].second; in SparseL2NormSquare() 105 return norm; in SparseL2NormSquare()
|
/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/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/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
D | Element.java | 734 Element(long id, RenderScript rs, DataType dt, DataKind dk, boolean norm, int size) { in Element() argument 749 mNormalized = norm; in Element() 774 boolean norm = false; in createUser() 776 long id = rs.nElementCreate(dt.mID, dk.mID, norm, vecSize); in createUser() 777 return new Element(id, rs, dt, dk, norm, vecSize); in createUser() 812 boolean norm = false; in createVector() 813 long id = rs.nElementCreate(dt.mID, dk.mID, norm, size); in createVector() 814 return new Element(id, rs, dt, dk, norm, size); in createVector() 880 boolean norm = true; in createPixel() 881 long id = rs.nElementCreate(dt.mID, dk.mID, norm, size); in createPixel() [all …]
|
/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/native/ |
D | sparse_weight_vector.h | 72 void SetNormalizer(const double norm) { in SetNormalizer() argument 73 normalizer_ = norm; in SetNormalizer() 159 int32 Reproject(const double norm, const RegularizationType r);
|
D | sparse_weight_vector.cpp | 361 int32 SparseWeightVector<Key, Hash>::Reproject(const double norm, in Reproject() argument 363 CHECK_GT(norm, 0); in Reproject() 365 ReprojectL0(norm); in Reproject() 367 ReprojectL1(norm); in Reproject() 369 ReprojectL2(norm); in Reproject()
|
D | stochastic_linear_ranker.h | 118 void SetNormConstraint(const double norm) { in SetNormConstraint() argument 119 norm_constraint_ = norm; in SetNormConstraint()
|
/frameworks/base/rs/java/android/renderscript/ |
D | Element.java | 1077 Element(long id, RenderScript rs, DataType dt, DataKind dk, boolean norm, int size) { in Element() argument 1092 mNormalized = norm; in Element() 1153 boolean norm = false; in createUser() 1155 long id = rs.nElementCreate(dt.mID, dk.mID, norm, vecSize); in createUser() 1156 return new Element(id, rs, dt, dk, norm, vecSize); in createUser() 1192 boolean norm = false; in createVector() 1193 long id = rs.nElementCreate(dt.mID, dk.mID, norm, size); in createVector() 1194 return new Element(id, rs, dt, dk, norm, size); in createVector() 1263 boolean norm = true; in createPixel() 1264 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 | 280 bool norm, uint32_t vecSize) { in rsrElementCreate() argument 281 return rsi_ElementCreate(rsc, dt, dk, norm, vecSize); in rsrElementCreate()
|
/frameworks/base/services/core/java/com/android/server/ |
D | AnyMotionDetector.java | 346 public float norm() { in norm() method in AnyMotionDetector.Vector3 351 float mag = norm(); in normalized() 365 Math.atan2(crossVector.norm(), dotProduct(other)))); in angleBetween()
|
/frameworks/native/libs/input/ |
D | VelocityTracker.cpp | 476 float norm = vectorNorm(&q[j][0], m); in solveLeastSquares() local 477 if (norm < 0.000001f) { in solveLeastSquares() 480 ALOGD(" - no solution, norm=%f", norm); in solveLeastSquares() 485 float invNorm = 1.0f / norm; in solveLeastSquares()
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/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/libstagefright/codecs/amrwbenc/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)
|