Lines Matching refs:effectIndex
120 for (size_t effectIndex = 0; effectIndex < effectCount; effectIndex++) { local
121 mHwApi->setEffectIndex(effectIndex);
124 mEffectDurations[effectIndex] = std::ceil(effectDuration / EFFECT_FREQUENCY_KHZ);
227 uint32_t effectIndex; in getPrimitiveDuration() local
230 status = getPrimitiveDetails(primitive, &effectIndex); in getPrimitiveDuration()
235 *durationMs = mEffectDurations[effectIndex]; in getPrimitiveDuration()
266 uint32_t effectIndex; in compose() local
268 status = getPrimitiveDetails(e.primitive, &effectIndex); in compose()
273 effectBuilder << effectIndex << "." << intensityToVolLevel(e.scale) << ","; in compose()
288 ndk::ScopedAStatus Vibrator::on(uint32_t timeoutMs, uint32_t effectIndex, in on() argument
295 mHwApi->setEffectIndex(effectIndex); in on()
334 uint32_t effectIndex; in alwaysOnEnable() local
339 status = getSimpleDetails(effect, strength, &effectIndex, &timeMs, &volLevel); in alwaysOnEnable()
348 mHwApi->setGpioRiseIndex(effectIndex); in alwaysOnEnable()
352 mHwApi->setGpioFallIndex(effectIndex); in alwaysOnEnable()
415 uint32_t effectIndex; in getSimpleDetails() local
436 effectIndex = WAVEFORM_LIGHT_TICK_INDEX; in getSimpleDetails()
440 effectIndex = WAVEFORM_CLICK_INDEX; in getSimpleDetails()
444 effectIndex = WAVEFORM_CLICK_INDEX; in getSimpleDetails()
448 effectIndex = WAVEFORM_CLICK_INDEX; in getSimpleDetails()
456 timeMs = mEffectDurations[effectIndex] + MAX_COLD_START_LATENCY_MS; in getSimpleDetails()
458 *outEffectIndex = effectIndex; in getSimpleDetails()
515 uint32_t effectIndex; in getPrimitiveDetails() local
521 effectIndex = WAVEFORM_CLICK_INDEX; in getPrimitiveDetails()
524 effectIndex = WAVEFORM_QUICK_RISE_INDEX; in getPrimitiveDetails()
527 effectIndex = WAVEFORM_SLOW_RISE_INDEX; in getPrimitiveDetails()
530 effectIndex = WAVEFORM_QUICK_FALL_INDEX; in getPrimitiveDetails()
533 effectIndex = WAVEFORM_LIGHT_TICK_INDEX; in getPrimitiveDetails()
539 *outEffectIndex = effectIndex; in getPrimitiveDetails()
558 uint32_t effectIndex; in performEffect() local
571 status = getSimpleDetails(effect, strength, &effectIndex, &timeMs, &volLevel); in performEffect()
584 status = performEffect(effectIndex, volLevel, &effectQueue, callback); in performEffect()
592 ndk::ScopedAStatus Vibrator::performEffect(uint32_t effectIndex, uint32_t volLevel, in performEffect() argument
601 effectIndex = WAVEFORM_TRIGGER_QUEUE_INDEX; in performEffect()
606 return on(MAX_TIME_MS, effectIndex, callback); in performEffect()