Lines Matching defs:values

221      * Offset to the untransformed values in the array returned by
326 * The values returned by this sensor cannot be trusted because the sensor
333 * The values returned by this sensor cannot be trusted, calibration is
952 * {@link android.hardware.SensorEvent#values values} returned by a
962 * {@link android.hardware.SensorEvent#values values} returned by a
1003 // magnetic north pole. Typical values are > 100.
1230 * When it returns, the array values is filled with the result:
1232 * <li>values[0]: <i>azimuth</i>, rotation around the -Z axis,
1234 * <li>values[1]: <i>pitch</i>, rotation around the -X axis,
1236 * <li>values[2]: <i>roll</i>, rotation around the Y axis.</li>
1248 * @param values
1251 * @return The array values passed as argument.
1256 public static float[] getOrientation(float[] R, float values[]) {
1271 values[0] = (float)Math.atan2(R[1], R[4]);
1272 values[1] = (float)Math.asin(-R[7]);
1273 values[2] = (float)Math.atan2(-R[6], R[8]);
1275 values[0] = (float)Math.atan2(R[1], R[5]);
1276 values[1] = (float)Math.asin(-R[9]);
1277 values[2] = (float)Math.atan2(-R[8], R[10]);
1280 return values;
1607 * @param values Sensor values to inject. The length of this
1609 * values reported by the sensor type.
1616 * data injection is not supported by the sensor, values
1617 * are null, incorrect number of values for the sensor,
1623 public boolean injectSensorData(Sensor sensor, float[] values, int accuracy,
1631 if (values == null) {
1635 if (values.length != expectedNumValues) {
1636 throw new IllegalArgumentException ("Wrong number of values for sensor " +
1637 sensor.getName() + " actual=" + values.length + " expected=" +
1646 return injectSensorDataImpl(sensor, values, accuracy, timestamp);
1652 protected abstract boolean injectSensorDataImpl(Sensor sensor, float[] values, int accuracy,