Home
last modified time | relevance | path

Searched refs:defaultAmplitude (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/core/java/android/os/vibrator/
DStepSegment.java119 public StepSegment resolve(int defaultAmplitude) { in resolve() argument
120 if (defaultAmplitude > VibrationEffect.MAX_AMPLITUDE || defaultAmplitude <= 0) { in resolve()
123 + defaultAmplitude + ")"); in resolve()
128 return new StepSegment((float) defaultAmplitude / VibrationEffect.MAX_AMPLITUDE, in resolve()
DVibrationEffectSegment.java94 public abstract <T extends VibrationEffectSegment> T resolve(int defaultAmplitude); in resolve() argument
DPrimitiveSegment.java93 public PrimitiveSegment resolve(int defaultAmplitude) { in resolve() argument
DPrebakedSegment.java125 public PrebakedSegment resolve(int defaultAmplitude) { in resolve() argument
DRampSegment.java139 public RampSegment resolve(int defaultAmplitude) { in resolve() argument
/frameworks/base/services/core/java/com/android/server/vibrator/
DHalVibration.java116 public void resolveEffects(int defaultAmplitude) { in resolveEffects() argument
118 mEffectToPlay.transform(VibrationEffect::resolve, defaultAmplitude); in resolveEffects()
123 mFallbacks.setValueAt(i, mFallbacks.valueAt(i).resolve(defaultAmplitude)); in resolveEffects()
/frameworks/base/core/java/android/os/
DVibrationEffect.java553 public abstract <T extends VibrationEffect> T resolve(int defaultAmplitude); in resolve() argument
869 public Composed resolve(int defaultAmplitude) { in resolve() argument
873 resolvedSegments.add(mSegments.get(i).resolve(defaultAmplitude)); in resolve()
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DVibratorManagerServiceTest.java1597 int defaultAmplitude = mContextSpy.getResources().getInteger(
1614 assertEquals(defaultAmplitude / 255f, fakeVibrator.getAmplitudes().get(0), 1e-5);