Searched refs:samplingPeriod (Results 1 – 2 of 2) sorted by relevance
244 void testStreamingOperation(SensorTypeVersion type, std::chrono::nanoseconds samplingPeriod, in testStreamingOperation() argument250 const int64_t samplingPeriodInNs = samplingPeriod.count(); in testStreamingOperation()253 const size_t minNEvent = duration / samplingPeriod; in testStreamingOperation()262 if (std::chrono::microseconds(sensor.minDelay) > samplingPeriod) { in testStreamingOperation()
961 int HidRawSensor::batch(int64_t samplingPeriod, int64_t batchingPeriod) { in batch() argument967 if (samplingPeriod < 0 || batchingPeriod < 0) { in batch()971 bool needRefresh = mSamplingPeriod != samplingPeriod || mBatchingPeriod != batchingPeriod; in batch()981 int64_t periodMs = samplingPeriod / 1000000; //ns -> ms in batch()993 mSamplingPeriod = samplingPeriod; in batch()