/hardware/qcom/audio/voice_processing/ |
D | voice_processing.c | 171 static int effect_set_state(struct effect_s *effect, uint32_t state) in effect_set_state() argument 174 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() 185 BAD_STATE_ABORT(effect->state, state); in effect_set_state() 189 switch(effect->state) { in effect_set_state() 199 BAD_STATE_ABORT(effect->state, state); in effect_set_state() 203 switch(effect->state) { in effect_set_state() 209 session_set_fx_enabled(effect->session, effect->id, false); in effect_set_state() 215 BAD_STATE_ABORT(effect->state, state); in effect_set_state() [all …]
|
/hardware/interfaces/vibrator/1.3/example/ |
D | Vibrator.cpp | 67 Return<void> Vibrator::perform(V1_0::Effect effect, EffectStrength strength, perform_cb _hidl_cb) { in perform() argument 68 return perform<decltype(effect)>(effect, strength, _hidl_cb); in perform() 73 Return<void> Vibrator::perform_1_1(V1_1::Effect_1_1 effect, EffectStrength strength, in perform_1_1() argument 75 return perform<decltype(effect)>(effect, strength, _hidl_cb); in perform_1_1() 80 Return<void> Vibrator::perform_1_2(V1_2::Effect effect, EffectStrength strength, in perform_1_2() argument 82 return perform<decltype(effect)>(effect, strength, _hidl_cb); in perform_1_2() 103 Return<void> Vibrator::perform_1_3(Effect effect, EffectStrength strength, perform_cb _hidl_cb) { in perform_1_3() argument 104 return perform<decltype(effect)>(effect, strength, _hidl_cb); in perform_1_3() 109 Return<void> Vibrator::perform(Effect effect, EffectStrength strength, perform_cb _hidl_cb) { in perform() argument 114 ALOGI("Perform: Effect %s\n", effectToName(effect).c_str()); in perform() [all …]
|
D | Vibrator.h | 40 Return<void> perform(V1_0::Effect effect, EffectStrength strength, 44 Return<void> perform_1_1(V1_1::Effect_1_1 effect, EffectStrength strength, 48 Return<void> perform_1_2(V1_2::Effect effect, EffectStrength strength, 54 Return<void> perform_1_3(Effect effect, EffectStrength strength, perform_cb _hidl_cb) override; 57 Return<void> perform(Effect effect, EffectStrength strength, perform_cb _hidl_cb); 59 Return<void> perform(T effect, EffectStrength strength, perform_cb _hidl_cb); 65 static const std::string effectToName(Effect effect); 66 static uint32_t effectToMs(Effect effect, Status* status);
|
/hardware/interfaces/vibrator/aidl/vts/ |
D | VtsHalVibratorTargetTest.cpp | 117 for (Effect effect : kEffects) { in TEST_P() local 119 std::find(supported.begin(), supported.end(), effect) != supported.end(); in TEST_P() 123 Status status = vibrator->perform(effect, strength, nullptr /*callback*/, &lengthMs); in TEST_P() 126 EXPECT_TRUE(status.isOk()) << toString(effect) << " " << toString(strength); in TEST_P() 131 << toString(effect) << " " << toString(strength); in TEST_P() 144 for (Effect effect : kEffects) { in TEST_P() local 146 std::find(supported.begin(), supported.end(), effect) != supported.end(); in TEST_P() 154 Status status = vibrator->perform(effect, strength, callback, &lengthMs); in TEST_P() 175 for (Effect effect : kEffects) { in TEST_P() local 179 Status status = vibrator->perform(effect, strength, callback, &lengthMs); in TEST_P() [all …]
|
/hardware/interfaces/audio/effect/all-versions/default/ |
D | Android.bp | 2 name: "android.hardware.audio.effect-impl_default", 48 name: "android.hardware.audio.effect@2.0-impl", 49 defaults: ["android.hardware.audio.effect-impl_default"], 53 "android.hardware.audio.effect@2.0", 63 name: "android.hardware.audio.effect@4.0-impl", 64 defaults: ["android.hardware.audio.effect-impl_default"], 68 "android.hardware.audio.effect@4.0", 78 name: "android.hardware.audio.effect@5.0-impl", 79 defaults: ["android.hardware.audio.effect-impl_default"], 83 "android.hardware.audio.effect@5.0", [all …]
|
D | AudioBufferManager.h | 20 #include PATH(android/hardware/audio/effect/FILE_VERSION/types.h) 30 using ::android::hardware::audio::effect::CPP_VERSION::AudioBuffer; 36 namespace effect { 63 using ::android::hardware::audio::effect::CPP_VERSION::implementation::AudioBufferWrapper; 73 friend class hardware::audio::effect::CPP_VERSION::implementation::AudioBufferWrapper;
|
D | Conversions.h | 20 #include PATH(android/hardware/audio/effect/FILE_VERSION/types.h) 29 namespace effect { 33 using ::android::hardware::audio::effect::CPP_VERSION::EffectDescriptor;
|
/hardware/interfaces/audio/effect/4.0/ |
D | IEffectsFactory.hal | 17 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 …]
|
D | IEffect.hal | 17 package android.hardware.audio.effect@4.0; 24 * Initialize effect engine--all configurations return to default. 47 * Reset the effect engine. Keep configuration but resets state and buffer 72 * effect implementation must set EFFECT_FLAG_DEVICE_IND flag in its 85 * effect engine. The effect implementation must set EFFECT_FLAG_VOLUME_CTRL 86 * flag in its descriptor to receive this command. The effect engine must 87 * return the volume that should be applied before the effect is 88 * processed. The overall volume (the volume actually applied by the effect 102 * Notify the effect of the volume change. The effect implementation must 115 * Set the audio mode. The effect implementation must set [all …]
|
D | types.hal | 17 package android.hardware.audio.effect@4.0; 33 * Definitions for flags field of effect descriptor. 50 * | | | 3 exclusive (only effect in the insert chain) 83 * | | | accelerated effect processor, reads back 87 * | | | function is transparent. The effect interface 88 * | | | is only used to control the effect engine. 101 * | Effect offload | 22 | 0 The effect cannot be offloaded to an audio DSP 102 * | supported | | 1 The effect can be offloaded to an audio DSP 104 * | Process | 23 | 0 The effect implements a process function. 105 * | function | | 1 The effect does not implement a process [all …]
|
/hardware/interfaces/audio/effect/5.0/ |
D | IEffectsFactory.hal | 17 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 …]
|
D | IEffect.hal | 17 package android.hardware.audio.effect@5.0; 24 * Initialize effect engine--all configurations return to default. 47 * Reset the effect engine. Keep configuration but resets state and buffer 72 * effect implementation must set EFFECT_FLAG_DEVICE_IND flag in its 85 * effect engine. The effect implementation must set EFFECT_FLAG_VOLUME_CTRL 86 * flag in its descriptor to receive this command. The effect engine must 87 * return the volume that should be applied before the effect is 88 * processed. The overall volume (the volume actually applied by the effect 102 * Notify the effect of the volume change. The effect implementation must 115 * Set the audio mode. The effect implementation must set [all …]
|
D | types.hal | 17 package android.hardware.audio.effect@5.0; 33 * Definitions for flags field of effect descriptor. 50 * | | | 3 exclusive (only effect in the insert chain) 84 * | | | accelerated effect processor, reads back 88 * | | | function is transparent. The effect interface 89 * | | | is only used to control the effect engine. 102 * | Effect offload | 22 | 0 The effect cannot be offloaded to an audio DSP 103 * | supported | | 1 The effect can be offloaded to an audio DSP 105 * | Process | 23 | 0 The effect implements a process function. 106 * | function | | 1 The effect does not implement a process [all …]
|
/hardware/interfaces/audio/effect/6.0/ |
D | IEffectsFactory.hal | 17 package android.hardware.audio.effect@6.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 51 * @param device identifies the sink or source device this effect is directed to in the [all …]
|
D | IEffect.hal | 17 package android.hardware.audio.effect@6.0; 24 * Initialize effect engine--all configurations return to default. 47 * Reset the effect engine. Keep configuration but resets state and buffer 72 * effect implementation must set EFFECT_FLAG_DEVICE_IND flag in its 85 * effect engine. The effect implementation must set EFFECT_FLAG_VOLUME_CTRL 86 * flag in its descriptor to receive this command. The effect engine must 87 * return the volume that should be applied before the effect is 88 * processed. The overall volume (the volume actually applied by the effect 102 * Notify the effect of the volume change. The effect implementation must 115 * Set the audio mode. The effect implementation must set [all …]
|
D | types.hal | 17 package android.hardware.audio.effect@6.0; 33 * Definitions for flags field of effect descriptor. 50 * | | | 3 exclusive (only effect in the insert chain) 84 * | | | accelerated effect processor, reads back 88 * | | | function is transparent. The effect interface 89 * | | | is only used to control the effect engine. 102 * | Effect offload | 22 | 0 The effect cannot be offloaded to an audio DSP 103 * | supported | | 1 The effect can be offloaded to an audio DSP 105 * | Process | 23 | 0 The effect implements a process function. 106 * | function | | 1 The effect does not implement a process [all …]
|
/hardware/interfaces/audio/effect/2.0/ |
D | IEffectsFactory.hal | 17 package android.hardware.audio.effect@2.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 …]
|
D | IEffect.hal | 17 package android.hardware.audio.effect@2.0; 24 * Initialize effect engine--all configurations return to default. 49 * Reset the effect engine. Keep configuration but resets state and buffer 75 * effect implementation must set EFFECT_FLAG_DEVICE_IND flag in its 89 * effect engine. The effect implementation must set EFFECT_FLAG_VOLUME_CTRL 90 * flag in its descriptor to receive this command. The effect engine must 91 * return the volume that should be applied before the effect is 92 * processed. The overall volume (the volume actually applied by the effect 107 * Notify the effect of the volume change. The effect implementation must 120 * Set the audio mode. The effect implementation must set [all …]
|
D | types.hal | 17 package android.hardware.audio.effect@2.0; 33 * Definitions for flags field of effect descriptor. 50 * | | | 3 exclusive (only effect in the insert chain) 83 * | | | accelerated effect processor, reads back 87 * | | | function is transparent. The effect interface 88 * | | | is only used to control the effect engine. 101 * | Effect offload | 22 | 0 The effect cannot be offloaded to an audio DSP 102 * | supported | | 1 The effect can be offloaded to an audio DSP 104 * | Process | 23 | 0 The effect implements a process function. 105 * | function | | 1 The effect does not implement a process [all …]
|
/hardware/interfaces/audio/effect/all-versions/vts/functional/ |
D | VtsHalAudioEffectTargetTest.cpp | 21 #include PATH(android/hardware/audio/effect/FILE_VERSION/IEffect.h) 22 #include PATH(android/hardware/audio/effect/FILE_VERSION/IEffectsFactory.h) 23 #include PATH(android/hardware/audio/effect/FILE_VERSION/IEqualizerEffect.h) 24 #include PATH(android/hardware/audio/effect/FILE_VERSION/ILoudnessEnhancerEffect.h) 25 #include PATH(android/hardware/audio/effect/FILE_VERSION/types.h) 47 using namespace ::android::hardware::audio::effect::CPP_VERSION; 97 sp<IEffect> effect; in TEST_P() local 106 effect = result; in TEST_P() 111 EXPECT_NE(nullptr, effect.get()); in TEST_P() 175 ASSERT_NE(nullptr, effect.get()); in SetUp() [all …]
|
/hardware/interfaces/audio/ |
D | README | 10 |-- common <== code common to audio core and effect API 14 | `-- all_versions <== code common to all version of both core and effect API 15 | |-- default <== implementation shared code between core and effect impl 27 `-- effect <== idem for the effect API
|
/hardware/interfaces/vibrator/1.2/vts/functional/ |
D | VtsHalVibratorV1_2TargetTest.cpp | 74 for (const auto& effect : hidl_enum_range<Effect>()) { in TEST_P() local 76 EXPECT_OK(vibrator->perform_1_2(effect, strength, validatePerformEffect)); in TEST_P() 85 Effect effect = *std::prev(hidl_enum_range<Effect>().end()); in TEST_P() local 86 Effect badEffect = static_cast<Effect>(static_cast<int32_t>(effect) + 1); in TEST_P() 95 Effect effect = *hidl_enum_range<Effect>().begin(); in TEST_P() local 96 Effect badEffect = static_cast<Effect>(static_cast<int32_t>(effect) - 1); in TEST_P()
|
/hardware/interfaces/ |
D | current.txt | 19 fa8fbae3d1da3c264e4f3110728076abc09b4e65f12af6ae136367328de988ab android.hardware.audio.effect@2.0:… 20 ca4752545d54547ff069eae161af7550cb5f5a7e8b60316ddd132a30906a68e7 android.hardware.audio.effect@2.0:… 21 d2b8af988dc66f514d886bcee44b440d8034bc2a762f7161717ef3c956073067 android.hardware.audio.effect@2.0:… 22 611bc09c75e796f3512b1ca6be508b0a9ba996759b8a2c60507784ff58076229 android.hardware.audio.effect@2.0:… 23 36a57369dfdc75180e8b64ae80b1970db8f6d9085dbff6ca931715038cc056e1 android.hardware.audio.effect@2.0:… 24 d2aa2df6d189c580f5be8460fa0ff4134d9c05a383f3204659baee426a6f0edf android.hardware.audio.effect@2.0:… 25 217f9161983a48d3bf3faeb158f868aa8bf0ce25889e4ee3d2bab1a2e8d33e77 android.hardware.audio.effect@2.0:… 26 c2b38bc07991e880c83ca8cb88181411eeef708b8b936aedd2f2e0acade7df69 android.hardware.audio.effect@2.0:… 27 2ff9f9704be5f167745b4de790e9dafc3cc4719e2f6e2e5497085e679853cfe7 android.hardware.audio.effect@2.0:… 28 c31447fb02dbc8b56c359941dad22f416511860173c5c5fd278d1bf2312b13de android.hardware.audio.effect@2.0:… [all …]
|
/hardware/interfaces/vibrator/1.3/vts/functional/ |
D | VtsHalVibratorV1_3TargetTest.cpp | 87 for (const auto& effect : hidl_enum_range<Effect>()) { in TEST_P() local 89 EXPECT_OK(vibrator->perform_1_3(effect, strength, validatePerformEffect)); in TEST_P() 98 Effect effect = *std::prev(hidl_enum_range<Effect>().end()); in TEST_P() local 99 Effect badEffect = static_cast<Effect>(static_cast<int32_t>(effect) + 1); in TEST_P() 108 Effect effect = *hidl_enum_range<Effect>().begin(); in TEST_P() local 109 Effect badEffect = static_cast<Effect>(static_cast<int32_t>(effect) - 1); in TEST_P()
|
/hardware/interfaces/tests/extension/vibrator/aidl/default/ |
D | CustomVibrator.cpp | 36 ndk::ScopedAStatus CustomVibrator::perform(VendorEffect effect, in perform() argument 41 if (effect != VendorEffect::CRACKLE && effect != VendorEffect::WIGGLE) { in perform()
|