private static void createStandardDeviationTestCases(TestSuite testSuite) {
    Object testDefinitionMatrix[][] = {
      // { SensorType, SamplingRateInUs, ReportLatencyInUs, ExpectedStandardDeviation },
      {Sensor.TYPE_ACCELEROMETER, SensorManager.SENSOR_DELAY_FASTEST, 0, 1f /* m/s^2 */},
      {Sensor.TYPE_GYROSCOPE, SensorManager.SENSOR_DELAY_FASTEST, 0, 0.5f /* dps */},
    };

    for (Object definition[] : testDefinitionMatrix) {
      SensorMeasurementTests test = new SensorMeasurementTests();
      test.mSensorType = (Integer) definition[0];
      test.mSamplingRateInUs = (Integer) definition[1];
      test.mReportLatencyInUs = (Integer) definition[2];
      test.mExpectedStandardDeviation = (Float) definition[3];
      test.setName("testStandardDeviation");
      testSuite.addTest(test);
    }
  }
  private static void createEventNormTestCases(TestSuite testSuite) {
    Object testDefinitionMatrix[][] = {
      // { SensorType, SamplingRateInUs, ReferenceValue, Threshold },
      {
        Sensor.TYPE_ACCELEROMETER,
        SensorManager.SENSOR_DELAY_FASTEST,
        SensorManager.STANDARD_GRAVITY,
        1.5f /* m / s^2 */
      },
      {Sensor.TYPE_GYROSCOPE, SensorManager.SENSOR_DELAY_FASTEST, 0.0f, 2.5f /* dps */},
    };

    for (Object definition[] : testDefinitionMatrix) {
      SensorMeasurementTests test = new SensorMeasurementTests();
      test.mSensorType = (Integer) definition[0];
      test.mSamplingRateInUs = (Integer) definition[1];
      test.mReferenceValue = (Float) definition[2];
      test.mThreshold = (Float) definition[3];
      test.setName("testEventNorm");
      testSuite.addTest(test);
    }
  }