Home
last modified time | relevance | path

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

/hardware/interfaces/sensors/common/default/2.X/
DSensor.cpp59 return mSensorInfo; in getSensorInfo()
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()
87 if (!mIsEnabled || (mSensorInfo.flags & static_cast<uint32_t>(SensorFlagBits::ONE_SHOT_MODE))) { in flush()
94 ev.sensorHandle = mSensorInfo.sensorHandle; in flush()
134 return mSensorInfo.flags & static_cast<uint32_t>(SensorFlagBits::WAKE_UP); in isWakeUpSensor()
140 event.sensorHandle = mSensorInfo.sensorHandle; in readEvents()
141 event.sensorType = mSensorInfo.type; in readEvents()
[all …]
DSensor.h77 SensorInfo mSensorInfo; variable
/hardware/interfaces/sensors/aidl/default/
DSensor.cpp51 return mSensorInfo; in getSensorInfo()
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()
80 (mSensorInfo.flags & static_cast<uint32_t>(SensorInfo::SENSOR_FLAG_BITS_ONE_SHOT_MODE))) { in flush()
88 ev.sensorHandle = mSensorInfo.sensorHandle; in flush()
131 return mSensorInfo.flags & static_cast<uint32_t>(SensorInfo::SENSOR_FLAG_BITS_WAKE_UP); in isWakeUpSensor()
137 event.sensorHandle = mSensorInfo.sensorHandle; in readEvents()
138 event.sensorType = mSensorInfo.type; in readEvents()
[all …]
/hardware/interfaces/sensors/common/default/2.X/multihal/tests/fake_subhal/
DSensor.cpp46 mSensorInfo.sensorHandle = sensorHandle; in Sensor()
47 mSensorInfo.vendor = "Vendor String"; in Sensor()
48 mSensorInfo.version = 1; in Sensor()
50 mSensorInfo.maxDelay = kDefaultMaxDelayUs; in Sensor()
51 mSensorInfo.fifoReservedEventCount = 0; in Sensor()
52 mSensorInfo.fifoMaxEventCount = 0; in Sensor()
53 mSensorInfo.requiredPermission = ""; in Sensor()
54 mSensorInfo.flags = 0; in Sensor()
71 return mSensorInfo; in getSensorInfo()
76 static_cast<int64_t>(mSensorInfo.minDelay) * 1000, in batch()
[all …]
DSensor.h70 SensorInfo mSensorInfo; variable
/hardware/interfaces/sensors/2.1/default/
DSensorsV2_1.cpp34 mSensorInfo.sensorHandle = sensorHandle; in HingeAngleSensor()
35 mSensorInfo.name = "Hinge Angle Sensor"; in HingeAngleSensor()
36 mSensorInfo.vendor = "Vendor String"; in HingeAngleSensor()
37 mSensorInfo.version = 1; in HingeAngleSensor()
38 mSensorInfo.type = SensorType::HINGE_ANGLE; in HingeAngleSensor()
39 mSensorInfo.typeAsString = ""; in HingeAngleSensor()
40 mSensorInfo.maxRange = 360.0f; in HingeAngleSensor()
41 mSensorInfo.resolution = 1.0f; in HingeAngleSensor()
42 mSensorInfo.power = 0.001f; in HingeAngleSensor()
43 mSensorInfo.minDelay = 40 * 1000; // microseconds in HingeAngleSensor()
[all …]
/hardware/interfaces/sensors/aidl/default/include/sensors-impl/
DSensor.h67 SensorInfo mSensorInfo; variable