Lines Matching refs:mSensorDevice
41 : mSensorDevice(0), in ANDROID_SINGLETON_STATIC_INSTANCE()
50 err = sensors_open_1(&mSensorModule->common, &mSensorDevice); in ANDROID_SINGLETON_STATIC_INSTANCE()
55 if (mSensorDevice) { in ANDROID_SINGLETON_STATIC_INSTANCE()
56 if (mSensorDevice->common.version == SENSORS_DEVICE_API_VERSION_1_1 || in ANDROID_SINGLETON_STATIC_INSTANCE()
57 mSensorDevice->common.version == SENSORS_DEVICE_API_VERSION_1_2) { in ANDROID_SINGLETON_STATIC_INSTANCE()
67 mSensorDevice->activate( in ANDROID_SINGLETON_STATIC_INSTANCE()
68 reinterpret_cast<struct sensors_poll_device_t *>(mSensorDevice), in ANDROID_SINGLETON_STATIC_INSTANCE()
79 mSensorDevice->activate( in handleDynamicSensorConnection()
80 reinterpret_cast<struct sensors_poll_device_t *>(mSensorDevice), handle, 0); in handleDynamicSensorConnection()
132 return mSensorDevice && mSensorModule ? NO_ERROR : NO_INIT; in initCheck()
136 if (!mSensorDevice) return NO_INIT; in poll()
139 c = mSensorDevice->poll(reinterpret_cast<struct sensors_poll_device_t *> (mSensorDevice), in poll()
152 if (!mSensorDevice) return NO_INIT; in activate()
196 mSensorDevice->batch(mSensorDevice, handle,info.bestBatchParams.flags, in activate()
213 err = mSensorDevice->activate( in activate()
214 reinterpret_cast<struct sensors_poll_device_t *> (mSensorDevice), handle, enabled); in activate()
228 mSensorDevice->setDelay( in activate()
229 reinterpret_cast<struct sensors_poll_device_t *>(mSensorDevice), in activate()
237 if (!mSensorDevice) return NO_INIT; in batch()
281 err = mSensorDevice->batch(mSensorDevice, handle, info.bestBatchParams.flags, in batch()
291 mSensorDevice, handle, in batch()
301 if (!mSensorDevice) return NO_INIT; in setDelay()
320 return mSensorDevice->setDelay(reinterpret_cast<struct sensors_poll_device_t *>(mSensorDevice), in setDelay()
325 if (!mSensorDevice) return -1; in getHalDeviceVersion()
326 return mSensorDevice->common.version; in getHalDeviceVersion()
335 return mSensorDevice->flush(mSensorDevice, handle); in flush()
360 err = mSensorDevice->batch(mSensorDevice, sensor_handle, in enableAllSensors()
367 err = mSensorDevice->activate( in enableAllSensors()
368 reinterpret_cast<struct sensors_poll_device_t *>(mSensorDevice), in enableAllSensors()
374 err = mSensorDevice->setDelay( in enableAllSensors()
375 reinterpret_cast<struct sensors_poll_device_t *>(mSensorDevice), in enableAllSensors()
391 mSensorDevice->activate( in disableAllSensors()
392 reinterpret_cast<struct sensors_poll_device_t *> (mSensorDevice), in disableAllSensors()
414 return mSensorDevice->inject_sensor_data(mSensorDevice, injected_sensor_event); in injectSensorData()