Home
last modified time | relevance | path

Searched refs:effectIndex (Results 1 – 4 of 4) sorted by relevance

/device/google/felix/vibrator/cs40l26/
DVibrator.cpp252 int constructComposeSegment(uint32_t effectVolLevel, uint32_t effectIndex, uint8_t repeat, in constructComposeSegment() argument
258 if (effectVolLevel > 100 || effectIndex > WAVEFORM_MAX_PHYSICAL_INDEX) { in constructComposeSegment()
259 ALOGE("%s: Invalid argument: %u, %u", __func__, effectVolLevel, effectIndex); in constructComposeSegment()
263 write(8, effectIndex); /* index */ in constructComposeSegment()
492 uint8_t effectIndex; local
494 for (effectIndex = 0; effectIndex < WAVEFORM_MAX_INDEX; effectIndex++) {
495 if (effectIndex < WAVEFORM_MAX_PHYSICAL_INDEX) {
497 mEffectCustomData.push_back({RAM_WVFRM_BANK, effectIndex});
498 mFfEffects[effectIndex] = {
504 .u.periodic.custom_data = mEffectCustomData[effectIndex].data(),
[all …]
DHardware.h230 bool eraseOwtEffect(int fd, int8_t effectIndex, std::vector<ff_effect> *effect) override { in eraseOwtEffect() argument
233 if (effectIndex < WAVEFORM_MAX_PHYSICAL_INDEX) { in eraseOwtEffect()
234 ALOGE("Invalid waveform index for OWT erase: %d", effectIndex); in eraseOwtEffect()
245 if (effectIndex < WAVEFORM_MAX_INDEX) { in eraseOwtEffect()
247 if (ioctl(fd, EVIOCRMFF, effectIndex) < 0) { in eraseOwtEffect()
248 ALOGE("Failed to erase effect %d (%d): %s", effectIndex, errno, strerror(errno)); in eraseOwtEffect()
251 if ((*effect)[i].id == effectIndex) { in eraseOwtEffect()
265 ALOGW("Flushed effects: ff: %d; driver: %d -> %d; success: %d", effectIndex, in eraseOwtEffect()
DVibrator.h96 virtual bool eraseOwtEffect(int fd, int8_t effectIndex, std::vector<ff_effect> *effect) = 0;
181 ndk::ScopedAStatus on(uint32_t timeoutMs, uint32_t effectIndex, const class DspMemChunk *ch,
197 ndk::ScopedAStatus performEffect(uint32_t effectIndex, uint32_t volLevel,
203 uint32_t intensityToVolLevel(float intensity, uint32_t effectIndex);
/device/google/felix/vibrator/cs40l26/tests/
Dmocks.h56 MOCK_METHOD3(eraseOwtEffect, bool(int fd, int8_t effectIndex, std::vector<ff_effect> *effect));