Home
last modified time | relevance | path

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

/hardware/interfaces/sensors/common/default/2.X/
DSensor.cpp62 void Sensor::batch(int64_t samplingPeriodNs) { in batch() argument
63 if (samplingPeriodNs < mSensorInfo.minDelay * 1000LL) { in batch()
64 samplingPeriodNs = mSensorInfo.minDelay * 1000LL; in batch()
65 } else if (samplingPeriodNs > mSensorInfo.maxDelay * 1000LL) { in batch()
66 samplingPeriodNs = mSensorInfo.maxDelay * 1000LL; in batch()
69 if (mSamplingPeriodNs != samplingPeriodNs) { in batch()
70 mSamplingPeriodNs = samplingPeriodNs; in batch()
DSensors.h156 Return<Result> batch(int32_t sensorHandle, int64_t samplingPeriodNs, in batch()
160 sensor->second->batch(samplingPeriodNs); in batch()
DSensor.h58 void batch(int64_t samplingPeriodNs);
/hardware/interfaces/sensors/aidl/default/
DSensor.cpp54 void Sensor::batch(int64_t samplingPeriodNs) { in batch() argument
55 if (samplingPeriodNs < mSensorInfo.minDelayUs * 1000LL) { in batch()
56 samplingPeriodNs = mSensorInfo.minDelayUs * 1000LL; in batch()
57 } else if (samplingPeriodNs > mSensorInfo.maxDelayUs * 1000LL) { in batch()
58 samplingPeriodNs = mSensorInfo.maxDelayUs * 1000LL; in batch()
61 if (mSamplingPeriodNs != samplingPeriodNs) { in batch()
62 mSamplingPeriodNs = samplingPeriodNs; in batch()
/hardware/interfaces/sensors/common/default/2.X/multihal/tests/fake_subhal/
DSensor.cpp74 void Sensor::batch(int64_t samplingPeriodNs) { in batch() argument
75 samplingPeriodNs = std::clamp(samplingPeriodNs, in batch()
80 if (mSamplingPeriodNs != samplingPeriodNs) { in batch()
81 mSamplingPeriodNs = samplingPeriodNs; in batch()
DSensorsSubHal.h61 Return<Result> batch(int32_t sensorHandle, int64_t samplingPeriodNs,
132 Return<Result> batch(int32_t sensorHandle, int64_t samplingPeriodNs, in batch() argument
134 return ISensorsSubHalBase::batch(sensorHandle, samplingPeriodNs, maxReportLatencyNs); in batch()
DSensorsSubHal.cpp118 Return<Result> ISensorsSubHalBase::batch(int32_t sensorHandle, int64_t samplingPeriodNs, in batch() argument
122 sensor->second->batch(samplingPeriodNs); in batch()
DSensor.h52 void batch(int64_t samplingPeriodNs);
/hardware/interfaces/sensors/common/default/2.X/multihal/include/
DSubHalWrapper.h72 virtual Return<Result> batch(int32_t sensorHandle, int64_t samplingPeriodNs,
114 Return<Result> batch(int32_t sensorHandle, int64_t samplingPeriodNs, in batch() argument
116 return mSubHal->batch(sensorHandle, samplingPeriodNs, maxReportLatencyNs); in batch()
DHalProxy.h106 Return<Result> batch(int32_t sensorHandle, int64_t samplingPeriodNs,
411 Return<Result> batch(int32_t sensorHandle, int64_t samplingPeriodNs, in batch() argument
413 return HalProxy::batch(sensorHandle, samplingPeriodNs, maxReportLatencyNs); in batch()
/hardware/interfaces/sensors/common/utils/
DISensorsWrapper.h87 virtual Return<Result> batch(int32_t sensorHandle, int64_t samplingPeriodNs,
143 Return<Result> batch(int32_t sensorHandle, int64_t samplingPeriodNs, in batch() argument
145 return mSensors->batch(sensorHandle, samplingPeriodNs, maxReportLatencyNs); in batch()
/hardware/interfaces/sensors/aidl/android/hardware/sensors/
DISensors.aidl58 void batch(in int sensorHandle, in long samplingPeriodNs, in long maxReportLatencyNs); in batch() argument
/hardware/interfaces/sensors/aidl/aidl_api/android.hardware.sensors/current/android/hardware/sensors/
DISensors.aidl38 void batch(in int sensorHandle, in long samplingPeriodNs, in long maxReportLatencyNs); in batch() argument
/hardware/interfaces/sensors/aidl/aidl_api/android.hardware.sensors/2/android/hardware/sensors/
DISensors.aidl38 void batch(in int sensorHandle, in long samplingPeriodNs, in long maxReportLatencyNs); in batch() argument
/hardware/interfaces/sensors/aidl/aidl_api/android.hardware.sensors/1/android/hardware/sensors/
DISensors.aidl38 void batch(in int sensorHandle, in long samplingPeriodNs, in long maxReportLatencyNs); in batch() argument
/hardware/interfaces/sensors/aidl/default/include/sensors-impl/
DSensor.h48 void batch(int64_t samplingPeriodNs);
/hardware/interfaces/sensors/1.0/vts/functional/
DVtsHalSensorsV1_0TargetTest.cpp59 Return<Result> batch(int32_t sensorHandle, int64_t samplingPeriodNs, in batch() argument
61 return S()->batch(sensorHandle, samplingPeriodNs, maxReportLatencyNs); in batch()
/hardware/interfaces/sensors/common/vts/2_X/
DVtsHalSensorsV2_XTargetTest.h191 Return<Result> batch(int32_t sensorHandle, int64_t samplingPeriodNs, in batch() argument
193 return getSensors()->batch(sensorHandle, samplingPeriodNs, maxReportLatencyNs); in batch()
709 int64_t samplingPeriodNs = extractReportMode(sensor.flags) == SensorFlagBits::ONE_SHOT_MODE in TEST_P() local
712 ASSERT_EQ(batch(sensor.sensorHandle, samplingPeriodNs, 0 /* maxReportLatencyNs */), in TEST_P()
/hardware/interfaces/sensors/aidl/vts/
DVtsAidlHalSensorsTargetTest.cpp361 ndk::ScopedAStatus batch(int32_t sensorHandle, int64_t samplingPeriodNs, in batch() argument
363 return getSensors()->batch(sensorHandle, samplingPeriodNs, maxReportLatencyNs); in batch()
821 int64_t samplingPeriodNs = in TEST_P() local
825 checkIsOk(batch(sensor.sensorHandle, samplingPeriodNs, 0 /* maxReportLatencyNs */)); in TEST_P()
/hardware/interfaces/sensors/1.0/
DISensors.hal91 * @param samplingPeriodNs specifies sensor sample period in nanoseconds.
97 int64_t samplingPeriodNs,
/hardware/interfaces/sensors/common/default/2.X/multihal/
DHalProxy.cpp277 Return<Result> HalProxy::batch(int32_t sensorHandle, int64_t samplingPeriodNs, in batch() argument
283 ->batch(clearSubHalIndex(sensorHandle), samplingPeriodNs, maxReportLatencyNs); in batch()
/hardware/interfaces/sensors/2.0/
DISensors.hal167 * @param samplingPeriodNs specifies sensor sample period in nanoseconds.
173 int64_t samplingPeriodNs,
/hardware/interfaces/sensors/common/vts/utils/include/sensors-vts-utils/
DSensorsHidlTestBase.h191 virtual Return<Result> batch(int32_t sensorHandle, int64_t samplingPeriodNs,