• Home
  • Raw
  • Download

Lines Matching refs:mSensorInfo

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()
155 return mSensorInfo.flags & static_cast<uint32_t>(SensorInfo::SENSOR_FLAG_BITS_DATA_INJECTION); in supportsDataInjection()
205 mSensorInfo.sensorHandle = sensorHandle; in AccelSensor()
206 mSensorInfo.name = "Accel Sensor"; in AccelSensor()
207 mSensorInfo.vendor = "Vendor String"; in AccelSensor()
208 mSensorInfo.version = 1; in AccelSensor()
209 mSensorInfo.type = SensorType::ACCELEROMETER; in AccelSensor()
210 mSensorInfo.typeAsString = ""; in AccelSensor()
211 mSensorInfo.maxRange = 78.4f; // +/- 8g in AccelSensor()
212 mSensorInfo.resolution = 1.52e-5; in AccelSensor()
213 mSensorInfo.power = 0.001f; // mA in AccelSensor()
214 mSensorInfo.minDelayUs = 10 * 1000; // microseconds in AccelSensor()
215 mSensorInfo.maxDelayUs = kDefaultMaxDelayUs; in AccelSensor()
216 mSensorInfo.fifoReservedEventCount = 0; in AccelSensor()
217 mSensorInfo.fifoMaxEventCount = 0; in AccelSensor()
218 mSensorInfo.requiredPermission = ""; in AccelSensor()
219 mSensorInfo.flags = static_cast<uint32_t>(SensorInfo::SENSOR_FLAG_BITS_DATA_INJECTION); in AccelSensor()
234 mSensorInfo.sensorHandle = sensorHandle; in PressureSensor()
235 mSensorInfo.name = "Pressure Sensor"; in PressureSensor()
236 mSensorInfo.vendor = "Vendor String"; in PressureSensor()
237 mSensorInfo.version = 1; in PressureSensor()
238 mSensorInfo.type = SensorType::PRESSURE; in PressureSensor()
239 mSensorInfo.typeAsString = ""; in PressureSensor()
240 mSensorInfo.maxRange = 1100.0f; // hPa in PressureSensor()
241 mSensorInfo.resolution = 0.005f; // hPa in PressureSensor()
242 mSensorInfo.power = 0.001f; // mA in PressureSensor()
243 mSensorInfo.minDelayUs = 100 * 1000; // microseconds in PressureSensor()
244 mSensorInfo.maxDelayUs = kDefaultMaxDelayUs; in PressureSensor()
245 mSensorInfo.fifoReservedEventCount = 0; in PressureSensor()
246 mSensorInfo.fifoMaxEventCount = 0; in PressureSensor()
247 mSensorInfo.requiredPermission = ""; in PressureSensor()
248 mSensorInfo.flags = 0; in PressureSensor()
257 mSensorInfo.sensorHandle = sensorHandle; in MagnetometerSensor()
258 mSensorInfo.name = "Magnetic Field Sensor"; in MagnetometerSensor()
259 mSensorInfo.vendor = "Vendor String"; in MagnetometerSensor()
260 mSensorInfo.version = 1; in MagnetometerSensor()
261 mSensorInfo.type = SensorType::MAGNETIC_FIELD; in MagnetometerSensor()
262 mSensorInfo.typeAsString = ""; in MagnetometerSensor()
263 mSensorInfo.maxRange = 1300.0f; in MagnetometerSensor()
264 mSensorInfo.resolution = 0.01f; in MagnetometerSensor()
265 mSensorInfo.power = 0.001f; // mA in MagnetometerSensor()
266 mSensorInfo.minDelayUs = 20 * 1000; // microseconds in MagnetometerSensor()
267 mSensorInfo.maxDelayUs = kDefaultMaxDelayUs; in MagnetometerSensor()
268 mSensorInfo.fifoReservedEventCount = 0; in MagnetometerSensor()
269 mSensorInfo.fifoMaxEventCount = 0; in MagnetometerSensor()
270 mSensorInfo.requiredPermission = ""; in MagnetometerSensor()
271 mSensorInfo.flags = static_cast<uint32_t>(SensorInfo::SENSOR_FLAG_BITS_DATA_INJECTION); in MagnetometerSensor()
286 mSensorInfo.sensorHandle = sensorHandle; in LightSensor()
287 mSensorInfo.name = "Light Sensor"; in LightSensor()
288 mSensorInfo.vendor = "Vendor String"; in LightSensor()
289 mSensorInfo.version = 1; in LightSensor()
290 mSensorInfo.type = SensorType::LIGHT; in LightSensor()
291 mSensorInfo.typeAsString = ""; in LightSensor()
292 mSensorInfo.maxRange = 43000.0f; in LightSensor()
293 mSensorInfo.resolution = 10.0f; in LightSensor()
294 mSensorInfo.power = 0.001f; // mA in LightSensor()
295 mSensorInfo.minDelayUs = 200 * 1000; // microseconds in LightSensor()
296 mSensorInfo.maxDelayUs = kDefaultMaxDelayUs; in LightSensor()
297 mSensorInfo.fifoReservedEventCount = 0; in LightSensor()
298 mSensorInfo.fifoMaxEventCount = 0; in LightSensor()
299 mSensorInfo.requiredPermission = ""; in LightSensor()
300 mSensorInfo.flags = static_cast<uint32_t>(SensorInfo::SENSOR_FLAG_BITS_ON_CHANGE_MODE); in LightSensor()
309 mSensorInfo.sensorHandle = sensorHandle; in ProximitySensor()
310 mSensorInfo.name = "Proximity Sensor"; in ProximitySensor()
311 mSensorInfo.vendor = "Vendor String"; in ProximitySensor()
312 mSensorInfo.version = 1; in ProximitySensor()
313 mSensorInfo.type = SensorType::PROXIMITY; in ProximitySensor()
314 mSensorInfo.typeAsString = ""; in ProximitySensor()
315 mSensorInfo.maxRange = 5.0f; in ProximitySensor()
316 mSensorInfo.resolution = 1.0f; in ProximitySensor()
317 mSensorInfo.power = 0.012f; // mA in ProximitySensor()
318 mSensorInfo.minDelayUs = 200 * 1000; // microseconds in ProximitySensor()
319 mSensorInfo.maxDelayUs = kDefaultMaxDelayUs; in ProximitySensor()
320 mSensorInfo.fifoReservedEventCount = 0; in ProximitySensor()
321 mSensorInfo.fifoMaxEventCount = 0; in ProximitySensor()
322 mSensorInfo.requiredPermission = ""; in ProximitySensor()
323 mSensorInfo.flags = static_cast<uint32_t>(SensorInfo::SENSOR_FLAG_BITS_ON_CHANGE_MODE | in ProximitySensor()
332 mSensorInfo.sensorHandle = sensorHandle; in GyroSensor()
333 mSensorInfo.name = "Gyro Sensor"; in GyroSensor()
334 mSensorInfo.vendor = "Vendor String"; in GyroSensor()
335 mSensorInfo.version = 1; in GyroSensor()
336 mSensorInfo.type = SensorType::GYROSCOPE; in GyroSensor()
337 mSensorInfo.typeAsString = ""; in GyroSensor()
338 mSensorInfo.maxRange = 1000.0f * M_PI / 180.0f; in GyroSensor()
339 mSensorInfo.resolution = 1000.0f * M_PI / (180.0f * 32768.0f); in GyroSensor()
340 mSensorInfo.power = 0.001f; in GyroSensor()
341 mSensorInfo.minDelayUs = 10 * 1000; // microseconds in GyroSensor()
342 mSensorInfo.maxDelayUs = kDefaultMaxDelayUs; in GyroSensor()
343 mSensorInfo.fifoReservedEventCount = 0; in GyroSensor()
344 mSensorInfo.fifoMaxEventCount = 0; in GyroSensor()
345 mSensorInfo.requiredPermission = ""; in GyroSensor()
346 mSensorInfo.flags = static_cast<uint32_t>(SensorInfo::SENSOR_FLAG_BITS_DATA_INJECTION); in GyroSensor()
361 mSensorInfo.sensorHandle = sensorHandle; in AmbientTempSensor()
362 mSensorInfo.name = "Ambient Temp Sensor"; in AmbientTempSensor()
363 mSensorInfo.vendor = "Vendor String"; in AmbientTempSensor()
364 mSensorInfo.version = 1; in AmbientTempSensor()
365 mSensorInfo.type = SensorType::AMBIENT_TEMPERATURE; in AmbientTempSensor()
366 mSensorInfo.typeAsString = ""; in AmbientTempSensor()
367 mSensorInfo.maxRange = 80.0f; in AmbientTempSensor()
368 mSensorInfo.resolution = 0.01f; in AmbientTempSensor()
369 mSensorInfo.power = 0.001f; in AmbientTempSensor()
370 mSensorInfo.minDelayUs = 40 * 1000; // microseconds in AmbientTempSensor()
371 mSensorInfo.maxDelayUs = kDefaultMaxDelayUs; in AmbientTempSensor()
372 mSensorInfo.fifoReservedEventCount = 0; in AmbientTempSensor()
373 mSensorInfo.fifoMaxEventCount = 0; in AmbientTempSensor()
374 mSensorInfo.requiredPermission = ""; in AmbientTempSensor()
375 mSensorInfo.flags = static_cast<uint32_t>(SensorInfo::SENSOR_FLAG_BITS_ON_CHANGE_MODE); in AmbientTempSensor()
385 mSensorInfo.sensorHandle = sensorHandle; in RelativeHumiditySensor()
386 mSensorInfo.name = "Relative Humidity Sensor"; in RelativeHumiditySensor()
387 mSensorInfo.vendor = "Vendor String"; in RelativeHumiditySensor()
388 mSensorInfo.version = 1; in RelativeHumiditySensor()
389 mSensorInfo.type = SensorType::RELATIVE_HUMIDITY; in RelativeHumiditySensor()
390 mSensorInfo.typeAsString = ""; in RelativeHumiditySensor()
391 mSensorInfo.maxRange = 100.0f; in RelativeHumiditySensor()
392 mSensorInfo.resolution = 0.1f; in RelativeHumiditySensor()
393 mSensorInfo.power = 0.001f; in RelativeHumiditySensor()
394 mSensorInfo.minDelayUs = 40 * 1000; // microseconds in RelativeHumiditySensor()
395 mSensorInfo.maxDelayUs = kDefaultMaxDelayUs; in RelativeHumiditySensor()
396 mSensorInfo.fifoReservedEventCount = 0; in RelativeHumiditySensor()
397 mSensorInfo.fifoMaxEventCount = 0; in RelativeHumiditySensor()
398 mSensorInfo.requiredPermission = ""; in RelativeHumiditySensor()
399 mSensorInfo.flags = static_cast<uint32_t>(SensorInfo::SENSOR_FLAG_BITS_ON_CHANGE_MODE); in RelativeHumiditySensor()
408 mSensorInfo.sensorHandle = sensorHandle; in HingeAngleSensor()
409 mSensorInfo.name = "Hinge Angle Sensor"; in HingeAngleSensor()
410 mSensorInfo.vendor = "Vendor String"; in HingeAngleSensor()
411 mSensorInfo.version = 1; in HingeAngleSensor()
412 mSensorInfo.type = SensorType::HINGE_ANGLE; in HingeAngleSensor()
413 mSensorInfo.typeAsString = ""; in HingeAngleSensor()
414 mSensorInfo.maxRange = 360.0f; in HingeAngleSensor()
415 mSensorInfo.resolution = 1.0f; in HingeAngleSensor()
416 mSensorInfo.power = 0.001f; in HingeAngleSensor()
417 mSensorInfo.minDelayUs = 40 * 1000; // microseconds in HingeAngleSensor()
418 mSensorInfo.maxDelayUs = kDefaultMaxDelayUs; in HingeAngleSensor()
419 mSensorInfo.fifoReservedEventCount = 0; in HingeAngleSensor()
420 mSensorInfo.fifoMaxEventCount = 0; in HingeAngleSensor()
421 mSensorInfo.requiredPermission = ""; in HingeAngleSensor()
422 mSensorInfo.flags = static_cast<uint32_t>(SensorInfo::SENSOR_FLAG_BITS_ON_CHANGE_MODE | in HingeAngleSensor()