Searched refs:targetAmplitude (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/core/tests/vibrator/src/android/os/ |
D | VibrationEffectTest.java | 20 import static android.os.VibrationEffect.VibrationParameter.targetAmplitude; 398 .addTransition(Duration.ofMillis(100), targetAmplitude(1), targetFrequency(120)) in computeLegacyPattern_effectsViaStartWaveform() 400 .addTransition(Duration.ofMillis(100), targetAmplitude(0), targetFrequency(60)) in computeLegacyPattern_effectsViaStartWaveform() 406 .addTransition(Duration.ofMillis(80), targetAmplitude(1)) in computeLegacyPattern_effectsViaStartWaveform() 408 .addTransition(Duration.ofMillis(100), targetAmplitude(0)) in computeLegacyPattern_effectsViaStartWaveform() 498 VibrationEffect.startWaveform(targetAmplitude(1)) in testValidateWaveformBuilder() 499 .addTransition(Duration.ofSeconds(1), targetAmplitude(0.5f), targetFrequency(100)) in testValidateWaveformBuilder() 500 .addTransition(Duration.ZERO, targetAmplitude(0f), targetFrequency(200)) in testValidateWaveformBuilder() 502 .addTransition(Duration.ofMillis(10), targetAmplitude(1f), targetFrequency(50)) in testValidateWaveformBuilder() 506 .addTransition(Duration.ofSeconds(15), targetAmplitude(1)) in testValidateWaveformBuilder() [all …]
|
/frameworks/base/core/java/android/os/ |
D | VibrationEffect.java | 1545 private void addTransitionSegment(Duration duration, float targetAmplitude, in addTransitionSegment() argument 1554 if ((Math.abs(mLastAmplitude - targetAmplitude) < EPSILON) in addTransitionSegment() 1557 mSegments.add(new StepSegment(targetAmplitude, targetFrequency, durationMs)); in addTransitionSegment() 1559 mSegments.add(new RampSegment(mLastAmplitude, targetAmplitude, in addTransitionSegment() 1564 mLastAmplitude = targetAmplitude; in addTransitionSegment() 1597 public static VibrationParameter targetAmplitude( in targetAmplitude() method in VibrationEffect.VibrationParameter
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | VibratorHelper.java | 19 import static android.os.VibrationEffect.VibrationParameter.targetAmplitude; 124 targetAmplitude(values[i]), targetFrequency(values[i + 1])); in createPwleWaveformVibration()
|
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/ |
D | VibrationThreadTest.java | 20 import static android.os.VibrationEffect.VibrationParameter.targetAmplitude; 433 VibrationEffect effect = VibrationEffect.startWaveform(targetAmplitude(1)) in vibrate_singleVibratorRepeatingPwle_generatesLargestPwles() 742 targetAmplitude(1), targetFrequency(100)) in vibrate_singleVibratorComposedEffects_runsDifferentVibrations() 821 VibrationEffect effect = VibrationEffect.startWaveform(targetAmplitude(1)) in vibrate_singleVibratorPwle_runsComposePwle() 823 .addTransition(Duration.ofMillis(20), targetAmplitude(0)) in vibrate_singleVibratorPwle_runsComposePwle() 824 .addTransition(Duration.ZERO, targetAmplitude(0.8f), targetFrequency(100)) in vibrate_singleVibratorPwle_runsComposePwle() 826 .addTransition(Duration.ofMillis(40), targetAmplitude(0.6f), targetFrequency(200)) in vibrate_singleVibratorPwle_runsComposePwle() 858 VibrationEffect effect = VibrationEffect.startWaveform(targetAmplitude(1)) in vibrate_singleVibratorLargePwle_splitsComposeCallWhenAmplitudeIsLowest() 860 .addTransition(Duration.ofMillis(20), targetAmplitude(0)) in vibrate_singleVibratorLargePwle_splitsComposeCallWhenAmplitudeIsLowest() 862 .addTransition(Duration.ZERO, targetAmplitude(0.8f), targetFrequency(100)) in vibrate_singleVibratorLargePwle_splitsComposeCallWhenAmplitudeIsLowest() [all …]
|
/frameworks/base/services/core/java/com/android/server/vibrator/ |
D | VibratorManagerService.java | 19 import static android.os.VibrationEffect.VibrationParameter.targetAmplitude; 2378 waveform.addTransition(transitionDuration, targetAmplitude(amplitudes.get(i)), in addWaveformToComposition() 2381 waveform.addTransition(transitionDuration, targetAmplitude(amplitudes.get(i))); in addWaveformToComposition() 2394 waveform = VibrationEffect.startWaveform(targetAmplitude(amplitudes.get(i)), in addWaveformToComposition() 2398 targetAmplitude(amplitudes.get(i))); in addWaveformToComposition()
|
/frameworks/base/core/api/ |
D | test-current.txt | 2558 …method @NonNull public static android.os.VibrationEffect.VibrationParameter targetAmplitude(@Float…
|