Home
last modified time | relevance | path

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

12345678910>>...22

/aosp12/frameworks/av/media/libeffects/preprocessing/
H A DPreProcessing.cpp260 effect->session->config = effect->session->apm->GetConfig(); in Agc2Init()
265 effect->session->apm->ApplyConfig(effect->session->config); in Agc2Init()
271 effect->session->config = effect->session->apm->GetConfig(); in AgcInit()
275 effect->session->apm->ApplyConfig(effect->session->config); in AgcInit()
326 effect->session->config = effect->session->apm->GetConfig(); in Agc2GetParameter()
727 effect->ops->disable(effect); in Effect_SetState()
741 status = effect->ops->create(effect); in Effect_SetState()
760 effect->ops->disable(effect); in Effect_SetState()
781 effect->ops->enable(effect); in Effect_SetState()
1114 effect->ops->init(effect); in PreProcessingFx_Command()
[all …]
/aosp12/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
H A DMediaAudioEffectTest.java177 effect.release(); in test1_0ConstructorFromType()
213 effect.release(); in test1_1ConstructorFromUuid()
239 if (effect != null) { in test1_2ConstructorUnknownType()
262 effect.release(); in test1_3GetEnabledAfterRelease()
299 effect.release(); in test1_4InsertOnMediaPlayer()
331 effect.release(); in test1_5AuxiliaryOnMediaPlayer()
378 effect.release(); in test1_6AuxiliaryOnMediaPlayerFailure()
418 effect.release(); in test1_7AuxiliaryOnAudioTrack()
480 effect.release(); in test2_1SetEnabledAfterRelease()
756 effect.release(); in test3_7SetParameterAfterRelease()
[all …]
/aosp12/hardware/interfaces/audio/effect/all-versions/default/
H A DAndroid.bp11 name: "android.hardware.audio.effect-impl_default",
56 name: "android.hardware.audio.effect@2.0-impl",
61 "android.hardware.audio.effect@2.0",
62 "android.hardware.audio.effect@2.0-util",
77 "android.hardware.audio.effect@4.0",
78 "android.hardware.audio.effect@4.0-util",
93 "android.hardware.audio.effect@5.0",
94 "android.hardware.audio.effect@5.0-util",
109 "android.hardware.audio.effect@6.0",
110 "android.hardware.audio.effect@6.0-util",
[all …]
/aosp12/hardware/qcom/audio/voice_processing/
H A Dvoice_processing.c174 ALOGV("effect_set_state() id %d, new %d old %d", effect->id, state, effect->state); in effect_set_state()
177 switch(effect->state) { in effect_set_state()
179 session_set_fx_enabled(effect->session, effect->id, false); in effect_set_state()
189 switch(effect->state) { in effect_set_state()
209 session_set_fx_enabled(effect->session, effect->id, false); in effect_set_state()
229 session_set_fx_enabled(effect->session, effect->id, true); in effect_set_state()
240 effect->state = state; in effect_set_state()
248 effect->id = id; in effect_init()
257 effect->session = session; in effect_create()
498 if (effect == NULL) { in fx_process()
[all …]
/aosp12/hardware/interfaces/audio/effect/all-versions/default/util/
H A DAndroid.bp11 name: "android.hardware.audio.effect-util_default",
39 name: "android.hardware.audio.effect@2.0-util",
44 "android.hardware.audio.effect@2.0",
54 name: "android.hardware.audio.effect@4.0-util",
59 "android.hardware.audio.effect@4.0",
69 name: "android.hardware.audio.effect@5.0-util",
74 "android.hardware.audio.effect@5.0",
89 "android.hardware.audio.effect@6.0",
104 "android.hardware.audio.effect@7.0",
127 "android.hardware.audio.effect@7.0",
[all …]
/aosp12/hardware/interfaces/vibrator/1.3/example/
H A DVibrator.cpp68 return perform<decltype(effect)>(effect, strength, _hidl_cb); in perform()
75 return perform<decltype(effect)>(effect, strength, _hidl_cb); in perform_1_1()
82 return perform<decltype(effect)>(effect, strength, _hidl_cb); in perform_1_2()
104 return perform<decltype(effect)>(effect, strength, _hidl_cb); in perform_1_3()
114 ALOGI("Perform: Effect %s\n", effectToName(effect).c_str()); in perform()
123 ms = effectToMs(effect, &status); in perform()
138 if (effect < *validRange.begin() || effect > *std::prev(validRange.end())) { in perform()
206 const std::string Vibrator::effectToName(Effect effect) { in effectToName() argument
207 return toString(effect); in effectToName()
210 uint32_t Vibrator::effectToMs(Effect effect, Status* status) { in effectToMs() argument
[all …]
/aosp12/frameworks/av/services/audioflinger/
H A DDeviceEffectManager.cpp51 for (auto& effect : mDeviceEffects) { in onCreateAudioPatch() local
66 for (auto& effect : mDeviceEffects) { in onReleaseAudioPatch() local
82 sp<DeviceEffectProxy> effect; in createEffect_l() local
96 effect = iter->second; in createEffect_l()
109 effect->init(patches); in createEffect_l()
115 *enabled = (int)effect->isEnabled(); in createEffect_l()
144 sp<EffectHalInterface> *effect) { in createEffectHal() argument
180 mDeviceEffects.erase(effect->device()); in removeEffect()
192 if (effect == nullptr) { in disconnectEffectHandle()
196 bool remove = (effect->removeHandle(handle) == 0) && (!effect->isPinned() || unpinIfLast); in disconnectEffectHandle()
[all …]
H A DDeviceEffectManager.h45 size_t removeEffect(const sp<DeviceEffectProxy>& effect);
48 sp<EffectHalInterface> *effect);
50 sp<EffectHalInterface> effect) { in addEffectToHal() argument
51 return mAudioFlinger.addEffectToHal(deviceId, hwModuleId, effect); in addEffectToHal()
54 sp<EffectHalInterface> effect) { in removeEffectFromHal() argument
153 sp<EffectHalInterface> *effect) override { in createEffectHal() argument
190 void checkSuspendOnEffectEnabled(const sp<EffectBase>& effect __unused, in checkSuspendOnEffectEnabled()
195 void onEffectEnable(const sp<EffectBase>& effect __unused) override {} in onEffectEnable()
196 void onEffectDisable(const sp<EffectBase>& effect __unused) override {} in onEffectDisable()
208 return mManager.addEffectToHal(deviceId, hwModuleId, effect); in addEffectToHal()
[all …]
/aosp12/frameworks/base/services/core/java/com/android/server/vibrator/
H A DVibrationThread.java129 CombinedVibration effect = vib.getEffect(); in VibrationThread() local
346 segmentIndex = effect.getRepeatIndex(); in nextVibrateStep()
374 .addNext(effect) in toSequential()
680 this(SystemClock.uptimeMillis() + effect.getDelays().get(0), effect, /* index= */ 0); in StartVibrateStep()
685 sequentialEffect = effect; in StartVibrateStep()
755 CombinedVibration effect) { in createEffectToVibratorMapping() argument
905 public final VibrationEffect.Composed effect; field in VibrationThread.SingleVibratorStep
926 this.effect = effect; in SingleVibratorStep()
1111 : effect.getSegments().size(); in play()
1168 : effect.getSegments().size(); in play()
[all …]
H A DVibration.java95 Vibration(IBinder token, int id, CombinedVibration effect, in Vibration() argument
98 this.mEffect = effect; in Vibration()
138 public void addFallback(int effectId, VibrationEffect effect) { in addFallback() argument
139 mFallbacks.put(effectId, effect); in addFallback()
167 return CombinedVibration.createParallel(fn.apply(effect)); in transformCombinedEffect()
182 for (CombinedVibration effect : effects) { in transformCombinedEffect()
183 combination.addNext(transformCombinedEffect(effect, fn)); in transformCombinedEffect()
233 mEffect = effect; in DebugInfo()
297 .addNext(effect) in dumpEffect()
304 for (int i = 0; i < effect.getEffects().size(); i++) { in dumpEffect()
[all …]
/aosp12/frameworks/av/media/libaudioclient/include/media/
H A DAudioEffect.h568 EffectClient(AudioEffect *effect) : mEffect(effect){} in EffectClient() argument
572 sp<AudioEffect> effect = mEffect.promote(); in controlStatusChanged() local
573 if (effect != 0) { in controlStatusChanged()
579 sp<AudioEffect> effect = mEffect.promote(); in enableStatusChanged() local
580 if (effect != 0) { in enableStatusChanged()
581 effect->enableStatusChanged(enabled); in enableStatusChanged()
589 if (effect != 0) { in commandExecuted()
596 if (effect != 0) { in framesProcessed()
597 effect->framesProcessed(frames); in framesProcessed()
606 if (effect != 0) { in binderDied()
[all …]
/aosp12/frameworks/base/libs/hwui/jni/
H A DPathEffect.cpp12 SkPathEffect* effect = reinterpret_cast<SkPathEffect*>(effectHandle); in destructor() local
13 SkSafeUnref(effect); in destructor()
20 SkPathEffect* effect = SkPathEffect::MakeCompose(sk_ref_sp(outer), in Compose_constructor() local
22 return reinterpret_cast<jlong>(effect); in Compose_constructor()
29 SkPathEffect* effect = SkPathEffect::MakeSum(sk_ref_sp(first), in Sum_constructor() local
31 return reinterpret_cast<jlong>(effect); in Sum_constructor()
44 return reinterpret_cast<jlong>(effect); in Dash_constructor()
53 return reinterpret_cast<jlong>(effect); in OneD_constructor()
57 SkPathEffect* effect = SkCornerPathEffect::Make(radius).release(); in Corner_constructor() local
58 return reinterpret_cast<jlong>(effect); in Corner_constructor()
[all …]
/aosp12/frameworks/native/cmds/idlcli/vibrator/
H A DCommandCompose.cpp59 CompositeEffect effect; in doArgs() local
60 if (auto delay = args.pop<decltype(effect.delayMs)>()) { in doArgs()
61 effect.delayMs = *delay; in doArgs()
62 std::cout << "Delay: " << effect.delayMs << std::endl; in doArgs()
67 if (auto primitive = args.pop<decltype(effect.primitive)>()) { in doArgs()
68 effect.primitive = *primitive; in doArgs()
69 std::cout << "Primitive: " << toString(effect.primitive) << std::endl; in doArgs()
74 if (auto scale = args.pop<decltype(effect.scale)>(); in doArgs()
76 effect.scale = *scale; in doArgs()
77 std::cout << "Scale: " << effect.scale << std::endl; in doArgs()
[all …]
/aosp12/hardware/interfaces/audio/effect/all-versions/vts/functional/
H A DVtsHalAudioEffectTargetTest.cpp110 sp<IEffect> effect; in TEST_P() local
119 effect = result; in TEST_P()
124 EXPECT_NE(nullptr, effect.get()); in TEST_P()
188 ASSERT_NE(nullptr, effect.get()); in SetUp()
196 effect.clear(); in TearDown()
212 sp<IEffect> effect; member in AudioEffectHidlTest
225 effect = result; in findAndCreateEffect()
276 Return<Result> ret = effect->close(); in TEST_P()
392 namespace effect { namespace
457 ret = effect->enable(); in TEST_P()
[all …]
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/
H A DDeviceVibrationEffectAdapterTest.java74 VibrationEffect.Composed effect = new VibrationEffect.Composed(Arrays.asList( in testPrebakedAndPrimitiveSegments_returnsOriginalSegment() local
83 assertEquals(effect, mAdapter.apply(effect, createVibratorInfo(EMPTY_FREQUENCY_MAPPING))); in testPrebakedAndPrimitiveSegments_returnsOriginalSegment()
84 assertEquals(effect, mAdapter.apply(effect, createVibratorInfo(TEST_FREQUENCY_MAPPING))); in testPrebakedAndPrimitiveSegments_returnsOriginalSegment()
89 VibrationEffect.Composed effect = new VibrationEffect.Composed(Arrays.asList( in testStepAndRampSegments_withoutPwleCapability_convertsRampsToSteps() local
102 assertTrue(adaptedEffect.getSegments().size() > effect.getSegments().size()); in testStepAndRampSegments_withoutPwleCapability_convertsRampsToSteps()
103 assertTrue(adaptedEffect.getRepeatIndex() >= effect.getRepeatIndex()); in testStepAndRampSegments_withoutPwleCapability_convertsRampsToSteps()
112 VibrationEffect.Composed effect = new VibrationEffect.Composed(Arrays.asList( in testStepAndRampSegments_withPwleCapability_convertsStepsToRamps() local
134 assertEquals(expected, mAdapter.apply(effect, info)); in testStepAndRampSegments_withPwleCapability_convertsStepsToRamps()
139 VibrationEffect.Composed effect = new VibrationEffect.Composed(Arrays.asList( in testStepAndRampSegments_withEmptyFreqMapping_returnsSameAmplitudesAndZeroFreq() local
165 assertEquals(expected, mAdapter.apply(effect, info)); in testStepAndRampSegments_withEmptyFreqMapping_returnsSameAmplitudesAndZeroFreq()
[all …]
/aosp12/hardware/interfaces/audio/effect/6.0/
H A DIEffect.hal17 package android.hardware.audio.effect@6.0;
85 * effect engine. The effect implementation must set EFFECT_FLAG_VOLUME_CTRL
102 * Notify the effect of the volume change. The effect implementation must
216 * the effect is attached to.
218 * @param param effect offload descriptor.
224 * Returns the effect descriptor.
227 * @return descriptor effect descriptor.
246 * the effect.
340 * application and the effect.
370 * application and the effect.
[all …]
/aosp12/hardware/interfaces/audio/effect/7.0/
H A DIEffect.hal17 package android.hardware.audio.effect@7.0;
83 * effect engine. The effect implementation must set EFFECT_FLAG_VOLUME_CTRL
100 * Notify the effect of the volume change. The effect implementation must
214 * the effect is attached to.
216 * @param param effect offload descriptor.
222 * Returns the effect descriptor.
225 * @return descriptor effect descriptor.
244 * the effect.
337 * application and the effect.
367 * application and the effect.
[all …]
/aosp12/hardware/interfaces/vibrator/aidl/vts/
H A DVtsHalVibratorTargetTest.cpp496 effect.delayMs = 0; in TEST_P()
503 effect.scale = 0.0f; in TEST_P()
506 effect.scale = 1.0f; in TEST_P()
524 CompositeEffect effect; in TEST_P() local
526 effect.delayMs = 1; in TEST_P()
528 effect.scale = 1.0f; in TEST_P()
549 CompositeEffect effect; in TEST_P() local
551 effect.delayMs = 1; in TEST_P()
553 effect.scale = 1.0f; in TEST_P()
587 effect.delayMs = 0; in TEST_P()
[all …]
/aosp12/frameworks/base/core/tests/coretests/src/android/os/
H A DVibrationEffectTest.java72 assertNull(effect); in getRingtones_noPrebakedRingtones()
80 assertNull(effect); in getRingtones_noPrebakedRingtoneForUri()
90 assertEquals(expectedEffect, effect); in getRingtones_getPrebakedRingtone()
215 assertEquals(effect, effect.resolve(51)); in testResolvePrebaked()
223 assertEquals(effect, effect.resolve(51)); in testResolveComposed()
259 assertEquals(effect, effect.applyEffectStrength(VibrationEffect.EFFECT_STRENGTH_LIGHT)); in testApplyEffectStrengthComposed()
291 VibrationEffect.Composed scaledUp = effect.scale(1.5f); in testScalePrebaked()
292 assertEquals(effect, scaledUp); in testScalePrebaked()
295 assertEquals(effect, scaledDown); in testScalePrebaked()
300 VibrationEffect.Composed effect = in testScaleComposed() local
[all …]
/aosp12/hardware/interfaces/audio/effect/2.0/
H A DIEffect.hal17 package android.hardware.audio.effect@2.0;
89 * effect engine. The effect implementation must set EFFECT_FLAG_VOLUME_CTRL
107 * Notify the effect of the volume change. The effect implementation must
230 * the effect is attached to.
232 * @param param effect offload descriptor.
239 * Returns the effect descriptor.
242 * @return descriptor effect descriptor.
262 * the effect.
359 * application and the effect.
390 * application and the effect.
[all …]
/aosp12/hardware/interfaces/audio/effect/4.0/
H A DIEffect.hal17 package android.hardware.audio.effect@4.0;
85 * effect engine. The effect implementation must set EFFECT_FLAG_VOLUME_CTRL
102 * Notify the effect of the volume change. The effect implementation must
216 * the effect is attached to.
218 * @param param effect offload descriptor.
224 * Returns the effect descriptor.
227 * @return descriptor effect descriptor.
246 * the effect.
340 * application and the effect.
370 * application and the effect.
[all …]
H A DIEffectsFactory.hal17 package android.hardware.audio.effect@4.0;
27 * @return result list of effect descriptors.
32 * Returns a descriptor of a particular effect.
35 * @return result effect descriptor.
40 * Creates an effect engine of the specified type. To release the effect
41 * engine, it is necessary to release references to the returned effect
44 * @param uid effect uuid.
45 * @param session audio session to which this effect instance will be
49 * @param ioHandle identifies the output or input stream this effect is
52 * @return result the interface for the created effect.
[all …]
/aosp12/hardware/interfaces/audio/effect/5.0/
H A DIEffect.hal17 package android.hardware.audio.effect@5.0;
85 * effect engine. The effect implementation must set EFFECT_FLAG_VOLUME_CTRL
102 * Notify the effect of the volume change. The effect implementation must
216 * the effect is attached to.
218 * @param param effect offload descriptor.
224 * Returns the effect descriptor.
227 * @return descriptor effect descriptor.
246 * the effect.
340 * application and the effect.
370 * application and the effect.
[all …]
H A DIEffectsFactory.hal17 package android.hardware.audio.effect@5.0;
27 * @return result list of effect descriptors.
32 * Returns a descriptor of a particular effect.
35 * @return result effect descriptor.
40 * Creates an effect engine of the specified type. To release the effect
41 * engine, it is necessary to release references to the returned effect
44 * @param uid effect uuid.
45 * @param session audio session to which this effect instance will be
49 * @param ioHandle identifies the output or input stream this effect is
52 * @return result the interface for the created effect.
[all …]
/aosp12/frameworks/base/core/java/android/content/integrity/
H A DRule.java66 public Rule(@NonNull IntegrityFormula formula, @Effect int effect) { in Rule() argument
67 checkArgument(isValidEffect(effect), "Unknown effect: %d", effect); in Rule() local
69 this.mEffect = effect; in Rule()
133 private static String effectToString(int effect) { in effectToString() argument
134 switch (effect) { in effectToString()
140 throw new IllegalArgumentException("Unknown effect " + effect); in effectToString()
144 private static boolean isValidEffect(int effect) { in isValidEffect() argument
145 return effect == DENY || effect == FORCE_ALLOW; in isValidEffect()

12345678910>>...22