Home
last modified time | relevance | path

Searched refs:mEffect (Results 1 – 25 of 32) sorted by relevance

12

/frameworks/base/core/java/android/content/integrity/
DRule.java64 private final @Effect int mEffect; field in Rule
69 this.mEffect = effect; in Rule()
74 mEffect = in.readInt(); in Rule()
99 dest.writeInt(mEffect); in writeToParcel()
108 return mEffect; in getEffect()
113 return String.format("Rule: %s, %s", mFormula, effectToString(mEffect)); in toString()
125 return mEffect == that.mEffect && Objects.equals(mFormula, that.mFormula); in equals()
130 return Objects.hash(mFormula, mEffect); in hashCode()
/frameworks/av/media/libaudiohal/impl/
DEffectHalHidl.cpp51 mEffect(effect), mEffectId(effectId), mBuffersChanged(true), mEfGroup(nullptr) { in EffectHalHidl()
71 if (mEffect != 0) { in ~EffectHalHidl()
73 mEffect.clear(); in ~EffectHalHidl()
124 Return<void> ret = mEffect->prepareForProcessing( in prepareForProcessing()
158 if (mEffect == 0 || mInBuffer == 0 || mOutBuffer == 0) return NO_INIT; in processImpl()
190 Return<Result> ret = mEffect->setProcessBuffers( in setProcessBuffers()
204 if (mEffect == 0) return NO_INIT; in command()
221 Return<void> ret = mEffect->command(cmdCode, hidlData, *replySize, in command()
237 if (mEffect == 0) return NO_INIT; in getDescriptor()
239 Return<void> ret = mEffect->getDescriptor( in getDescriptor()
[all …]
DEffectConversionHelperAidl.cpp84 mEffect(std::move(effect)), in EffectConversionHelperAidl()
185 RETURN_STATUS_IF_ERROR(statusTFromBinderStatus(mEffect->getState(&state))); in handleSetConfig()
192 statusTFromBinderStatus(mEffect->open(common, std::nullopt, &openReturn))); in handleSetConfig()
198 RETURN_STATUS_IF_ERROR(statusTFromBinderStatus(mEffect->setParameter(aidlParam))); in handleSetConfig()
208 mStatusQ = std::static_pointer_cast<EffectProxy>(mEffect)->getStatusMQ(); in updateMqsAndEventFlags()
218 mInputQ = std::static_pointer_cast<EffectProxy>(mEffect)->getInputMQ(); in updateDataMqs()
219 mOutputQ = std::static_pointer_cast<EffectProxy>(mEffect)->getOutputMQ(); in updateDataMqs()
236 RETURN_STATUS_IF_ERROR(statusTFromBinderStatus(mEffect->getParameter( in handleGetConfig()
262 return *(int *)pReplyData = statusTFromBinderStatus(mEffect->command(CommandId::RESET)); in handleReset()
274 return *(int *)pReplyData = statusTFromBinderStatus(mEffect->command(CommandId::START)); in handleEnable()
[all …]
DEffectHalAidl.cpp75 mEffect(effect), in EffectHalAidl()
80 assert(mEffect != nullptr); in EffectHalAidl()
85 if (mEffect) { in ~EffectHalAidl()
87 std::static_pointer_cast<EffectProxy>(mEffect)->destroy(); in ~EffectHalAidl()
89 mFactory->destroyEffect(mEffect); in ~EffectHalAidl()
179 if (mConversion->isBypassing() || !mEffect->getState(&state).isOk() || in process()
328 RETURN_STATUS_IF_ERROR(statusTFromBinderStatus(mEffect->getDescriptor(&aidlDesc))); in getDescriptor()
337 mEffect->command(CommandId::STOP); in close()
338 return statusTFromBinderStatus(mEffect->close()); in close()
343 return mEffect->dump(fd, nullptr, 0); in dump()
DEffectHalAidl.h62 return mEffect; in getIEffect()
72 const std::shared_ptr<::aidl::android::hardware::audio::effect::IEffect> mEffect; variable
/frameworks/native/cmds/idlcli/vibrator/
DCommandAlwaysOnEnable.cpp53 if (auto effect = args.pop<decltype(mEffect)>()) { in doArgs()
54 mEffect = *effect; in doArgs()
55 std::cout << "Effect: " << toString(mEffect) << std::endl; in doArgs()
79 auto status = hal->call(&aidl::IVibrator::alwaysOnEnable, mId, mEffect, mStrength); in doMain()
93 Effect mEffect; member in android::idlcli::vibrator::CommandAlwaysOnEnable
DCommandPerform.cpp88 if (auto effect = args.pop<decltype(mEffect)>()) { in doArgs()
89 mEffect = *effect; in doArgs()
90 std::cout << "Effect: " << toString(mEffect) << std::endl; in doArgs()
127 auto status = hal->call(&aidl::IVibrator::perform, mEffect, mStrength, callback, in doMain()
143 hal->call(&V1_3::IVibrator::perform_1_3, static_cast<V1_3::Effect>(mEffect), in doMain()
147 hal->call(&V1_2::IVibrator::perform_1_2, static_cast<V1_2::Effect>(mEffect), in doMain()
151 static_cast<V1_1::Effect_1_1>(mEffect), in doMain()
154 hidlRet = hal->call(&V1_0::IVibrator::perform, static_cast<V1_0::Effect>(mEffect), in doMain()
179 Effect mEffect; member in android::idlcli::vibrator::CommandPerform
/frameworks/av/media/libaudiohal/impl/effectsAidlConversion/
DAidlConversionAgc1.cpp49 return statusTFromBinderStatus(mEffect->setParameter(aidlParam)); in setParameterLevel()
57 return statusTFromBinderStatus(mEffect->setParameter(aidlParam)); in setParameterGain()
65 return statusTFromBinderStatus(mEffect->setParameter(aidlParam)); in setParameterLimiterEnable()
96 return statusTFromBinderStatus(mEffect->setParameter(aidlParam)); in setParameter()
105 RETURN_STATUS_IF_ERROR(statusTFromBinderStatus(mEffect->getParameter(id, &aidlParam))); in getParameterLevel()
116 RETURN_STATUS_IF_ERROR(statusTFromBinderStatus(mEffect->getParameter(id, &aidlParam))); in getParameterGain()
127 RETURN_STATUS_IF_ERROR(statusTFromBinderStatus(mEffect->getParameter(id, &aidlParam))); in getParameterLimiterEnable()
DAidlConversionVisualizer.cpp83 return statusTFromBinderStatus(mEffect->setParameter(aidlParam)); in setParameter()
99 RETURN_STATUS_IF_ERROR(statusTFromBinderStatus(mEffect->getParameter(id, &aidlParam))); in getParameter()
108 RETURN_STATUS_IF_ERROR(statusTFromBinderStatus(mEffect->getParameter(id, &aidlParam))); in getParameter()
119 RETURN_STATUS_IF_ERROR(statusTFromBinderStatus(mEffect->getParameter(id, &aidlParam))); in getParameter()
127 RETURN_STATUS_IF_ERROR(statusTFromBinderStatus(mEffect->getParameter(id, &aidlParam))); in getParameter()
150 RETURN_STATUS_IF_ERROR(statusTFromBinderStatus(mEffect->getParameter(id, &aidlParam))); in visualizerCapture()
168 RETURN_STATUS_IF_ERROR(statusTFromBinderStatus(mEffect->getParameter(id, &aidlParam))); in visualizerMeasure()
DAidlConversionAgc2.cpp78 return statusTFromBinderStatus(mEffect->setParameter(aidlParam)); in setParameter()
94 RETURN_STATUS_IF_ERROR(statusTFromBinderStatus(mEffect->getParameter(id, &aidlParam))); in getParameter()
103 RETURN_STATUS_IF_ERROR(statusTFromBinderStatus(mEffect->getParameter(id, &aidlParam))); in getParameter()
112 RETURN_STATUS_IF_ERROR(statusTFromBinderStatus(mEffect->getParameter(id, &aidlParam))); in getParameter()
DAidlConversionAec.cpp73 RETURN_STATUS_IF_ERROR(statusTFromBinderStatus(mEffect->setParameter(aidlParam))); in setParameter()
78 return statusTFromBinderStatus(mEffect->setParameter(aidlParam)); in setParameter()
98 RETURN_STATUS_IF_ERROR(statusTFromBinderStatus(mEffect->getParameter(id, &aidlParam))); in getParameter()
108 RETURN_STATUS_IF_ERROR(statusTFromBinderStatus(mEffect->getParameter(id, &aidlParam))); in getParameter()
DAidlConversionSpatializer.cpp64 mEffect->getParameter(id, &aidlParam).getStatus() != in isSpatializerParameterSupported()
139 if (status_t status = statusTFromBinderStatus(mEffect->setParameter(aidlParam)); in setParameter()
147 return statusTFromBinderStatus(mEffect->setParameter(aidlParam)); in setParameter()
163 return statusTFromBinderStatus(mEffect->setParameter(aidlParam)); in setParameter()
202 statusTFromBinderStatus(mEffect->getParameter(id, &aidlParam))); in getParameter()
228 statusTFromBinderStatus(mEffect->getParameter(id, &aidlParam))); in getParameter()
239 statusTFromBinderStatus(mEffect->getParameter(id, &aidlParam))); in getParameter()
302 statusTFromBinderStatus(mEffect->getParameter(id, &aidlParam))); in getParameter()
310 statusTFromBinderStatus(mEffect->getParameter(id, &aidlParam))); in getParameter()
345 RETURN_STATUS_IF_ERROR(statusTFromBinderStatus(mEffect->getParameter(id, &aidlParam))); in getParameter()
DAidlConversionNoiseSuppression.cpp71 return statusTFromBinderStatus(mEffect->setParameter(aidlParam)); in setParameter()
87 RETURN_STATUS_IF_ERROR(statusTFromBinderStatus(mEffect->getParameter(id, &aidlParam))); in getParameter()
97 RETURN_STATUS_IF_ERROR(statusTFromBinderStatus(mEffect->getParameter(id, &aidlParam))); in getParameter()
DAidlConversionVirtualizer.cpp85 return statusTFromBinderStatus(mEffect->setParameter(aidlParam)); in setParameter()
107 RETURN_STATUS_IF_ERROR(statusTFromBinderStatus(mEffect->getParameter(id, &aidlParam))); in getParameter()
128 RETURN_STATUS_IF_ERROR(statusTFromBinderStatus(mEffect->getParameter(id, &aidlParam))); in getParameter()
148 RETURN_STATUS_IF_ERROR(statusTFromBinderStatus(mEffect->getParameter(id, &aidlParam))); in getParameter()
DAidlConversionVendorExtension.cpp56 return statusTFromBinderStatus(mEffect->setParameter(aidlParam)); in setParameter()
64 RETURN_STATUS_IF_ERROR(statusTFromBinderStatus(mEffect->getParameter(id, &aidlParam))); in getParameter()
DAidlConversionDownmix.cpp68 return statusTFromBinderStatus(mEffect->setParameter(aidlParam)); in setParameter()
83 RETURN_STATUS_IF_ERROR(statusTFromBinderStatus(mEffect->getParameter(id, &aidlParam))); in getParameter()
DAidlConversionLoudnessEnhancer.cpp66 return statusTFromBinderStatus(mEffect->setParameter(aidlParam)); in setParameter()
82 RETURN_STATUS_IF_ERROR(statusTFromBinderStatus(mEffect->getParameter(id, &aidlParam))); in getParameter()
DAidlConversionPresetReverb.cpp68 return statusTFromBinderStatus(mEffect->setParameter(aidlParam)); in setParameter()
84 RETURN_STATUS_IF_ERROR(statusTFromBinderStatus(mEffect->getParameter(id, &aidlParam))); in getParameter()
DAidlConversionBassBoost.cpp75 return statusTFromBinderStatus(mEffect->setParameter(aidlParam)); in setParameter()
92 RETURN_STATUS_IF_ERROR(statusTFromBinderStatus(mEffect->getParameter(id, &aidlParam))); in getParameter()
DAidlConversionEnvReverb.cpp67 RETURN_STATUS_IF_ERROR(statusTFromBinderStatus(mEffect->setParameter(aidlParam))); \
86 RETURN_STATUS_IF_ERROR(statusTFromBinderStatus(mEffect->getParameter(id, &aidlParam))); \
174 RETURN_STATUS_IF_ERROR(statusTFromBinderStatus(mEffect->setParameter(aidlParam))); in setParameter()
DAidlConversionDynamicsProcessing.cpp129 return statusTFromBinderStatus(mEffect->setParameter(aidlParam)); in setParameter()
142 RETURN_STATUS_IF_ERROR(statusTFromBinderStatus(mEffect->getParameter(id, &aidlParam))); in getParameter()
160 RETURN_STATUS_IF_ERROR(statusTFromBinderStatus(mEffect->getParameter(id, &aidlParam))); in getParameter()
316 RETURN_STATUS_IF_ERROR(statusTFromBinderStatus(mEffect->getParameter(id, &aidlParam))); in getChannelConfig()
371 RETURN_STATUS_IF_ERROR(statusTFromBinderStatus(mEffect->getParameter(id, &aidlParam))); in getEqBandConfig()
406 RETURN_STATUS_IF_ERROR(statusTFromBinderStatus(mEffect->getParameter(id, &aidlParam))); in getMbcBandConfig()
440 RETURN_STATUS_IF_ERROR(statusTFromBinderStatus(mEffect->getParameter(id, &aidlParam))); in getLimiterConfig()
/frameworks/base/core/java/android/os/
DCombinedVibration.java360 private final VibrationEffect mEffect; field in CombinedVibration.Mono
363 mEffect = VibrationEffect.CREATOR.createFromParcel(in); in Mono()
367 mEffect = effect; in Mono()
372 return mEffect; in getEffect()
377 return mEffect.getDuration(); in getDuration()
383 return mEffect.isHapticFeedbackCandidate(); in isHapticFeedbackCandidate()
389 mEffect.validate(); in validate()
396 VibrationEffect newEffect = transformation.transform(mEffect, param); in transform()
397 if (mEffect.equals(newEffect)) { in transform()
410 VibrationEffect newEffect = adapter.adaptToVibrator(vibratorId, mEffect); in adapt()
[all …]
/frameworks/av/media/libaudioclient/include/media/
DAudioEffect.h651 explicit EffectClient(const sp<AudioEffect>& effect) : mEffect(effect){} in EffectClient()
655 sp<AudioEffect> effect = mEffect.promote(); in controlStatusChanged()
662 sp<AudioEffect> effect = mEffect.promote(); in enableStatusChanged()
671 sp<AudioEffect> effect = mEffect.promote(); in commandExecuted()
678 sp<AudioEffect> effect = mEffect.promote(); in framesProcessed()
688 sp<AudioEffect> effect = mEffect.promote(); in binderDied()
695 wp<AudioEffect> mEffect;
/frameworks/base/services/core/java/com/android/server/integrity/model/
DIntegrityCheckResult.java41 private final Effect mEffect; field in IntegrityCheckResult
45 this.mEffect = effect; in IntegrityCheckResult()
50 return mEffect; in getEffect()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
DMediaAudioEffectTest.java48 private AudioEffect mEffect = null; field in MediaAudioEffectTest
1151 mEffect = null; in test5_2ControlStatusListener()
1200 mEffect = null; in test5_3EnableStatusListener()
1212 mEffect.setEnabled(true); in test5_3EnableStatusListener()
1252 mEffect = null; in test5_4ParameterChangedListener()
1425 mEffect = new AudioEffect(AudioEffect.EFFECT_TYPE_EQUALIZER, in createListenerLooper()
1429 assertNotNull("could not create AudioEffect", mEffect); in createListenerLooper()
1432mEffect.setControlStatusListener(new AudioEffect.OnControlStatusChangeListener() { in createListenerLooper()
1435 if (effect == mEffect) { in createListenerLooper()
1444 mEffect.setEnableStatusListener(new AudioEffect.OnEnableStatusChangeListener() { in createListenerLooper()
[all …]

12