Lines Matching refs:mSensorInfo
54 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()
155 return mSensorInfo.flags & static_cast<uint32_t>(SensorFlagBits::DATA_INJECTION); in supportsDataInjection()
199 mSensorInfo.sensorHandle = sensorHandle; in AccelSensor()
200 mSensorInfo.name = "Accel Sensor"; in AccelSensor()
201 mSensorInfo.vendor = "Vendor String"; in AccelSensor()
202 mSensorInfo.version = 1; in AccelSensor()
203 mSensorInfo.type = SensorType::ACCELEROMETER; in AccelSensor()
204 mSensorInfo.typeAsString = ""; in AccelSensor()
205 mSensorInfo.maxRange = 78.4f; // +/- 8g in AccelSensor()
206 mSensorInfo.resolution = 1.52e-5; in AccelSensor()
207 mSensorInfo.power = 0.001f; // mA in AccelSensor()
208 mSensorInfo.minDelay = 20 * 1000; // microseconds in AccelSensor()
209 mSensorInfo.maxDelay = kDefaultMaxDelayUs; in AccelSensor()
210 mSensorInfo.fifoReservedEventCount = 0; in AccelSensor()
211 mSensorInfo.fifoMaxEventCount = 0; in AccelSensor()
212 mSensorInfo.requiredPermission = ""; in AccelSensor()
213 mSensorInfo.flags = static_cast<uint32_t>(SensorFlagBits::DATA_INJECTION); in AccelSensor()
218 mSensorInfo.sensorHandle = sensorHandle; in PressureSensor()
219 mSensorInfo.name = "Pressure Sensor"; in PressureSensor()
220 mSensorInfo.vendor = "Vendor String"; in PressureSensor()
221 mSensorInfo.version = 1; in PressureSensor()
222 mSensorInfo.type = SensorType::PRESSURE; in PressureSensor()
223 mSensorInfo.typeAsString = ""; in PressureSensor()
224 mSensorInfo.maxRange = 1100.0f; // hPa in PressureSensor()
225 mSensorInfo.resolution = 0.005f; // hPa in PressureSensor()
226 mSensorInfo.power = 0.001f; // mA in PressureSensor()
227 mSensorInfo.minDelay = 100 * 1000; // microseconds in PressureSensor()
228 mSensorInfo.maxDelay = kDefaultMaxDelayUs; in PressureSensor()
229 mSensorInfo.fifoReservedEventCount = 0; in PressureSensor()
230 mSensorInfo.fifoMaxEventCount = 0; in PressureSensor()
231 mSensorInfo.requiredPermission = ""; in PressureSensor()
232 mSensorInfo.flags = 0; in PressureSensor()
237 mSensorInfo.sensorHandle = sensorHandle; in MagnetometerSensor()
238 mSensorInfo.name = "Magnetic Field Sensor"; in MagnetometerSensor()
239 mSensorInfo.vendor = "Vendor String"; in MagnetometerSensor()
240 mSensorInfo.version = 1; in MagnetometerSensor()
241 mSensorInfo.type = SensorType::MAGNETIC_FIELD; in MagnetometerSensor()
242 mSensorInfo.typeAsString = ""; in MagnetometerSensor()
243 mSensorInfo.maxRange = 1300.0f; in MagnetometerSensor()
244 mSensorInfo.resolution = 0.01f; in MagnetometerSensor()
245 mSensorInfo.power = 0.001f; // mA in MagnetometerSensor()
246 mSensorInfo.minDelay = 20 * 1000; // microseconds in MagnetometerSensor()
247 mSensorInfo.maxDelay = kDefaultMaxDelayUs; in MagnetometerSensor()
248 mSensorInfo.fifoReservedEventCount = 0; in MagnetometerSensor()
249 mSensorInfo.fifoMaxEventCount = 0; in MagnetometerSensor()
250 mSensorInfo.requiredPermission = ""; in MagnetometerSensor()
251 mSensorInfo.flags = 0; in MagnetometerSensor()
256 mSensorInfo.sensorHandle = sensorHandle; in LightSensor()
257 mSensorInfo.name = "Light Sensor"; in LightSensor()
258 mSensorInfo.vendor = "Vendor String"; in LightSensor()
259 mSensorInfo.version = 1; in LightSensor()
260 mSensorInfo.type = SensorType::LIGHT; in LightSensor()
261 mSensorInfo.typeAsString = ""; in LightSensor()
262 mSensorInfo.maxRange = 43000.0f; in LightSensor()
263 mSensorInfo.resolution = 10.0f; in LightSensor()
264 mSensorInfo.power = 0.001f; // mA in LightSensor()
265 mSensorInfo.minDelay = 200 * 1000; // microseconds in LightSensor()
266 mSensorInfo.maxDelay = kDefaultMaxDelayUs; in LightSensor()
267 mSensorInfo.fifoReservedEventCount = 0; in LightSensor()
268 mSensorInfo.fifoMaxEventCount = 0; in LightSensor()
269 mSensorInfo.requiredPermission = ""; in LightSensor()
270 mSensorInfo.flags = static_cast<uint32_t>(SensorFlagBits::ON_CHANGE_MODE); in LightSensor()
275 mSensorInfo.sensorHandle = sensorHandle; in ProximitySensor()
276 mSensorInfo.name = "Proximity Sensor"; in ProximitySensor()
277 mSensorInfo.vendor = "Vendor String"; in ProximitySensor()
278 mSensorInfo.version = 1; in ProximitySensor()
279 mSensorInfo.type = SensorType::PROXIMITY; in ProximitySensor()
280 mSensorInfo.typeAsString = ""; in ProximitySensor()
281 mSensorInfo.maxRange = 5.0f; in ProximitySensor()
282 mSensorInfo.resolution = 1.0f; in ProximitySensor()
283 mSensorInfo.power = 0.012f; // mA in ProximitySensor()
284 mSensorInfo.minDelay = 200 * 1000; // microseconds in ProximitySensor()
285 mSensorInfo.maxDelay = kDefaultMaxDelayUs; in ProximitySensor()
286 mSensorInfo.fifoReservedEventCount = 0; in ProximitySensor()
287 mSensorInfo.fifoMaxEventCount = 0; in ProximitySensor()
288 mSensorInfo.requiredPermission = ""; in ProximitySensor()
289 mSensorInfo.flags = in ProximitySensor()
294 mSensorInfo.sensorHandle = sensorHandle; in GyroSensor()
295 mSensorInfo.name = "Gyro Sensor"; in GyroSensor()
296 mSensorInfo.vendor = "Vendor String"; in GyroSensor()
297 mSensorInfo.version = 1; in GyroSensor()
298 mSensorInfo.type = SensorType::GYROSCOPE; in GyroSensor()
299 mSensorInfo.typeAsString = ""; in GyroSensor()
300 mSensorInfo.maxRange = 1000.0f * M_PI / 180.0f; in GyroSensor()
301 mSensorInfo.resolution = 1000.0f * M_PI / (180.0f * 32768.0f); in GyroSensor()
302 mSensorInfo.power = 0.001f; in GyroSensor()
303 mSensorInfo.minDelay = 2.5f * 1000; // microseconds in GyroSensor()
304 mSensorInfo.maxDelay = kDefaultMaxDelayUs; in GyroSensor()
305 mSensorInfo.fifoReservedEventCount = 0; in GyroSensor()
306 mSensorInfo.fifoMaxEventCount = 0; in GyroSensor()
307 mSensorInfo.requiredPermission = ""; in GyroSensor()
308 mSensorInfo.flags = 0; in GyroSensor()
313 mSensorInfo.sensorHandle = sensorHandle; in AmbientTempSensor()
314 mSensorInfo.name = "Ambient Temp Sensor"; in AmbientTempSensor()
315 mSensorInfo.vendor = "Vendor String"; in AmbientTempSensor()
316 mSensorInfo.version = 1; in AmbientTempSensor()
317 mSensorInfo.type = SensorType::AMBIENT_TEMPERATURE; in AmbientTempSensor()
318 mSensorInfo.typeAsString = ""; in AmbientTempSensor()
319 mSensorInfo.maxRange = 80.0f; in AmbientTempSensor()
320 mSensorInfo.resolution = 0.01f; in AmbientTempSensor()
321 mSensorInfo.power = 0.001f; in AmbientTempSensor()
322 mSensorInfo.minDelay = 40 * 1000; // microseconds in AmbientTempSensor()
323 mSensorInfo.maxDelay = kDefaultMaxDelayUs; in AmbientTempSensor()
324 mSensorInfo.fifoReservedEventCount = 0; in AmbientTempSensor()
325 mSensorInfo.fifoMaxEventCount = 0; in AmbientTempSensor()
326 mSensorInfo.requiredPermission = ""; in AmbientTempSensor()
327 mSensorInfo.flags = static_cast<uint32_t>(SensorFlagBits::ON_CHANGE_MODE); in AmbientTempSensor()
332 mSensorInfo.sensorHandle = sensorHandle; in DeviceTempSensor()
333 mSensorInfo.name = "Device Temp Sensor"; in DeviceTempSensor()
334 mSensorInfo.vendor = "Vendor String"; in DeviceTempSensor()
335 mSensorInfo.version = 1; in DeviceTempSensor()
336 mSensorInfo.type = SensorType::TEMPERATURE; in DeviceTempSensor()
337 mSensorInfo.typeAsString = ""; in DeviceTempSensor()
338 mSensorInfo.maxRange = 80.0f; in DeviceTempSensor()
339 mSensorInfo.resolution = 0.01f; in DeviceTempSensor()
340 mSensorInfo.power = 0.001f; in DeviceTempSensor()
341 mSensorInfo.minDelay = 40 * 1000; // microseconds in DeviceTempSensor()
342 mSensorInfo.maxDelay = kDefaultMaxDelayUs; in DeviceTempSensor()
343 mSensorInfo.fifoReservedEventCount = 0; in DeviceTempSensor()
344 mSensorInfo.fifoMaxEventCount = 0; in DeviceTempSensor()
345 mSensorInfo.requiredPermission = ""; in DeviceTempSensor()
346 mSensorInfo.flags = static_cast<uint32_t>(SensorFlagBits::ON_CHANGE_MODE); in DeviceTempSensor()
352 mSensorInfo.sensorHandle = sensorHandle; in RelativeHumiditySensor()
353 mSensorInfo.name = "Relative Humidity Sensor"; in RelativeHumiditySensor()
354 mSensorInfo.vendor = "Vendor String"; in RelativeHumiditySensor()
355 mSensorInfo.version = 1; in RelativeHumiditySensor()
356 mSensorInfo.type = SensorType::RELATIVE_HUMIDITY; in RelativeHumiditySensor()
357 mSensorInfo.typeAsString = ""; in RelativeHumiditySensor()
358 mSensorInfo.maxRange = 100.0f; in RelativeHumiditySensor()
359 mSensorInfo.resolution = 0.1f; in RelativeHumiditySensor()
360 mSensorInfo.power = 0.001f; in RelativeHumiditySensor()
361 mSensorInfo.minDelay = 40 * 1000; // microseconds in RelativeHumiditySensor()
362 mSensorInfo.maxDelay = kDefaultMaxDelayUs; in RelativeHumiditySensor()
363 mSensorInfo.fifoReservedEventCount = 0; in RelativeHumiditySensor()
364 mSensorInfo.fifoMaxEventCount = 0; in RelativeHumiditySensor()
365 mSensorInfo.requiredPermission = ""; in RelativeHumiditySensor()
366 mSensorInfo.flags = static_cast<uint32_t>(SensorFlagBits::ON_CHANGE_MODE); in RelativeHumiditySensor()