Home
last modified time | relevance | path

Searched refs:VibrationEffect (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/core/java/android/os/
DVibrationEffect.java28 public abstract class VibrationEffect implements Parcelable { class
55 public VibrationEffect() { } in VibrationEffect() method in VibrationEffect
69 public static VibrationEffect createOneShot(long milliseconds, int amplitude) { in createOneShot()
70 VibrationEffect effect = new OneShot(milliseconds, amplitude); in createOneShot()
100 public static VibrationEffect createWaveform(long[] timings, int repeat) { in createWaveform()
103 amplitudes[i*2 + 1] = VibrationEffect.DEFAULT_AMPLITUDE; in createWaveform()
130 public static VibrationEffect createWaveform(long[] timings, int[] amplitudes, int repeat) { in createWaveform()
131 VibrationEffect effect = new Waveform(timings, amplitudes, repeat); in createWaveform()
151 public static VibrationEffect get(int effectId) { in get()
152 VibrationEffect effect = new Prebaked(effectId); in get()
[all …]
DVibrationEffect.aidl19 parcelable VibrationEffect;
20 parcelable VibrationEffect.OneShotVibration;
21 parcelable VibrationEffect.WaveformVibration;
22 parcelable VibrationEffect.EffectVibration;
DVibrator.java95 VibrationEffect effect = in vibrate()
96 VibrationEffect.createOneShot(milliseconds, VibrationEffect.DEFAULT_AMPLITUDE); in vibrate()
165 vibrate(VibrationEffect.createWaveform(pattern, repeat), attributes); in vibrate()
172 public void vibrate(VibrationEffect vibe) { in vibrate()
177 public void vibrate(VibrationEffect vibe, AudioAttributes attributes) { in vibrate()
188 VibrationEffect vibe, AudioAttributes attributes); in vibrate()
DIVibratorService.aidl19 import android.os.VibrationEffect;
26 void vibrate(int uid, String opPkg, in VibrationEffect effect, int usageHint, IBinder token); in vibrate()
DNullVibrator.java48 VibrationEffect effect, AudioAttributes attributes) { in vibrate()
DSystemVibrator.java71 VibrationEffect effect, AudioAttributes attributes) { in vibrate()
/frameworks/base/services/core/java/com/android/server/
DVibratorService.java47 import android.os.VibrationEffect;
79 private final VibrationEffect[] mFallbackEffects;
114 private final VibrationEffect mEffect;
120 private Vibration(IBinder token, VibrationEffect effect, in Vibration()
142 if (mEffect instanceof VibrationEffect.OneShot) { in hasLongerTimeout()
143 VibrationEffect.OneShot oneShot = (VibrationEffect.OneShot) mEffect; in hasLongerTimeout()
151 if (mEffect instanceof VibrationEffect.Waveform) { in isSystemHapticFeedback()
152 VibrationEffect.Waveform waveform = (VibrationEffect.Waveform) mEffect; in isSystemHapticFeedback()
162 private final VibrationEffect mEffect;
167 public VibrationInfo(long startTime, VibrationEffect effect, in VibrationInfo()
[all …]
/frameworks/base/tests/permission/src/com/android/framework/permission/tests/
DVibratorServicePermissionTest.java27 import android.os.VibrationEffect;
52 final VibrationEffect effect = in testVibrate()
53 VibrationEffect.createOneShot(100, VibrationEffect.DEFAULT_AMPLITUDE); in testVibrate()
/frameworks/base/services/tests/notification/src/com/android/server/notification/
DBuzzBeepBlinkTest.java53 import android.os.VibrationEffect;
105 private static final VibrationEffect FALLBACK_VIBRATION =
106 VibrationEffect.createWaveform(FALLBACK_VIBRATION_PATTERN, -1);
319 verify(mVibrator, never()).vibrate(anyInt(), anyString(), (VibrationEffect) anyObject(), in verifyNeverVibrate()
542 VibrationEffect effect = VibrationEffect.createWaveform(r.getVibration(), -1); in testNoDemoteSoundToVibrateIfVibrateGiven()
809 static class VibrateRepeatMatcher implements ArgumentMatcher<VibrationEffect> {
817 public boolean matches(VibrationEffect actual) { in matches()
818 if (actual instanceof VibrationEffect.Waveform && in matches()
819 ((VibrationEffect.Waveform) actual).getRepeatIndex() == mRepeatIndex) { in matches()
/frameworks/base/core/java/android/hardware/input/
DInputManager.java37 import android.os.VibrationEffect;
1164 VibrationEffect effect, AudioAttributes attributes) { in vibrate()
1167 if (effect instanceof VibrationEffect.OneShot) { in vibrate()
1168 VibrationEffect.OneShot oneShot = (VibrationEffect.OneShot) effect; in vibrate()
1171 } else if (effect instanceof VibrationEffect.Waveform) { in vibrate()
1172 VibrationEffect.Waveform waveform = (VibrationEffect.Waveform) effect; in vibrate()
/frameworks/base/services/core/java/com/android/server/policy/
DPhoneWindowManager.java181 import android.os.VibrationEffect;
7693 VibrationEffect effect = getVibrationEffect(effectId); in performHapticFeedbackLw()
7711 private VibrationEffect getVibrationEffect(int effectId) { in getVibrationEffect()
7715 return VibrationEffect.get(VibrationEffect.EFFECT_CLICK); in getVibrationEffect()
7720 return VibrationEffect.get(VibrationEffect.EFFECT_CLICK); in getVibrationEffect()
7744 return VibrationEffect.createOneShot(pattern[0], VibrationEffect.DEFAULT_AMPLITUDE); in getVibrationEffect()
7747 return VibrationEffect.createWaveform(pattern, -1); in getVibrationEffect()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java118 import android.os.VibrationEffect;
3823 final VibrationEffect effect; in playVibration()
3827 effect = VibrationEffect.createWaveform( in playVibration()
/frameworks/base/
Dcompiled-classes-phone3381 android.os.VibrationEffect
3382 android.os.VibrationEffect$1
3383 android.os.VibrationEffect$OneShot
3384 android.os.VibrationEffect$Prebaked
3385 android.os.VibrationEffect$Prebaked$1
3386 android.os.VibrationEffect$Waveform
3387 android.os.VibrationEffect$Waveform$1
/frameworks/base/api/
Dcurrent.txt31572 public abstract class VibrationEffect implements android.os.Parcelable {
31573 method public static android.os.VibrationEffect createOneShot(long, int);
31574 method public static android.os.VibrationEffect createWaveform(long[], int);
31575 method public static android.os.VibrationEffect createWaveform(long[], int[], int);
31577 field public static final android.os.Parcelable.Creator<android.os.VibrationEffect> CREATOR;
31589 method public void vibrate(android.os.VibrationEffect);
31590 method public void vibrate(android.os.VibrationEffect, android.media.AudioAttributes);
Dsystem-current.txt34420 public abstract class VibrationEffect implements android.os.Parcelable {
34421 method public static android.os.VibrationEffect createOneShot(long, int);
34422 method public static android.os.VibrationEffect createWaveform(long[], int);
34423 method public static android.os.VibrationEffect createWaveform(long[], int[], int);
34425 field public static final android.os.Parcelable.Creator<android.os.VibrationEffect> CREATOR;
34437 method public void vibrate(android.os.VibrationEffect);
34438 method public void vibrate(android.os.VibrationEffect, android.media.AudioAttributes);