Home
last modified time | relevance | path

Searched refs:effect (Results 1 – 25 of 138) sorted by relevance

123456

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
DMediaAudioEffectTest.java166 AudioEffect effect = new AudioEffect(desc[0].type, in test1_0ConstructorFromType() local
170 assertNotNull(msg + ": could not create AudioEffect", effect); in test1_0ConstructorFromType()
172 assertTrue(msg +": invalid effect ID", (effect.getId() != 0)); in test1_0ConstructorFromType()
177 effect.release(); in test1_0ConstructorFromType()
208 AudioEffect effect = new AudioEffect(AudioEffect.EFFECT_TYPE_NULL, in test1_1ConstructorFromUuid() local
212 assertNotNull(msg + ": could not create AudioEffect", effect); in test1_1ConstructorFromUuid()
213 effect.release(); in test1_1ConstructorFromUuid()
234 AudioEffect effect = new AudioEffect(UUID.randomUUID(), in test1_2ConstructorUnknownType() local
239 if (effect != null) { in test1_2ConstructorUnknownType()
240 effect.release(); in test1_2ConstructorUnknownType()
[all …]
/frameworks/av/media/libeffects/preprocessing/
DPreProcessing.cpp269 int AgcInit (preproc_effect_t *effect) in AgcInit() argument
272 webrtc::GainControl *agc = static_cast<webrtc::GainControl *>(effect->engine); in AgcInit()
280 int AgcCreate(preproc_effect_t *effect) in AgcCreate() argument
282 webrtc::GainControl *agc = effect->session->apm->gain_control(); in AgcCreate()
288 effect->engine = static_cast<preproc_fx_handle_t>(agc); in AgcCreate()
289 AgcInit(effect); in AgcCreate()
293 int AgcGetParameter(preproc_effect_t *effect, in AgcGetParameter() argument
301 webrtc::GainControl *agc = static_cast<webrtc::GainControl *>(effect->engine); in AgcGetParameter()
357 int AgcSetParameter (preproc_effect_t *effect, void *pParam, void *pValue) in AgcSetParameter() argument
362 webrtc::GainControl *agc = static_cast<webrtc::GainControl *>(effect->engine); in AgcSetParameter()
[all …]
/frameworks/av/media/libaudioclient/include/media/
DAudioEffect.h571 EffectClient(AudioEffect *effect) : mEffect(effect){} in EffectClient() argument
575 sp<AudioEffect> effect = mEffect.promote(); in controlStatusChanged() local
576 if (effect != 0) { in controlStatusChanged()
580 AutoMutex lock(effect->mConstructLock); in controlStatusChanged()
582 effect->controlStatusChanged(controlGranted); in controlStatusChanged()
586 sp<AudioEffect> effect = mEffect.promote(); in enableStatusChanged() local
587 if (effect != 0) { in enableStatusChanged()
591 AutoMutex lock(effect->mConstructLock); in enableStatusChanged()
593 effect->enableStatusChanged(enabled); in enableStatusChanged()
601 sp<AudioEffect> effect = mEffect.promote(); in commandExecuted() local
[all …]
/frameworks/av/include/media/
DAudioEffect.h571 EffectClient(AudioEffect *effect) : mEffect(effect){} in EffectClient() argument
575 sp<AudioEffect> effect = mEffect.promote(); in controlStatusChanged() local
576 if (effect != 0) { in controlStatusChanged()
580 AutoMutex lock(effect->mConstructLock); in controlStatusChanged()
582 effect->controlStatusChanged(controlGranted); in controlStatusChanged()
586 sp<AudioEffect> effect = mEffect.promote(); in enableStatusChanged() local
587 if (effect != 0) { in enableStatusChanged()
591 AutoMutex lock(effect->mConstructLock); in enableStatusChanged()
593 effect->enableStatusChanged(enabled); in enableStatusChanged()
601 sp<AudioEffect> effect = mEffect.promote(); in commandExecuted() local
[all …]
/frameworks/base/core/jni/android/graphics/
DPathEffect.cpp15 SkPathEffect* effect = reinterpret_cast<SkPathEffect*>(effectHandle); in destructor() local
16 SkSafeUnref(effect); in destructor()
23 SkPathEffect* effect = SkPathEffect::MakeCompose(sk_ref_sp(outer), in Compose_constructor() local
25 return reinterpret_cast<jlong>(effect); in Compose_constructor()
32 SkPathEffect* effect = SkPathEffect::MakeSum(sk_ref_sp(first), in Sum_constructor() local
34 return reinterpret_cast<jlong>(effect); in Sum_constructor()
46 SkPathEffect* effect = SkDashPathEffect::Make(intervals, count, phase).release(); in Dash_constructor() local
47 return reinterpret_cast<jlong>(effect); in Dash_constructor()
54 SkPathEffect* effect = SkPath1DPathEffect::Make(*shape, advance, phase, in OneD_constructor() local
56 return reinterpret_cast<jlong>(effect); in OneD_constructor()
[all …]
/frameworks/av/media/libaudiohal/
DEffectsFactoryHalInterface.cpp27 if (hardware::audio::effect::V5_0::IEffectsFactory::getService() != nullptr) { in create()
28 return effect::V5_0::createEffectsFactoryHal(); in create()
30 if (hardware::audio::effect::V4_0::IEffectsFactory::getService() != nullptr) { in create()
31 return effect::V4_0::createEffectsFactoryHal(); in create()
33 if (hardware::audio::effect::V2_0::IEffectsFactory::getService() != nullptr) { in create()
34 return effect::V2_0::createEffectsFactoryHal(); in create()
/frameworks/base/services/core/jni/
Dcom_android_server_VibratorService.cpp93 bool isValidEffect(jlong effect) { in isValidEffect() argument
94 if (effect < 0) { in isValidEffect()
97 R val = static_cast<R>(effect); in isValidEffect()
154 static jlong vibratorPerformEffect(JNIEnv*, jobject, jlong effect, jint strength) { in vibratorPerformEffect() argument
164 if (isValidEffect<V1_0::Effect>(effect)) { in vibratorPerformEffect()
165 ret = halCall(&V1_0::IVibrator::perform, static_cast<V1_0::Effect>(effect), in vibratorPerformEffect()
167 } else if (isValidEffect<Effect_1_1>(effect)) { in vibratorPerformEffect()
168 ret = halCall(&V1_1::IVibrator::perform_1_1, static_cast<Effect_1_1>(effect), in vibratorPerformEffect()
170 } else if (isValidEffect<V1_2::Effect>(effect)) { in vibratorPerformEffect()
171 ret = halCall(&V1_2::IVibrator::perform_1_2, static_cast<V1_2::Effect>(effect), in vibratorPerformEffect()
[all …]
/frameworks/av/media/libeffects/factory/
DEffectsXmlConfigLoader.cpp212 LoadEffectResult loadEffect(const EffectImpl& effect, const std::string& name, in loadEffect() argument
217 result.lib = findLibrary(effect.library->name.c_str(), libList); in loadEffect()
220 effect.library->name.c_str(), name.c_str()); in loadEffect()
227 if (result.lib->desc->get_descriptor(&effect.uuid, result.effectDesc.get()) != 0) { in loadEffect()
229 uuidToString(effect.uuid), result.lib->name); in loadEffect()
250 if (findEffect(nullptr, &effect.uuid, &_, nullptr) == 0) { in loadEffect()
251 ALOGE("Effect %s uuid %s already exist", uuidToString(effect.uuid), name.c_str()); in loadEffect()
263 for (auto& effect : effects) { in loadEffects() local
265 auto effectLoadResult = loadEffect(effect, effect.name, libList); in loadEffects()
274 if (effect.isProxy) { in loadEffects()
[all …]
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioInputDescriptor.cpp408 void AudioInputDescriptor::trackEffectEnabled(const sp<EffectDescriptor> &effect, in trackEffectEnabled() argument
412 mEnabledEffects.replaceValueFor(effect->mId, effect); in trackEffectEnabled()
414 mEnabledEffects.removeItem(effect->mId); in trackEffectEnabled()
417 if (effect->mSuspended) { in trackEffectEnabled()
418 effect->mSuspended = false; in trackEffectEnabled()
419 mClientInterface->setEffectSuspended(effect->mId, effect->mSession, effect->mSuspended); in trackEffectEnabled()
423 RecordClientVector clients = getClientsForSession((audio_session_t)effect->mSession); in trackEffectEnabled()
427 sp<EffectDescriptor> clientEffect = client->getEnabledEffects().getEffect(effect->mId); in trackEffectEnabled()
430 client->trackEffectEnabled(effect, enabled); in trackEffectEnabled()
484 sp<EffectDescriptor> effect = mEnabledEffects.valueAt(i); in checkSuspendEffects() local
[all …]
/frameworks/av/media/libeffects/config/src/
DEffectsConfig.cpp160 Effect effect{}; in parseEffect() local
167 effect.name = name; in parseEffect()
170 auto parseImpl = [&libraries](const XMLElement& xmlImpl, EffectImpl& effect) { in parseEffect() argument
185 effect.library = library; in parseEffect()
187 if (!stringToUuid(uuid, &effect.uuid)) { in parseEffect()
194 if (!parseImpl(xmlEffect, effect)) { in parseEffect()
199 effect.isProxy = false; in parseEffect()
201 effect.isProxy = true; in parseEffect()
212 if (!parseProxy("libhw", effect.libHw) || !parseProxy("libsw", effect.libSw)) { in parseEffect()
217 effects->push_back(std::move(effect)); in parseEffect()
[all …]
/frameworks/av/services/audioflinger/
DEffects.cpp1574 AudioFlinger::EffectHandle::EffectHandle(const sp<EffectModule>& effect, in EffectHandle() argument
1579 mEffect(effect), mEffectClient(effectClient), mClient(client), mCblk(NULL), in EffectHandle()
1615 sp<EffectModule> effect = mEffect.promote(); in enable() local
1616 if (effect == 0 || mDisconnected) { in enable()
1629 status_t status = effect->updatePolicyState(); in enable()
1635 sp<ThreadBase> thread = effect->thread().promote(); in enable()
1637 thread->checkSuspendOnEffectEnabled(effect, true, effect->sessionId()); in enable()
1641 if (effect->suspended()) { in enable()
1645 status = effect->setEnabled(true); in enable()
1648 thread->checkSuspendOnEffectEnabled(effect, false, effect->sessionId()); in enable()
[all …]
/frameworks/base/services/core/java/com/android/server/
DVibratorService.java165 static native long vibratorPerformEffect(long effect, long strength); in vibratorPerformEffect() argument
202 public VibrationEffect effect; field in VibratorService.Vibration
208 private Vibration(IBinder token, VibrationEffect effect, in Vibration() argument
211 this.effect = effect; in Vibration()
229 final long duration = effect.getDuration(); in hasTimeoutLongerThan()
237 if (effect instanceof VibrationEffect.Prebaked) { in isHapticFeedback()
238 VibrationEffect.Prebaked prebaked = (VibrationEffect.Prebaked) effect; in isHapticFeedback()
254 final long duration = effect.getDuration(); in isHapticFeedback()
276 startTimeDebug, effect, originalEffect, usageHint, uid, opPkg, reason); in toInfo()
289 public VibrationInfo(long startTimeDebug, VibrationEffect effect, in VibrationInfo() argument
[all …]
/frameworks/av/media/libaudiohal/impl/
DEffectsFactoryHalHidl.h20 #include PATH(android/hardware/audio/effect/FILE_VERSION/IEffectsFactory.h)
21 #include PATH(android/hardware/audio/effect/FILE_VERSION/types.h)
27 namespace effect {
32 using namespace ::android::hardware::audio::effect::CPP_VERSION;
54 sp<EffectHalInterface> *effect);
/frameworks/base/media/mca/effect/java/android/media/effect/effects/
DGrainEffect.java18 package android.media.effect.effects;
20 import android.media.effect.EffectContext;
21 import android.media.effect.SingleFilterEffect;
DFlipEffect.java18 package android.media.effect.effects;
20 import android.media.effect.EffectContext;
21 import android.media.effect.SingleFilterEffect;
DCrossProcessEffect.java18 package android.media.effect.effects;
20 import android.media.effect.EffectContext;
21 import android.media.effect.SingleFilterEffect;
DBitmapOverlayEffect.java19 package android.media.effect.effects;
21 import android.media.effect.EffectContext;
22 import android.media.effect.SingleFilterEffect;
DFisheyeEffect.java18 package android.media.effect.effects;
20 import android.media.effect.EffectContext;
21 import android.media.effect.SingleFilterEffect;
DAutoFixEffect.java18 package android.media.effect.effects;
20 import android.media.effect.EffectContext;
21 import android.media.effect.SingleFilterEffect;
DCropEffect.java18 package android.media.effect.effects;
20 import android.media.effect.EffectContext;
21 import android.media.effect.SizeChangeEffect;
DDuotoneEffect.java18 package android.media.effect.effects;
20 import android.media.effect.EffectContext;
21 import android.media.effect.SingleFilterEffect;
DDocumentaryEffect.java17 package android.media.effect.effects;
19 import android.media.effect.EffectContext;
20 import android.media.effect.SingleFilterEffect;
DSharpenEffect.java18 package android.media.effect.effects;
20 import android.media.effect.EffectContext;
21 import android.media.effect.SingleFilterEffect;
DSepiaEffect.java18 package android.media.effect.effects;
20 import android.media.effect.EffectContext;
21 import android.media.effect.SingleFilterEffect;
DBrightnessEffect.java18 package android.media.effect.effects;
20 import android.media.effect.EffectContext;
21 import android.media.effect.SingleFilterEffect;

123456