Home
last modified time | relevance | path

Searched refs:magnitude (Results 1 – 9 of 9) sorted by relevance

/cts/tests/openglperf2/jni/graphics/
DVector2D.cpp53 float m = magnitude(); in normalize()
60 if (magnitude() > max) { in limit()
66 float Vector2D::magnitude() { in magnitude() function in Vector2D
DVector2D.h28 float magnitude();
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/
DMagnitudeVerificationTest.java52 …e void runStats(float expected, float threshold, float[][] values, boolean pass, float magnitude) { in runStats() argument
66 assertEquals(magnitude, (Float) stats.getValue(SensorStats.MAGNITUDE_KEY), 0.01); in runStats()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioFrequencyVoiceRecognitionActivity.java189 double[] magnitude = new double[BLOCK_SIZE_SAMPLES / 2]; in onCreate()
191 magnitude[i] = Math.sqrt(mC.mReal[i] * mC.mReal[i] + in onCreate()
197 mFreqAverageTone.setData(magnitude, false); in onCreate()
205 mFreqAverageNoise.setData(magnitude, false); in onCreate()
208 mFreqAverageUsbBackground.setData(magnitude, false); in onCreate()
211 mFreqAverageUsbNoise.setData(magnitude, false); in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/Path/
DComplexMovementPath.java231 float magnitude = (float) Math.sqrt(Math.pow(rotation[X], 2) + in calculateRectangleHitbox() local
233 float lengthScaleFactor = 0.02f / magnitude; in calculateRectangleHitbox()
234 float widthScaleFactor = 0.17f / magnitude; in calculateRectangleHitbox()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DStepSensorPermissionTestActivity.java248 float magnitude = sensorEvent.values[0] * sensorEvent.values[0] + in onSensorChanged() local
251 mMagnitudes.add((float)Math.sqrt(magnitude)); in onSensorChanged()
/cts/tests/openglperf2/jni/reference/scene/flocking/
DBoid.cpp72 float d = desired.magnitude(); in flock()
/cts/tests/sensor/src/android/hardware/cts/helpers/
DSensorCtsHelper.java167 double magnitude = Math.sqrt(sumOfSquares); in getMagnitude() local
168 return magnitude; in getMagnitude()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DCoreMathVerifier.java417 static private Target.Floaty copysign(double magnitude, double sign, Target t) { in copysign() argument
418 return t.newFloaty(Math.copySign(magnitude, sign)); in copysign()