Searched refs:samplingPeriod (Results 1 – 2 of 2) sorted by relevance
201 void testStreamingOperation(SensorTypeVersion type, std::chrono::nanoseconds samplingPeriod, in testStreamingOperation() argument207 const int64_t samplingPeriodInNs = samplingPeriod.count(); in testStreamingOperation()210 const size_t minNEvent = duration / samplingPeriod; in testStreamingOperation()219 if (std::chrono::microseconds(sensor.minDelay) > samplingPeriod) { in testStreamingOperation()
1106 int HidRawSensor::batch(int64_t samplingPeriod, int64_t batchingPeriod) { in batch() argument1112 if (samplingPeriod < 0 || batchingPeriod < 0) { in batch()1116 bool needRefresh = mSamplingPeriod != samplingPeriod || mBatchingPeriod != batchingPeriod; in batch()1127 (((static_cast<double>(samplingPeriod)) / 1000000000.0) in batch()1140 mSamplingPeriod = samplingPeriod; in batch()