Home
last modified time | relevance | path

Searched refs:mSensorInfo (Results 1 – 4 of 4) sorted by relevance

/hardware/interfaces/sensors/2.0/default/
DSensor.cpp54 return mSensorInfo; in getSensorInfo()
58 if (samplingPeriodNs < mSensorInfo.minDelay * 1000) { in batch()
59 samplingPeriodNs = mSensorInfo.minDelay * 1000; in batch()
60 } else if (samplingPeriodNs > mSensorInfo.maxDelay * 1000) { in batch()
61 samplingPeriodNs = mSensorInfo.maxDelay * 1000; in batch()
82 if (!mIsEnabled || (mSensorInfo.flags & static_cast<uint32_t>(SensorFlagBits::ONE_SHOT_MODE))) { in flush()
89 ev.sensorHandle = mSensorInfo.sensorHandle; in flush()
129 return mSensorInfo.flags & static_cast<uint32_t>(SensorFlagBits::WAKE_UP); in isWakeUpSensor()
135 event.sensorHandle = mSensorInfo.sensorHandle; in readEvents()
136 event.sensorType = mSensorInfo.type; in readEvents()
[all …]
DSensor.h70 SensorInfo mSensorInfo; variable
/hardware/interfaces/sensors/2.0/multihal/tests/fake_subhal/
DSensor.cpp41 mSensorInfo.sensorHandle = sensorHandle; in Sensor()
42 mSensorInfo.vendor = "Vendor String"; in Sensor()
43 mSensorInfo.version = 1; in Sensor()
45 mSensorInfo.maxDelay = kDefaultMaxDelayUs; in Sensor()
46 mSensorInfo.fifoReservedEventCount = 0; in Sensor()
47 mSensorInfo.fifoMaxEventCount = 0; in Sensor()
48 mSensorInfo.requiredPermission = ""; in Sensor()
49 mSensorInfo.flags = 0; in Sensor()
66 return mSensorInfo; in getSensorInfo()
71 std::clamp(samplingPeriodNs, mSensorInfo.minDelay * 1000, mSensorInfo.maxDelay * 1000); in batch()
[all …]
DSensor.h70 SensorInfo mSensorInfo; variable