Home
last modified time | relevance | path

Searched refs:mSensorDevice (Results 1 – 7 of 7) sorted by relevance

/frameworks/native/services/sensorservice/
DSensorDevice.cpp41 : 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()
[all …]
DSensorInterface.cpp33 mSensorDevice(SensorDevice::getInstance()), in BaseSensor()
34 mSensor(&sensor, mSensorDevice.getHalDeviceVersion()) { in BaseSensor()
38 mSensorDevice(SensorDevice::getInstance()), in BaseSensor()
39 mSensor(sensor, Sensor::uuid_t(uuid), mSensorDevice.getHalDeviceVersion()) { in BaseSensor()
62 return mSensorDevice.activate(ident, mSensor.getHandle(), enabled); in activate()
67 return mSensorDevice.batch(ident, mSensor.getHandle(), flags, samplingPeriodNs, in batch()
72 return mSensorDevice.flush(ident, handle); in flush()
76 return mSensorDevice.setDelay(ident, handle, ns); in setDelay()
80 mSensorDevice.autoDisable(ident, handle); in autoDisable()
DSensorFusion.cpp27 : mSensorDevice(SensorDevice::getInstance()), in ANDROID_SINGLETON_STATIC_INSTANCE()
33 ssize_t count = mSensorDevice.getSensorList(&list); in ANDROID_SINGLETON_STATIC_INSTANCE()
148 mSensorDevice.activate(ident, mAcc.getHandle(), enabled); in activate()
150 mSensorDevice.activate(ident, mMag.getHandle(), enabled); in activate()
153 mSensorDevice.activate(ident, mGyro.getHandle(), enabled); in activate()
164 mSensorDevice.batch(ident, mAcc.getHandle(), 0, ns, 0); in setDelay()
166 mSensorDevice.batch(ident, mMag.getHandle(), 0, ms2ns(20), 0); in setDelay()
169 mSensorDevice.batch(ident, mGyro.getHandle(), 0, mTargetDelayNs, 0); in setDelay()
DCorrectedGyroSensor.cpp71 mSensorDevice.activate(ident, mGyro.getHandle(), enabled); in activate()
76 mSensorDevice.setDelay(ident, mGyro.getHandle(), ns); in setDelay()
DSensorFusion.h41 SensorDevice& mSensorDevice; variable
DSensorDevice.h59 sensors_poll_device_1_t* mSensorDevice; variable
DSensorInterface.h69 SensorDevice& mSensorDevice;