Home
last modified time | relevance | path

Searched refs:qFactor (Results 1 – 14 of 14) sorted by relevance

/frameworks/av/media/libaudiohal/impl/effectsAidlConversion/
DAidlConversionHapticGenerator.cpp66 float resonantFrequencyHz, qFactor, maxAmplitude; in setParameter() local
68 OK != param.readFromValue(&qFactor) || OK != param.readFromValue(&maxAmplitude)) { in setParameter()
73 .qFactor = qFactor, in setParameter()
/frameworks/native/cmds/idlcli/vibrator/
DCommandGetQFactor.cpp46 float qFactor; in doMain() local
50 auto status = hal->call(&aidl::IVibrator::getQFactor, &qFactor); in doMain()
58 std::cout << "Q Factor: " << qFactor << std::endl; in doMain()
/frameworks/av/media/libeffects/hapticgenerator/aidl/
DHapticGeneratorContext.cpp41 mParams.mVibratorInfo.qFactor = DEFAULT_BSF_ZERO_Q; in HapticGeneratorContext()
119 if (::android::audio_utils::safe_isnan(mParams.mVibratorInfo.qFactor)) { in setHgVibratorInformation()
121 mParams.mVibratorInfo.qFactor = DEFAULT_BSF_ZERO_Q; in setHgVibratorInformation()
130 mParams.mVibratorInfo.resonantFrequencyHz, mParams.mVibratorInfo.qFactor, in setHgVibratorInformation()
131 mParams.mVibratorInfo.qFactor / 2.0f, mSampleRate)); in setHgVibratorInformation()
299 mParams.mVibratorInfo.resonantFrequencyHz, mParams.mVibratorInfo.qFactor, in buildProcessingChain()
300 mParams.mVibratorInfo.qFactor / 2.0f, mSampleRate, channelCount); in buildProcessingChain()
/frameworks/av/media/libaudioclient/aidl/android/media/
DAudioVibratorInfo.aidl26 float qFactor;
/frameworks/base/core/java/android/os/
DVibratorInfo.java114 float qFactor, @NonNull FrequencyProfile frequencyProfile) { in VibratorInfo() argument
126 mQFactor = qFactor; in VibratorInfo()
812 public Builder setQFactor(float qFactor) { in setQFactor() argument
813 mQFactor = qFactor; in setQFactor()
/frameworks/base/services/tests/vibrator/utils/com/android/server/vibrator/
DFakeVibratorControllerProvider.java322 public void setQFactor(float qFactor) { in setQFactor() argument
323 mQFactor = qFactor; in setQFactor()
/frameworks/av/media/libeffects/hapticgenerator/
DEffectHapticGenerator.cpp343 const float qFactor = *((float *) value + 1); in HapticGenerator_SetParameter() local
348 context->param.bsfZeroQ = audio_utils::safe_isnan(qFactor) ? DEFAULT_BSF_ZERO_Q : qFactor; in HapticGenerator_SetParameter()
/frameworks/native/services/vibratorservice/
DVibratorHalWrapper.cpp403 float qFactor = 0; in getQFactorInternal() local
404 auto result = getHal()->getQFactor(&qFactor); in getQFactorInternal()
405 return HalResultFactory::fromStatus<float>(result, qFactor); in getQFactorInternal()
/frameworks/native/services/vibratorservice/test/
DVibratorHalWrapperHidlV1_0Test.cpp216 ASSERT_TRUE(info.qFactor.isUnsupported()); in TEST_F()
249 ASSERT_TRUE(info.qFactor.isUnsupported()); in TEST_F()
DVibratorHalWrapperAidlTest.cpp388 ASSERT_TRUE(failed.qFactor.isFailed()); in TEST_F()
405 ASSERT_EQ(Q_FACTOR, successful.qFactor.value()); in TEST_F()
481 ASSERT_TRUE(info.qFactor.isUnsupported()); in TEST_F()
/frameworks/native/services/vibratorservice/include/vibratorservice/
DVibratorHalWrapper.h245 const HalResult<float> qFactor; variable
266 logFailure<float>(qFactor, "getQFactor"); in logFailures()
277 qFactor.shouldRetry() || maxAmplitudes.shouldRetry(); in shouldRetry()
/frameworks/base/services/core/jni/
Dcom_android_server_vibrator_VibratorController.cpp438 if (info.qFactor.isOk()) { in vibratorGetInfo()
440 static_cast<jfloat>(info.qFactor.value())); in vibratorGetInfo()
/frameworks/av/services/audioflinger/
DEffects.cpp1602 vibratorInfoPtr[1] = vibratorInfo.qFactor; in setVibratorInfo_l()
/frameworks/base/core/jni/
Dandroid_media_AudioSystem.cpp3045 vibratorInfo.qFactor = env->CallFloatMethod(jVibrator.get(), gVibratorMethods.getQFactor); in android_media_AudioSystem_setVibratorInfos()