Home
last modified time | relevance | path

Searched refs:OneShot (Results 1 – 8 of 8) 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
Dboot-image-profile.txt12394 HSPLandroid/os/VibrationEffect$OneShot$1;-><init>()V
12395 HPLandroid/os/VibrationEffect$OneShot;->getAmplitude()I
12396 HPLandroid/os/VibrationEffect$OneShot;->getDuration()J
12397 HPLandroid/os/VibrationEffect$OneShot;->resolve(I)Landroid/os/VibrationEffect$OneShot;
12398 HPLandroid/os/VibrationEffect$OneShot;->scale(FI)Landroid/os/VibrationEffect$OneShot;
12399 HSPLandroid/os/VibrationEffect$OneShot;->validate()V
35436 Landroid/os/VibrationEffect$OneShot$1;
35437 Landroid/os/VibrationEffect$OneShot;
Dhiddenapi-greylist-max-o.txt57973 Landroid/os/VibrationEffect$OneShot;
57974 Landroid/os/VibrationEffect$OneShot;-><init>(JI)V
57975 Landroid/os/VibrationEffect$OneShot;-><init>(Landroid/os/Parcel;)V
57976 Landroid/os/VibrationEffect$OneShot;->CREATOR:Landroid/os/Parcelable$Creator;
57977 Landroid/os/VibrationEffect$OneShot;->getAmplitude()I
57978 Landroid/os/VibrationEffect$OneShot;->getDuration()J
57979 Landroid/os/VibrationEffect$OneShot;->mAmplitude:I
57980 Landroid/os/VibrationEffect$OneShot;->mDuration:J
57981 Landroid/os/VibrationEffect$OneShot;->resolve(I)Landroid/os/VibrationEffect$OneShot;
57982 Landroid/os/VibrationEffect$OneShot;->scale(FI)Landroid/os/VibrationEffect;
[all …]