Home
last modified time | relevance | path

Searched refs:frequencyHz (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/services/core/java/com/android/server/vibrator/
DStepToRampAdapter.java69 float frequencyHz = fillEmptyFrequency(info, segment.getFrequencyHz()); in convertStepToRamp() local
71 frequencyHz, frequencyHz, (int) segment.getDuration()); in convertStepToRamp()
78 private static float fillEmptyFrequency(VibratorInfo info, float frequencyHz) { in fillEmptyFrequency() argument
80 return frequencyHz; in fillEmptyFrequency()
82 return frequencyHz == 0 ? info.getResonantFrequencyHz() : frequencyHz; in fillEmptyFrequency()
DClippingAmplitudeAndFrequencyAdapter.java61 private float clampFrequency(VibratorInfo info, float frequencyHz) { in clampFrequency() argument
63 if (frequencyHz == 0 || frequencyRangeHz == null) { in clampFrequency()
66 return frequencyRangeHz.clamp(frequencyHz); in clampFrequency()
69 private float clampAmplitude(VibratorInfo info, float frequencyHz, float amplitude) { in clampAmplitude() argument
76 return MathUtils.min(amplitude, mapping.getMaxAmplitude(frequencyHz)); in clampAmplitude()
DSplitSegmentsAdapter.java109 private static float fillEmptyFrequency(VibratorInfo info, float frequencyHz) { in fillEmptyFrequency() argument
111 return frequencyHz; in fillEmptyFrequency()
113 return frequencyHz == 0 ? info.getResonantFrequencyHz() : frequencyHz; in fillEmptyFrequency()
DRampToStepAdapter.java98 private static float fillEmptyFrequency(VibratorInfo info, float frequencyHz) { in fillEmptyFrequency() argument
102 return frequencyHz == 0 ? info.getResonantFrequencyHz() : frequencyHz; in fillEmptyFrequency()
/frameworks/base/core/java/android/os/
DVibrationEffect.java1426 float frequencyHz = extractTargetFrequency(targetParameter, /* target2= */ null); in addTransition() local
1427 addTransitionSegment(duration, amplitude, frequencyHz); in addTransition()
1465 float frequencyHz = extractTargetFrequency(targetParameter1, targetParameter2); in addTransition() local
1466 addTransitionSegment(duration, amplitude, frequencyHz); in addTransition()
1537 return ((FrequencyVibrationParameter) target2).frequencyHz; in extractTargetFrequency()
1540 return ((FrequencyVibrationParameter) target1).frequencyHz; in extractTargetFrequency()
1611 public static VibrationParameter targetFrequency(@FloatRange(from = 1) float frequencyHz) { in targetFrequency()
1612 return new FrequencyVibrationParameter(frequencyHz); in targetFrequency()
1629 public final float frequencyHz; field in VibrationEffect.FrequencyVibrationParameter
1631 FrequencyVibrationParameter(float frequencyHz) { in FrequencyVibrationParameter() argument
[all …]
DVibratorInfo.java635 public float getMaxAmplitude(float frequencyHz) { in getMaxAmplitude() argument
636 if (isEmpty() || Float.isNaN(frequencyHz) || !mFrequencyRangeHz.contains(frequencyHz)) { in getMaxAmplitude()
642 float mappingFreq = frequencyHz - mMinFrequencyHz; in getMaxAmplitude()
/frameworks/base/services/tests/vibrator/utils/com/android/server/vibrator/
DFakeVibratorControllerProvider.java307 public void setResonantFrequency(float frequencyHz) { in setResonantFrequency() argument
308 mResonantFrequency = frequencyHz; in setResonantFrequency()
312 public void setMinFrequency(float frequencyHz) { in setMinFrequency() argument
313 mMinFrequency = frequencyHz; in setMinFrequency()
317 public void setFrequencyResolution(float frequencyHz) { in setFrequencyResolution() argument
318 mFrequencyResolution = frequencyHz; in setFrequencyResolution()
/frameworks/base/core/java/android/os/vibrator/
DStepSegment.java53 public StepSegment(float amplitude, float frequencyHz, int duration) { in StepSegment() argument
55 mFrequencyHz = frequencyHz; in StepSegment()
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DVibrationThreadTest.java1857 private VibrationEffectSegment expectedRamp(float amplitude, float frequencyHz, int duration) { in expectedRamp() argument
1858 return expectedRamp(amplitude, amplitude, frequencyHz, frequencyHz, duration); in expectedRamp()
/frameworks/av/media/audioaidlconversion/
DAidlConversionCppNdk.cpp3196 legacy.frequency_responses[0][legacy.num_frequency_responses] = p.frequencyHz; in aidl2legacy_MicrophoneInfos_audio_microphone_characteristic_t()
3268 aidlInfo->frequencyResponse[i].frequencyHz = legacy.frequency_responses[0][i]; in legacy2aidl_audio_microphone_characteristic_t_MicrophoneInfos()