Lines Matching refs:enable
498 void HubConnection::setLeftyMode(bool enable) { in setLeftyMode() argument
504 if (enable == mLefty.hub) return; in setLeftyMode()
512 memcpy((bool *)(cmd+1), &enable, sizeof(bool)); in setLeftyMode()
517 (enable ? "true" : "false")); in setLeftyMode()
520 (enable ? "true" : "false")); in setLeftyMode()
527 (enable ? "true" : "false")); in setLeftyMode()
530 (enable ? "true" : "false")); in setLeftyMode()
537 (enable ? "true" : "false")); in setLeftyMode()
540 (enable ? "true" : "false")); in setLeftyMode()
551 mLefty.hub = enable; in setLeftyMode()
692 if (mSensorState[sensor].enable && isSampleIntervalSatisfied(sensor, timestamp)) { in processSample()
731 if (mSensorState[COMMS_SENSOR_ACCEL_UNCALIBRATED].enable in processSample()
736 if (mSensorState[COMMS_SENSOR_ACCEL_WRIST_AWARE].enable in processSample()
755 if (mSensorState[sensor].enable && isSampleIntervalSatisfied(sensor, timestamp)) { in processSample()
770 if (mSensorState[COMMS_SENSOR_MAG_UNCALIBRATED].enable in processSample()
802 if (mSensorState[sensor].enable && isSampleIntervalSatisfied(sensor, timestamp)) { in processSample()
817 if (mSensorState[COMMS_SENSOR_ACCEL_UNCALIBRATED].enable in processSample()
822 if (mSensorState[COMMS_SENSOR_ACCEL_WRIST_AWARE].enable in processSample()
842 if (mSensorState[sensor].enable && isSampleIntervalSatisfied(sensor, timestamp)) { in processSample()
857 if (mSensorState[COMMS_SENSOR_GYRO_UNCALIBRATED].enable in processSample()
862 if (mSensorState[COMMS_SENSOR_GYRO_WRIST_AWARE].enable in processSample()
894 if (mSensorState[sensor].enable && isSampleIntervalSatisfied(sensor, timestamp)) { in processSample()
909 if (mSensorState[COMMS_SENSOR_MAG_UNCALIBRATED].enable in processSample()
1004 if (mSensorState[i].sensorType && mSensorState[i].enable) { in restoreSensorState()
1010 … cmd.sensorType, i, mSensorState[i].enable, frequency_q10_to_period_ns(mSensorState[i].rate), in restoreSensorState()
1559 if (mSensorState[handle].enable) { in initConfigCmd()
1575 if (!mSensorState[alt].enable) continue; in initConfigCmd()
1591 void HubConnection::queueActivate(int handle, bool enable) in queueActivate() argument
1601 if (handle == COMMS_SENSOR_ACCEL && !enable) in queueActivate()
1604 mSensorState[handle].enable = enable; in queueActivate()
1610 updateSampleRate(handle, enable ? CONFIG_CMD_ENABLE : CONFIG_CMD_DISABLE); in queueActivate()
1612 cmd.sensorType, handle, enable); in queueActivate()
1616 cmd.sensorType, handle, enable); in queueActivate()
1618 ALOGV("queueActivate: unhandled handle=%d, enable=%d", handle, enable); in queueActivate()