Lines Matching refs:mSensorDevice

41     :  mSensorDevice(0),  in ANDROID_SINGLETON_STATIC_INSTANCE()
51 err = sensors_open_1(&mSensorModule->common, &mSensorDevice); in ANDROID_SINGLETON_STATIC_INSTANCE()
56 if (mSensorDevice) { in ANDROID_SINGLETON_STATIC_INSTANCE()
57 if (mSensorDevice->common.version == SENSORS_DEVICE_API_VERSION_1_1 || in ANDROID_SINGLETON_STATIC_INSTANCE()
58 mSensorDevice->common.version == SENSORS_DEVICE_API_VERSION_1_2) { in ANDROID_SINGLETON_STATIC_INSTANCE()
68 mSensorDevice->activate( in ANDROID_SINGLETON_STATIC_INSTANCE()
69 reinterpret_cast<struct sensors_poll_device_t *>(mSensorDevice), in ANDROID_SINGLETON_STATIC_INSTANCE()
116 return mSensorDevice && mSensorModule ? NO_ERROR : NO_INIT; in initCheck()
120 if (!mSensorDevice) return NO_INIT; in poll()
123 c = mSensorDevice->poll(reinterpret_cast<struct sensors_poll_device_t *> (mSensorDevice), in poll()
137 if (!mSensorDevice) return NO_INIT; in activate()
181 mSensorDevice->batch(mSensorDevice, handle,info.bestBatchParams.flags, in activate()
198 err = mSensorDevice->activate( in activate()
199 reinterpret_cast<struct sensors_poll_device_t *> (mSensorDevice), handle, enabled); in activate()
213 mSensorDevice->setDelay( in activate()
214 reinterpret_cast<struct sensors_poll_device_t *>(mSensorDevice), in activate()
222 if (!mSensorDevice) return NO_INIT; in batch()
266 err = mSensorDevice->batch(mSensorDevice, handle, info.bestBatchParams.flags, in batch()
276 mSensorDevice, handle, in batch()
287 if (!mSensorDevice) return NO_INIT; in setDelay()
306 return mSensorDevice->setDelay(reinterpret_cast<struct sensors_poll_device_t *>(mSensorDevice), in setDelay()
311 if (!mSensorDevice) return -1; in getHalDeviceVersion()
312 return mSensorDevice->common.version; in getHalDeviceVersion()
321 return mSensorDevice->flush(mSensorDevice, handle); in flush()
346 err = mSensorDevice->batch(mSensorDevice, sensor_handle, in enableAllSensors()
353 err = mSensorDevice->activate( in enableAllSensors()
354 reinterpret_cast<struct sensors_poll_device_t *>(mSensorDevice), in enableAllSensors()
360 err = mSensorDevice->setDelay( in enableAllSensors()
361 reinterpret_cast<struct sensors_poll_device_t *>(mSensorDevice), in enableAllSensors()
377 mSensorDevice->activate( in disableAllSensors()
378 reinterpret_cast<struct sensors_poll_device_t *> (mSensorDevice), in disableAllSensors()
400 return mSensorDevice->inject_sensor_data(mSensorDevice, injected_sensor_event); in injectSensorData()