Lines Matching refs:mEffects
1361 size_t size = mEffects.size();
1364 if (memcmp(&mEffects[i]->desc().uuid, &descriptor->uuid, sizeof(effect_uuid_t)) == 0) {
1365 return mEffects[i];
1374 size_t size = mEffects.size();
1378 if (id == 0 || mEffects[i]->id() == id) {
1379 return mEffects[i];
1389 size_t size = mEffects.size();
1392 if (memcmp(&mEffects[i]->desc().type, type, sizeof(effect_uuid_t)) == 0) {
1393 return mEffects[i];
1455 size_t size = mEffects.size();
1458 mEffects[i]->process();
1462 mEffects[i]->updateState();
1481 // Auxiliary effects are inserted at the beginning of mEffects vector as
1483 mEffects.insertAt(effect, 0);
1497 // Insert effects are inserted at the end of mEffects vector as they are processed
1510 size_t size = mEffects.size();
1516 effect_descriptor_t d = mEffects[i]->desc();
1566 mEffects[idx_insert-1]->setOutBuffer(mInBuffer);
1567 mEffects[idx_insert-1]->configure();
1573 mEffects.insertAt(effect, idx_insert);
1586 size_t size = mEffects.size();
1590 if (effect == mEffects[i]) {
1594 if (mEffects[i]->state() == EffectModule::ACTIVE ||
1595 mEffects[i]->state() == EffectModule::STOPPING) {
1596 mEffects[i]->stop();
1602 mEffects[i - 1]->setOutBuffer(mOutBuffer);
1603 mEffects[i - 1]->configure();
1606 mEffects.removeAt(i);
1613 return mEffects.size();
1619 size_t size = mEffects.size();
1621 mEffects[i]->setDevice(device);
1628 size_t size = mEffects.size();
1630 mEffects[i]->setMode(mode);
1637 size_t size = mEffects.size();
1639 mEffects[i]->setAudioSource(source);
1650 size_t size = mEffects.size();
1654 if (mEffects[i - 1]->isProcessEnabled() &&
1655 (mEffects[i - 1]->desc().flags & EFFECT_FLAG_VOLUME_MASK) == EFFECT_FLAG_VOLUME_CTRL) {
1677 mEffects[ctrlIdx]->setVolume(&newLeft, &newRight, true);
1696 mEffects[i]->setVolume(&lVol, &rVol, false);
1707 for (size_t i = 0; i < mEffects.size(); i++) {
1708 if (mEffects[i]->state() == EffectModule::ACTIVE ||
1709 mEffects[i]->state() == EffectModule::STOPPING) {
1710 mEffects[i]->addEffectToHal_l();
1721 size_t numEffects = mEffects.size();
1741 sp<EffectModule> effect = mEffects[i];
1879 for (size_t i = 0; i < mEffects.size(); i++) {
1880 if (isEffectEligibleForSuspend(mEffects[i]->desc())) {
1881 effects.add(mEffects[i]);
1938 size_t size = mEffects.size();
1940 if (mEffects[i]->isEnabled() && !mEffects[i]->isOffloadable()) {
1951 for (size_t i = 0; i < mEffects.size(); i++) {
1952 mEffects[i]->setThread(thread);