Home
last modified time | relevance | path

Searched refs:vibratorInfo (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/
DStepToRampAdapterTest.java92 VibratorInfo vibratorInfo = new VibratorInfo.Builder(0) in testRampSegments_withPwleDurationLimit_splitsLongRamps() local
98 assertEquals(4, mAdapter.apply(segments, 2, vibratorInfo)); in testRampSegments_withPwleDurationLimit_splitsLongRamps()
128 VibratorInfo vibratorInfo = createVibratorInfo(IVibrator.CAP_COMPOSE_PWLE_EFFECTS); in testStepAndRampSegments_withPwleCapabilityAndNoFrequency_keepsOriginalSteps() local
129 assertEquals(-1, mAdapter.apply(segments, -1, vibratorInfo)); in testStepAndRampSegments_withPwleCapabilityAndNoFrequency_keepsOriginalSteps()
130 assertEquals(3, mAdapter.apply(segments, 3, vibratorInfo)); in testStepAndRampSegments_withPwleCapabilityAndNoFrequency_keepsOriginalSteps()
158 VibratorInfo vibratorInfo = createVibratorInfo(IVibrator.CAP_COMPOSE_PWLE_EFFECTS); in testStepAndRampSegments_withPwleCapabilityAndStepNextToRamp_convertsStepsToRamps() local
159 assertEquals(-1, mAdapter.apply(segments, -1, vibratorInfo)); in testStepAndRampSegments_withPwleCapabilityAndStepNextToRamp_convertsStepsToRamps()
160 assertEquals(2, mAdapter.apply(segments, 2, vibratorInfo)); in testStepAndRampSegments_withPwleCapabilityAndStepNextToRamp_convertsStepsToRamps()
176 VibratorInfo vibratorInfo = createVibratorInfo(IVibrator.CAP_COMPOSE_PWLE_EFFECTS); in testStepSegments_withPwleCapabilityAndFrequency_convertsStepsToRamps() local
177 assertEquals(-1, mAdapter.apply(segments, -1, vibratorInfo)); in testStepSegments_withPwleCapabilityAndFrequency_convertsStepsToRamps()
[all …]
DRampToStepAdapterTest.java79 VibratorInfo vibratorInfo = createVibratorInfo(IVibrator.CAP_COMPOSE_PWLE_EFFECTS); in testRampSegments_withPwleCapability_keepsListUnchanged() local
80 assertEquals(-1, mAdapter.apply(segments, -1, vibratorInfo)); in testRampSegments_withPwleCapability_keepsListUnchanged()
81 assertEquals(0, mAdapter.apply(segments, 0, vibratorInfo)); in testRampSegments_withPwleCapability_keepsListUnchanged()
/frameworks/base/core/java/android/os/
DSystemVibratorManager.java192 SingleVibrator(@NonNull VibratorInfo vibratorInfo) { in SingleVibrator() argument
193 mVibratorInfo = vibratorInfo; in SingleVibrator()
/frameworks/base/services/core/java/com/android/server/vibrator/
DVibrationThread.java1500 VibratorInfo vibratorInfo = mVibrators.valueAt(i).getVibratorInfo(); in DeviceEffectMap() local
1501 VibrationEffect effect = mDeviceEffectAdapter.apply(mono.getEffect(), vibratorInfo); in DeviceEffectMap()
1516 VibratorInfo vibratorInfo = mVibrators.valueAt(i).getVibratorInfo(); in DeviceEffectMap() local
1518 stereoEffects.valueAt(i), vibratorInfo); in DeviceEffectMap()
/frameworks/base/core/jni/
Dandroid_media_AudioSystem.cpp2702 media::AudioVibratorInfo vibratorInfo; in android_media_AudioSystem_setVibratorInfos() local
2703 vibratorInfo.id = env->CallIntMethod(jVibrator.get(), gVibratorMethods.getId); in android_media_AudioSystem_setVibratorInfos()
2704 vibratorInfo.resonantFrequency = in android_media_AudioSystem_setVibratorInfos()
2706 vibratorInfo.qFactor = env->CallFloatMethod(jVibrator.get(), gVibratorMethods.getQFactor); in android_media_AudioSystem_setVibratorInfos()
2707 vibratorInfos.push_back(vibratorInfo); in android_media_AudioSystem_setVibratorInfos()
/frameworks/av/services/audioflinger/
DEffects.h262 status_t setVibratorInfo(const media::AudioVibratorInfo* vibratorInfo);
DEffects.cpp1603 status_t AudioFlinger::EffectModule::setVibratorInfo(const media::AudioVibratorInfo* vibratorInfo) in setVibratorInfo() argument
1620 vibratorInfoPtr[0] = vibratorInfo->resonantFrequency; in setVibratorInfo()
1621 vibratorInfoPtr[1] = vibratorInfo->qFactor; in setVibratorInfo()