Lines Matching refs:mode
123 status_t SensorFusion::activate(int mode, void* ident, bool enabled) { in activate() argument
127 mode, ident, enabled); in activate()
129 const ssize_t idx = mClients[mode].indexOf(ident); in activate()
132 mClients[mode].add(ident); in activate()
136 mClients[mode].removeItemsAt(idx); in activate()
140 const bool newState = mClients[mode].size() != 0; in activate()
141 if (newState != mEnabled[mode]) { in activate()
142 mEnabled[mode] = newState; in activate()
144 mFusions[mode].init(mode); in activate()
149 if (mode != FUSION_NOMAG) { in activate()
152 if (mode != FUSION_NOGYRO) { in activate()
159 status_t SensorFusion::setDelay(int mode, void* ident, int64_t ns) { in setDelay() argument
165 if (mode != FUSION_NOMAG) { in setDelay()
168 if (mode != FUSION_NOGYRO) { in setDelay()
175 float SensorFusion::getPowerUsage(int mode) const { in getPowerUsage()
177 ((mode != FUSION_NOMAG) ? mMag.getPowerUsage() : 0) + in getPowerUsage()
178 ((mode != FUSION_NOGYRO) ? mGyro.getPowerUsage() : 0); in getPowerUsage()