Lines Matching refs:desc
60 effect_descriptor_t *desc, in EffectModule() argument
65 mDescriptor(*desc), in EffectModule()
78 mStatus = EffectCreate(&desc->uuid, sessionId, thread->id(), &mEffectInterface); in EffectModule()
1377 if (memcmp(&mEffects[i]->desc().uuid, &descriptor->uuid, sizeof(effect_uuid_t)) == 0) { in getEffectFromDesc_l()
1405 if (memcmp(&mEffects[i]->desc().type, type, sizeof(effect_uuid_t)) == 0) { in getEffectFromType_l()
1482 effect_descriptor_t desc = effect->desc(); in addEffect_l() local
1483 uint32_t insertPref = desc.flags & EFFECT_FLAG_INSERT_MASK; in addEffect_l()
1493 if ((desc.flags & EFFECT_FLAG_TYPE_MASK) == EFFECT_FLAG_TYPE_AUXILIARY) { in addEffect_l()
1529 effect_descriptor_t d = mEffects[i]->desc(); in addEffect_l()
1537 desc.name, d.name); in addEffect_l()
1600 uint32_t type = effect->desc().flags & EFFECT_FLAG_TYPE_MASK; in removeEffect_l()
1668 (mEffects[i - 1]->desc().flags & EFFECT_FLAG_VOLUME_MASK) == EFFECT_FLAG_VOLUME_CTRL) { in setVolume_l()
1770 sp<SuspendedEffectDesc> desc; in setEffectSuspended_l() local
1776 desc = mSuspendedEffects.valueAt(index); in setEffectSuspended_l()
1778 desc = new SuspendedEffectDesc(); in setEffectSuspended_l()
1779 desc->mType = *type; in setEffectSuspended_l()
1780 mSuspendedEffects.add(type->timeLow, desc); in setEffectSuspended_l()
1783 if (desc->mRefCount++ == 0) { in setEffectSuspended_l()
1786 desc->mEffect = effect; in setEffectSuspended_l()
1795 desc = mSuspendedEffects.valueAt(index); in setEffectSuspended_l()
1796 if (desc->mRefCount <= 0) { in setEffectSuspended_l()
1797 ALOGW("setEffectSuspended_l() restore refcount should not be 0 %d", desc->mRefCount); in setEffectSuspended_l()
1798 desc->mRefCount = 1; in setEffectSuspended_l()
1800 if (--desc->mRefCount == 0) { in setEffectSuspended_l()
1802 if (desc->mEffect != 0) { in setEffectSuspended_l()
1803 sp<EffectModule> effect = desc->mEffect.promote(); in setEffectSuspended_l()
1813 desc->mEffect.clear(); in setEffectSuspended_l()
1823 sp<SuspendedEffectDesc> desc; in setEffectSuspendedAll_l() local
1828 desc = mSuspendedEffects.valueAt(index); in setEffectSuspendedAll_l()
1830 desc = new SuspendedEffectDesc(); in setEffectSuspendedAll_l()
1831 mSuspendedEffects.add((int)kKeyForSuspendAll, desc); in setEffectSuspendedAll_l()
1834 if (desc->mRefCount++ == 0) { in setEffectSuspendedAll_l()
1838 setEffectSuspended_l(&effects[i]->desc().type, true); in setEffectSuspendedAll_l()
1845 desc = mSuspendedEffects.valueAt(index); in setEffectSuspendedAll_l()
1846 if (desc->mRefCount <= 0) { in setEffectSuspendedAll_l()
1847 ALOGW("setEffectSuspendedAll_l() restore refcount should not be 0 %d", desc->mRefCount); in setEffectSuspendedAll_l()
1848 desc->mRefCount = 1; in setEffectSuspendedAll_l()
1850 if (--desc->mRefCount == 0) { in setEffectSuspendedAll_l()
1876 bool AudioFlinger::EffectChain::isEffectEligibleForSuspend(const effect_descriptor_t& desc) in isEffectEligibleForSuspend() argument
1880 (((desc.flags & EFFECT_FLAG_TYPE_MASK) == EFFECT_FLAG_TYPE_AUXILIARY) || in isEffectEligibleForSuspend()
1881 (memcmp(&desc.type, SL_IID_VISUALIZATION, sizeof(effect_uuid_t)) == 0) || in isEffectEligibleForSuspend()
1882 (memcmp(&desc.type, SL_IID_VOLUME, sizeof(effect_uuid_t)) == 0))) { in isEffectEligibleForSuspend()
1893 if (isEffectEligibleForSuspend(mEffects[i]->desc())) { in getSuspendEligibleEffects()
1909 ssize_t index = mSuspendedEffects.indexOfKey(effect->desc().type.timeLow); in checkSuspendOnEffectEnabled()
1917 if (!isEffectEligibleForSuspend(effect->desc())) { in checkSuspendOnEffectEnabled()
1920 setEffectSuspended_l(&effect->desc().type, enabled); in checkSuspendOnEffectEnabled()
1921 index = mSuspendedEffects.indexOfKey(effect->desc().type.timeLow); in checkSuspendOnEffectEnabled()
1928 effect->desc().type.timeLow); in checkSuspendOnEffectEnabled()
1929 sp<SuspendedEffectDesc> desc = mSuspendedEffects.valueAt(index); in checkSuspendOnEffectEnabled() local
1931 if (desc->mEffect == 0) { in checkSuspendOnEffectEnabled()
1932 desc->mEffect = effect; in checkSuspendOnEffectEnabled()
1941 effect->desc().type.timeLow); in checkSuspendOnEffectEnabled()
1942 sp<SuspendedEffectDesc> desc = mSuspendedEffects.valueAt(index); in checkSuspendOnEffectEnabled() local
1943 desc->mEffect.clear(); in checkSuspendOnEffectEnabled()