Searched refs:mSensorInfo (Results 1 – 7 of 7) sorted by relevance
59 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 …]
77 SensorInfo mSensorInfo; variable
51 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 …]
46 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 …]
70 SensorInfo mSensorInfo; variable
34 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 …]
67 SensorInfo mSensorInfo; variable