Home
last modified time | relevance | path

Searched refs:effect (Results 1 – 25 of 147) 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/native/cmds/idlcli/vibrator/
DCommandCompose.cpp45 CompositeEffect effect; in doArgs() local
46 if (auto delay = args.pop<decltype(effect.delayMs)>()) { in doArgs()
47 effect.delayMs = *delay; in doArgs()
48 std::cout << "Delay: " << effect.delayMs << std::endl; in doArgs()
54 if (auto primitive = args.pop<std::underlying_type_t<decltype(effect.primitive)>>()) { in doArgs()
55 effect.primitive = static_cast<decltype(effect.primitive)>(*primitive); in doArgs()
56 std::cout << "Primitive: " << toString(effect.primitive) << std::endl; in doArgs()
61 if (auto scale = args.pop<decltype(effect.scale)>(); in doArgs()
63 effect.scale = *scale; in doArgs()
64 std::cout << "Scale: " << effect.scale << std::endl; in doArgs()
[all …]
/frameworks/av/media/libaudioclient/include/media/
DAudioEffect.h577 EffectClient(AudioEffect *effect) : mEffect(effect){} in EffectClient() argument
581 sp<AudioEffect> effect = mEffect.promote(); in controlStatusChanged() local
582 if (effect != 0) { in controlStatusChanged()
586 AutoMutex lock(effect->mConstructLock); in controlStatusChanged()
588 effect->controlStatusChanged(controlGranted); in controlStatusChanged()
592 sp<AudioEffect> effect = mEffect.promote(); in enableStatusChanged() local
593 if (effect != 0) { in enableStatusChanged()
597 AutoMutex lock(effect->mConstructLock); in enableStatusChanged()
599 effect->enableStatusChanged(enabled); in enableStatusChanged()
607 sp<AudioEffect> effect = mEffect.promote(); in commandExecuted() local
[all …]
/frameworks/av/services/audioflinger/
DDeviceEffectManager.cpp49 for (auto& effect : mDeviceEffects) { in onCreateAudioPatch() local
50 status_t status = effect.second->onCreatePatch(handle, patch); in onCreateAudioPatch()
64 for (auto& effect : mDeviceEffects) { in onReleaseAudioPatch() local
65 effect.second->onReleasePatch(handle); in onReleaseAudioPatch()
78 sp<DeviceEffectProxy> effect; in createEffect_l() local
92 effect = iter->second; in createEffect_l()
94 effect = new DeviceEffectProxy(device, mMyCallback, in createEffect_l()
98 handle = new EffectHandle(effect, client, effectClient, 0 /*priority*/); in createEffect_l()
101 lStatus = effect->addHandle(handle.get()); in createEffect_l()
103 effect->init(patches); in createEffect_l()
[all …]
DDeviceEffectManager.h43 size_t removeEffect(const sp<DeviceEffectProxy>& effect);
46 sp<EffectHalInterface> *effect);
48 sp<EffectHalInterface> effect) { in addEffectToHal() argument
49 return mAudioFlinger.addEffectToHal(deviceId, hwModuleId, effect); in addEffectToHal()
52 sp<EffectHalInterface> effect) { in removeEffectFromHal() argument
53 return mAudioFlinger.removeEffectFromHal(deviceId, hwModuleId, effect); in removeEffectFromHal()
151 sp<EffectHalInterface> *effect) override { in createEffectHal() argument
152 return mManager.createEffectHal(pEffectUuid, sessionId, deviceId, effect); in createEffectHal()
156 bool updateOrphanEffectChains(const sp<EffectBase>& effect __unused) override { return false; } in updateOrphanEffectChains()
170 status_t addEffectToHal(sp<EffectHalInterface> effect __unused) override { in addEffectToHal()
[all …]
DEffects.cpp1598 AudioFlinger::EffectHandle::EffectHandle(const sp<EffectBase>& effect, in EffectHandle() argument
1603 mEffect(effect), mEffectClient(effectClient), mClient(client), mCblk(NULL), in EffectHandle()
1639 sp<EffectBase> effect = mEffect.promote(); in enable() local
1640 if (effect == 0 || mDisconnected) { in enable()
1653 status_t status = effect->updatePolicyState(); in enable()
1659 effect->checkSuspendOnEffectEnabled(true, false /*threadLocked*/); in enable()
1662 if (effect->suspended()) { in enable()
1666 status = effect->setEnabled(true, true /*fromHandle*/); in enable()
1677 sp<EffectBase> effect = mEffect.promote(); in disable() local
1678 if (effect == 0 || mDisconnected) { in disable()
[all …]
DEffects.h44 virtual status_t addEffectToHal(sp<EffectHalInterface> effect) = 0;
45 virtual status_t removeEffectFromHal(sp<EffectHalInterface> effect) = 0;
48 virtual void checkSuspendOnEffectEnabled(const sp<EffectBase>& effect,
51 virtual void onEffectEnable(const sp<EffectBase>& effect) = 0;
52 virtual void onEffectDisable(const sp<EffectBase>& effect) = 0;
56 int32_t sessionId, int32_t deviceId, sp<EffectHalInterface> *effect) = 0;
58 virtual bool updateOrphanEffectChains(const sp<EffectBase>& effect) = 0;
322 EffectHandle(const sp<EffectBase>& effect,
360 wp<EffectBase> effect() const { return mEffect; } in effect() function
362 sp<EffectBase> effect = mEffect.promote(); in id() 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/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.cpp420 void AudioInputDescriptor::trackEffectEnabled(const sp<EffectDescriptor> &effect, in trackEffectEnabled() argument
424 mEnabledEffects.replaceValueFor(effect->mId, effect); in trackEffectEnabled()
426 mEnabledEffects.removeItem(effect->mId); in trackEffectEnabled()
429 if (effect->mSuspended) { in trackEffectEnabled()
430 effect->mSuspended = false; in trackEffectEnabled()
431 mClientInterface->setEffectSuspended(effect->mId, effect->mSession, effect->mSuspended); in trackEffectEnabled()
435 RecordClientVector clients = getClientsForSession((audio_session_t)effect->mSession); in trackEffectEnabled()
439 sp<EffectDescriptor> clientEffect = client->getEnabledEffects().getEffect(effect->mId); in trackEffectEnabled()
442 client->trackEffectEnabled(effect, enabled); in trackEffectEnabled()
496 sp<EffectDescriptor> effect = mEnabledEffects.valueAt(i); in checkSuspendEffects() local
[all …]
/frameworks/av/media/libeffects/config/src/
DEffectsConfig.cpp170 Effect effect{}; in parseEffect() local
177 effect.name = name; in parseEffect()
180 auto parseImpl = [&libraries](const XMLElement& xmlImpl, EffectImpl& effect) { in parseEffect() argument
195 effect.library = library; in parseEffect()
197 if (!stringToUuid(uuid, &effect.uuid)) { in parseEffect()
204 if (!parseImpl(xmlEffect, effect)) { in parseEffect()
209 effect.isProxy = false; in parseEffect()
211 effect.isProxy = true; in parseEffect()
222 if (!parseProxy("libhw", effect.libHw) || !parseProxy("libsw", effect.libSw)) { in parseEffect()
227 effects->push_back(std::move(effect)); in parseEffect()
[all …]
/frameworks/base/services/core/java/com/android/server/
DVibratorService.java172 static native long vibratorPerformEffect(long effect, long strength, Vibration vibration); in vibratorPerformEffect() argument
176 static native void vibratorAlwaysOnEnable(long id, long effect, long strength); in vibratorAlwaysOnEnable() argument
212 public VibrationEffect effect; field in VibratorService.Vibration
218 private Vibration(IBinder token, VibrationEffect effect, in Vibration() argument
221 this.effect = effect; in Vibration()
247 final long duration = effect.getDuration(); in hasTimeoutLongerThan()
255 if (effect instanceof VibrationEffect.Prebaked) { in isHapticFeedback()
256 VibrationEffect.Prebaked prebaked = (VibrationEffect.Prebaked) effect; in isHapticFeedback()
272 final long duration = effect.getDuration(); in isHapticFeedback()
294 startTimeDebug, effect, originalEffect, attrs, uid, opPkg, reason); in toInfo()
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_VibratorService.cpp214 bool isValidEffect(jlong effect) { in isValidEffect() argument
215 if (effect < 0) { in isValidEffect()
218 R val = static_cast<R>(effect); in isValidEffect()
336 static jlong vibratorPerformEffect(JNIEnv* env, jclass, jlong effect, jlong strength, in vibratorPerformEffect() argument
341 aidl::Effect effectType(static_cast<aidl::Effect>(effect)); in vibratorPerformEffect()
348 …": %s", static_cast<int64_t>(effect), static_cast<int32_t>(strength), status.toString8().string()); in vibratorPerformEffect()
363 if (isValidEffect<V1_0::Effect>(effect)) { in vibratorPerformEffect()
364 ret = halCall(&V1_0::IVibrator::perform, static_cast<V1_0::Effect>(effect), in vibratorPerformEffect()
366 } else if (isValidEffect<Effect_1_1>(effect)) { in vibratorPerformEffect()
367 ret = halCall(&V1_1::IVibrator::perform_1_1, static_cast<Effect_1_1>(effect), in vibratorPerformEffect()
[all …]
/frameworks/av/services/audiopolicy/service/
DAudioPolicyEffects.cpp123 EffectDesc *effect = effects[i]; in addInputEffects() local
124 sp<AudioEffect> fx = new AudioEffect(NULL, String16("android"), &effect->mUuid, -1, 0, in addInputEffects()
129 effect->mName, (int32_t)aliasSource); in addInputEffects()
133 for (size_t j = 0; j < effect->mParams.size(); j++) { in addInputEffects()
134 fx->setParameter(effect->mParams[j]); in addInputEffects()
137 effect->mName, (int32_t)aliasSource); in addInputEffects()
272 EffectDesc *effect = effects[i]; in addOutputSessionEffects() local
273 sp<AudioEffect> fx = new AudioEffect(NULL, String16("android"), &effect->mUuid, 0, 0, 0, in addOutputSessionEffects()
278 effect->mName, audioSession); in addOutputSessionEffects()
283 effect->mName, audioSession, (int32_t)stream); in addOutputSessionEffects()
[all …]
/frameworks/av/media/libaudiohal/impl/
DEffectsFactoryHalHidl.cpp32 namespace effect { namespace
36 using namespace ::android::hardware::audio::effect::CPP_VERSION;
107 int32_t deviceId __unused, sp<EffectHalInterface> *effect) { in createEffect() argument
119 *effect = new EffectHalHidl(result, effectId); in createEffect()
131 *effect = new EffectHalHidl(result, effectId); in createEffect()
165 auto service = hardware::audio::effect::CPP_VERSION::IEffectsFactory::getService(); in createIEffectsFactory()
166 return service ? new effect::CPP_VERSION::EffectsFactoryHalHidl(service) : nullptr; in createIEffectsFactory()
/frameworks/base/media/mca/effect/java/android/media/effect/effects/
DBackDropperEffect.java17 package android.media.effect.effects;
21 import android.media.effect.EffectContext;
22 import android.media.effect.FilterGraphEffect;
23 import android.media.effect.EffectUpdateListener;
DDocumentaryEffect.java17 package android.media.effect.effects;
19 import android.media.effect.EffectContext;
20 import android.media.effect.SingleFilterEffect;
DPosterizeEffect.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;
DCrossProcessEffect.java18 package android.media.effect.effects;
20 import android.media.effect.EffectContext;
21 import android.media.effect.SingleFilterEffect;
DNegativeEffect.java18 package android.media.effect.effects;
20 import android.media.effect.EffectContext;
21 import android.media.effect.SingleFilterEffect;
DFisheyeEffect.java18 package android.media.effect.effects;
20 import android.media.effect.EffectContext;
21 import android.media.effect.SingleFilterEffect;
DVignetteEffect.java18 package android.media.effect.effects;
20 import android.media.effect.EffectContext;
21 import android.media.effect.SingleFilterEffect;
DBlackWhiteEffect.java18 package android.media.effect.effects;
20 import android.media.effect.EffectContext;
21 import android.media.effect.SingleFilterEffect;

123456