Home
last modified time | relevance | path

Searched refs:OneShot (Results 1 – 9 of 9) 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.java172 VibrationEffect effect = new OneShot(milliseconds, amplitude); in createOneShot()
390 public static class OneShot extends VibrationEffect implements Parcelable { class in VibrationEffect
394 public OneShot(Parcel in) { in OneShot() method in VibrationEffect.OneShot
399 public OneShot(long milliseconds, int amplitude) { in OneShot() method in VibrationEffect.OneShot
423 public OneShot scale(float gamma, int maxAmplitude) { in scale()
429 return new OneShot(mDuration, newAmplitude); in scale()
441 public OneShot resolve(int defaultAmplitude) { in resolve()
447 return new OneShot(mDuration, defaultAmplitude); in resolve()
467 if (!(o instanceof VibrationEffect.OneShot)) { in equals()
470 VibrationEffect.OneShot other = (VibrationEffect.OneShot) o; in equals()
[all …]
/frameworks/base/services/core/java/com/android/server/
DVibratorService.java648 if (effect instanceof VibrationEffect.OneShot in vibrate()
650 && mCurrentVibration.effect instanceof VibrationEffect.OneShot) { in vibrate()
651 VibrationEffect.OneShot newOneShot = (VibrationEffect.OneShot) effect; in vibrate()
652 VibrationEffect.OneShot currentOneShot = in vibrate()
653 (VibrationEffect.OneShot) mCurrentVibration.effect; in vibrate()
820 if (vib.effect instanceof VibrationEffect.OneShot) { in startVibrationInnerLocked()
822 VibrationEffect.OneShot oneShot = (VibrationEffect.OneShot) vib.effect; in startVibrationInnerLocked()
916 if (vib.effect instanceof VibrationEffect.OneShot) { in applyVibrationIntensityScalingLocked()
917 VibrationEffect.OneShot oneShot = (VibrationEffect.OneShot) vib.effect; in applyVibrationIntensityScalingLocked()
/frameworks/base/core/java/android/hardware/input/
DInputManager.java1215 if (effect instanceof VibrationEffect.OneShot) { in vibrate()
1216 VibrationEffect.OneShot oneShot = (VibrationEffect.OneShot) effect; in vibrate()
/frameworks/base/api/
Dtest-lint-baseline.txt1268 MissingNullability: android.os.VibrationEffect.OneShot#OneShot(android.os.Parcel) parameter #0:
1270 MissingNullability: android.os.VibrationEffect.OneShot#scale(float, int):
1272 MissingNullability: android.os.VibrationEffect.OneShot#writeToParcel(android.os.Parcel, int) parame…
2431 ParcelConstructor: android.os.VibrationEffect.OneShot#OneShot(android.os.Parcel):
2465 ParcelCreator: android.os.VibrationEffect.OneShot:
2487 ParcelNotFinal: android.os.VibrationEffect.OneShot:
Dtest-current.txt2277 …public static class VibrationEffect.OneShot extends android.os.VibrationEffect implements android.…
2278 ctor public VibrationEffect.OneShot(android.os.Parcel);
2279 ctor public VibrationEffect.OneShot(long, int);
2282 method public android.os.VibrationEffect.OneShot scale(float, int);
2285 …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
35435 Landroid/os/VibrationEffect$OneShot$1;
35436 Landroid/os/VibrationEffect$OneShot;
Dhiddenapi-greylist-max-o.txt54003 Landroid/os/VibrationEffect$OneShot;-><init>(JI)V
54004 Landroid/os/VibrationEffect$OneShot;-><init>(Landroid/os/Parcel;)V
54005 Landroid/os/VibrationEffect$OneShot;->CREATOR:Landroid/os/Parcelable$Creator;
54006 Landroid/os/VibrationEffect$OneShot;->getAmplitude()I
54007 Landroid/os/VibrationEffect$OneShot;->getDuration()J
54008 Landroid/os/VibrationEffect$OneShot;->mAmplitude:I
54009 Landroid/os/VibrationEffect$OneShot;->mDuration:J
54010 Landroid/os/VibrationEffect$OneShot;->resolve(I)Landroid/os/VibrationEffect$OneShot;
54011 Landroid/os/VibrationEffect$OneShot;->scale(FI)Landroid/os/VibrationEffect;
54012 Landroid/os/VibrationEffect$OneShot;->validate()V