Home
last modified time | relevance | path

Searched refs:OneShot (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/os/
DVibrationEffectTest.java86 VibrationEffect.OneShot initial = (VibrationEffect.OneShot) TEST_ONE_SHOT; in testScaleOneShot()
87 VibrationEffect.OneShot halved = initial.scale(1, 128); in testScaleOneShot()
89 VibrationEffect.OneShot scaledUp = initial.scale(0.5f, 255); in testScaleOneShot()
91 VibrationEffect.OneShot restored2 = scaledUp.scale(2, 255); in testScaleOneShot()
93 VibrationEffect.OneShot scaledDown = initial.scale(2, 255); in testScaleOneShot()
95 VibrationEffect.OneShot restored3 = scaledDown.scale(0.5f, 255); in testScaleOneShot()
102 ((VibrationEffect.OneShot) TEST_ONE_SHOT).scale(1.1f, 1000);
110 VibrationEffect.OneShot initial = (VibrationEffect.OneShot) DEFAULT_ONE_SHOT;
111 VibrationEffect.OneShot resolved = initial.resolve(239);
118 ((VibrationEffect.OneShot) TEST_ONE_SHOT).resolve(1000);
/frameworks/base/core/java/android/os/
DVibrationEffect.java174 VibrationEffect effect = new OneShot(milliseconds, amplitude); in createOneShot()
392 public static class OneShot extends VibrationEffect implements Parcelable { class in VibrationEffect
396 public OneShot(Parcel in) { in OneShot() method in VibrationEffect.OneShot
401 public OneShot(long milliseconds, int amplitude) { in OneShot() method in VibrationEffect.OneShot
425 public OneShot scale(float gamma, int maxAmplitude) { in scale()
431 return new OneShot(mDuration, newAmplitude); in scale()
443 public OneShot resolve(int defaultAmplitude) { in resolve()
449 return new OneShot(mDuration, defaultAmplitude); in resolve()
469 if (!(o instanceof VibrationEffect.OneShot)) { in equals()
472 VibrationEffect.OneShot other = (VibrationEffect.OneShot) o; in equals()
[all …]
/frameworks/base/services/core/java/com/android/server/
DVibratorService.java572 if (effect instanceof VibrationEffect.OneShot in vibrate()
574 && mCurrentVibration.effect instanceof VibrationEffect.OneShot) { in vibrate()
575 VibrationEffect.OneShot newOneShot = (VibrationEffect.OneShot) effect; in vibrate()
576 VibrationEffect.OneShot currentOneShot = in vibrate()
577 (VibrationEffect.OneShot) mCurrentVibration.effect; in vibrate()
760 if (vib.effect instanceof VibrationEffect.OneShot) { in startVibrationInnerLocked()
762 VibrationEffect.OneShot oneShot = (VibrationEffect.OneShot) vib.effect; in startVibrationInnerLocked()
855 if (vib.effect instanceof VibrationEffect.OneShot) { in applyVibrationIntensityScalingLocked()
856 VibrationEffect.OneShot oneShot = (VibrationEffect.OneShot) vib.effect; in applyVibrationIntensityScalingLocked()
/frameworks/base/core/java/android/hardware/input/
DInputManager.java1199 if (effect instanceof VibrationEffect.OneShot) { in vibrate()
1200 VibrationEffect.OneShot oneShot = (VibrationEffect.OneShot) effect; in vibrate()
/frameworks/base/api/
Dtest-current.txt2026 …public static class VibrationEffect.OneShot extends android.os.VibrationEffect implements android.…
2027 ctor public VibrationEffect.OneShot(android.os.Parcel);
2028 ctor public VibrationEffect.OneShot(long, int);
2031 method public android.os.VibrationEffect.OneShot scale(float, int);
2034 …Null public static final android.os.Parcelable.Creator<android.os.VibrationEffect.OneShot> CREATOR;
/frameworks/base/config/
Dpreloaded-classes2923 android.os.VibrationEffect$OneShot$1
2924 android.os.VibrationEffect$OneShot