Home
last modified time | relevance | path

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

/cts/tests/sensor/src/android/hardware/cts/helpers/
DMovementDetectorHelper.java84 float[] linearAcceleration = {0.0f, 0.0f, 0.0f}; in onSensorChanged() local
98 linearAcceleration[0] = event.values[0] - mGravity[0]; in onSensorChanged()
99 linearAcceleration[1] = event.values[1] - mGravity[1]; in onSensorChanged()
100 linearAcceleration[2] = event.values[2] - mGravity[2]; in onSensorChanged()
102 float totalAcceleration = Math.abs(linearAcceleration[0]) in onSensorChanged()
103 + Math.abs(linearAcceleration[1]) in onSensorChanged()
104 + Math.abs(linearAcceleration[2]); in onSensorChanged()