Home
last modified time | relevance | path

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

12

/frameworks/base/core/tests/coretests/src/android/os/
DVibrationEffectTest.java49 new int[] { 255, 0, VibrationEffect.DEFAULT_AMPLITUDE };
51 private static final VibrationEffect TEST_ONE_SHOT =
52 VibrationEffect.createOneShot(TEST_TIMING, TEST_AMPLITUDE);
53 private static final VibrationEffect DEFAULT_ONE_SHOT =
54 VibrationEffect.createOneShot(TEST_TIMING, VibrationEffect.DEFAULT_AMPLITUDE);
55 private static final VibrationEffect TEST_WAVEFORM =
56 VibrationEffect.createWaveform(TEST_TIMINGS, TEST_AMPLITUDES, -1);
62 VibrationEffect effect = VibrationEffect.get(Uri.parse(RINGTONE_URI_1), context); in getRingtones_noPrebakedRingtones()
70 VibrationEffect effect = VibrationEffect.get(Uri.parse(UNKNOWN_URI), context); in getRingtones_noPrebakedRingtoneForUri()
78 VibrationEffect effect = VibrationEffect.get(Uri.parse(RINGTONE_URI_2), context); in getRingtones_getPrebakedRingtone()
[all …]
/frameworks/base/core/java/android/os/
DVibrationEffect.java39 public abstract class VibrationEffect implements Parcelable { class
159 public VibrationEffect() { } in VibrationEffect() method in VibrationEffect
173 public static VibrationEffect createOneShot(long milliseconds, int amplitude) { in createOneShot()
174 VibrationEffect effect = new OneShot(milliseconds, amplitude); in createOneShot()
204 public static VibrationEffect createWaveform(long[] timings, int repeat) { in createWaveform()
207 amplitudes[i*2 + 1] = VibrationEffect.DEFAULT_AMPLITUDE; in createWaveform()
234 public static VibrationEffect createWaveform(long[] timings, int[] amplitudes, int repeat) { in createWaveform()
235 VibrationEffect effect = new Waveform(timings, amplitudes, repeat); in createWaveform()
258 public static VibrationEffect createPredefined(@EffectType int effectId) { in createPredefined()
281 public static VibrationEffect get(int effectId) { in get()
[all …]
DVibrationEffect.aidl19 parcelable VibrationEffect;
20 parcelable VibrationEffect.OneShotVibration;
21 parcelable VibrationEffect.WaveformVibration;
22 parcelable VibrationEffect.EffectVibration;
DVibrator.java183 VibrationEffect effect = in vibrate()
184 VibrationEffect.createOneShot(milliseconds, VibrationEffect.DEFAULT_AMPLITUDE); in vibrate()
253 vibrate(VibrationEffect.createWaveform(pattern, repeat), attributes); in vibrate()
260 public void vibrate(VibrationEffect vibe) { in vibrate()
265 public void vibrate(VibrationEffect vibe, AudioAttributes attributes) { in vibrate()
275 public abstract void vibrate(int uid, String opPkg, VibrationEffect vibe, in vibrate()
DIVibratorService.aidl19 import android.os.VibrationEffect;
26 void vibrate(int uid, String opPkg, in VibrationEffect effect, int usageHint, String reason, in vibrate()
DNullVibrator.java47 public void vibrate(int uid, String opPkg, VibrationEffect effect, in vibrate()
DSystemVibrator.java73 public void vibrate(int uid, String opPkg, VibrationEffect effect, in vibrate()
/frameworks/base/services/core/java/com/android/server/
DVibratorService.java54 import android.os.VibrationEffect;
126 private final SparseArray<VibrationEffect> mFallbackEffects;
202 public VibrationEffect effect;
206 public VibrationEffect originalEffect;
208 private Vibration(IBinder token, VibrationEffect effect, in Vibration()
237 if (effect instanceof VibrationEffect.Prebaked) { in isHapticFeedback()
238 VibrationEffect.Prebaked prebaked = (VibrationEffect.Prebaked) effect; in isHapticFeedback()
240 case VibrationEffect.EFFECT_CLICK: in isHapticFeedback()
241 case VibrationEffect.EFFECT_DOUBLE_CLICK: in isHapticFeedback()
242 case VibrationEffect.EFFECT_HEAVY_CLICK: in isHapticFeedback()
[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/core/java/com/android/server/biometrics/
DClientMonitor.java25 import android.os.VibrationEffect;
55 private final VibrationEffect mSuccessVibrationEffect;
56 private final VibrationEffect mErrorVibrationEffect;
98 mSuccessVibrationEffect = VibrationEffect.get(VibrationEffect.EFFECT_CLICK); in ClientMonitor()
99 mErrorVibrationEffect = VibrationEffect.get(VibrationEffect.EFFECT_DOUBLE_CLICK); in ClientMonitor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
DPipDismissViewController.java24 import android.os.VibrationEffect;
138 mVibe.vibrate(VibrationEffect.get(intersecting in updateTarget()
139 ? VibrationEffect.EFFECT_CLICK in updateTarget()
140 : VibrationEffect.EFFECT_TICK)); in updateTarget()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DVibratorHelper.java25 import android.os.VibrationEffect;
69 mVibrator.vibrate(VibrationEffect.get(effectId, false /* fallback */), in vibrate()
/frameworks/base/core/java/android/hardware/input/
DInputManager.java36 import android.os.VibrationEffect;
1195 public void vibrate(int uid, String opPkg, VibrationEffect effect, in vibrate()
1199 if (effect instanceof VibrationEffect.OneShot) { in vibrate()
1200 VibrationEffect.OneShot oneShot = (VibrationEffect.OneShot) effect; in vibrate()
1203 } else if (effect instanceof VibrationEffect.Waveform) { in vibrate()
1204 VibrationEffect.Waveform waveform = (VibrationEffect.Waveform) effect; in vibrate()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DBuzzBeepBlinkTest.java60 import android.os.VibrationEffect;
125 private static final VibrationEffect FALLBACK_VIBRATION =
126 VibrationEffect.createWaveform(FALLBACK_VIBRATION_PATTERN, -1);
365 verify(mVibrator, never()).vibrate(anyInt(), anyString(), (VibrationEffect) anyObject(), in verifyNeverVibrate()
704 VibrationEffect effect = VibrationEffect.createWaveform(r.getVibration(), -1); in testNoDemoteSoundToVibrateIfVibrateGiven()
1352 static class VibrateRepeatMatcher implements ArgumentMatcher<VibrationEffect> {
1360 public boolean matches(VibrationEffect actual) { in matches()
1361 if (actual instanceof VibrationEffect.Waveform && in matches()
1362 ((VibrationEffect.Waveform) actual).getRepeatIndex() == mRepeatIndex) { in matches()
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/
DVolumeDialogController.java22 import android.os.VibrationEffect;
48 void vibrate(VibrationEffect effect); in vibrate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNavigationBarEdgePanel.java27 import android.os.VibrationEffect;
539 mVibratorHelper.vibrate(VibrationEffect.EFFECT_CLICK); in triggerBack()
616 mVibratorHelper.vibrate(VibrationEffect.EFFECT_TICK); in handleMoveEvent()
DPanelView.java27 import android.os.VibrationEffect;
413 mVibratorHelper.vibrate(VibrationEffect.EFFECT_TICK); in startOpening()
DStatusBar.java94 import android.os.VibrationEffect;
1791 mVibratorHelper.vibrate(VibrationEffect.EFFECT_TICK); in handleSystemKey()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DVolumeDialogImpl.java60 import android.os.VibrationEffect;
626 VibrationEffect effect = null; in provideTouchFeedbackH()
632 effect = VibrationEffect.get(VibrationEffect.EFFECT_CLICK); in provideTouchFeedbackH()
636 effect = VibrationEffect.get(VibrationEffect.EFFECT_DOUBLE_CLICK); in provideTouchFeedbackH()
934 mController.vibrate(VibrationEffect.get(VibrationEffect.EFFECT_HEAVY_CLICK)); in onStateChangedH()
DVolumeDialogControllerImpl.java46 import android.os.VibrationEffect;
357 public void vibrate(VibrationEffect effect) { in vibrate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/
DBubbleStackView.java38 import android.os.VibrationEffect;
1193 mVibrator.vibrate(VibrationEffect.get(toTarget
1194 ? VibrationEffect.EFFECT_CLICK
1195 : VibrationEffect.EFFECT_TICK));
1208 mVibrator.vibrate(VibrationEffect.get(VibrationEffect.EFFECT_CLICK)); in magnetToStackIfNeededThenAnimateDismissal()
/frameworks/base/services/core/java/com/android/server/policy/
DPhoneWindowManager.java160 import android.os.VibrationEffect;
5298 VibrationEffect effect = getVibrationEffect(effectId); in performHapticFeedback()
5307 private VibrationEffect getVibrationEffect(int effectId) { in getVibrationEffect()
5311 return VibrationEffect.get(VibrationEffect.EFFECT_TICK); in getVibrationEffect()
5318 return VibrationEffect.get(VibrationEffect.EFFECT_TEXTURE_TICK); in getVibrationEffect()
5324 return VibrationEffect.get(VibrationEffect.EFFECT_TICK, false); in getVibrationEffect()
5330 return VibrationEffect.get(VibrationEffect.EFFECT_CLICK); in getVibrationEffect()
5333 return VibrationEffect.get(VibrationEffect.EFFECT_HEAVY_CLICK); in getVibrationEffect()
5335 return VibrationEffect.get(VibrationEffect.EFFECT_DOUBLE_CLICK); in getVibrationEffect()
5352 return VibrationEffect.createOneShot(pattern[0], VibrationEffect.DEFAULT_AMPLITUDE); in getVibrationEffect()
[all …]
/frameworks/base/services/core/java/com/android/server/power/
DNotifier.java45 import android.os.VibrationEffect;
106 private static final VibrationEffect WIRELESS_CHARGING_VIBRATION_EFFECT =
107 VibrationEffect.createWaveform(WIRELESS_VIBRATION_TIME, WIRELESS_VIBRATION_AMPLITUDE,
/frameworks/base/api/
Dtest-current.txt2011 public abstract class VibrationEffect implements android.os.Parcelable {
2012 method public static android.os.VibrationEffect get(int);
2013 method public static android.os.VibrationEffect get(int, boolean);
2014 …method @Nullable public static android.os.VibrationEffect get(android.net.Uri, android.content.Con…
2026 …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 …field @NonNull public static final android.os.Parcelable.Creator<android.os.VibrationEffect.OneSho…
2037 …public static class VibrationEffect.Prebaked extends android.os.VibrationEffect implements android…
[all …]
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java119 import android.os.VibrationEffect;
2915 VibrationEffect effect = null; in silenceRingerModeInternal()
2929 effect = VibrationEffect.get(VibrationEffect.EFFECT_DOUBLE_CLICK); in silenceRingerModeInternal()
2934 effect = VibrationEffect.get(VibrationEffect.EFFECT_HEAVY_CLICK); in silenceRingerModeInternal()
2944 private boolean maybeVibrate(VibrationEffect effect, String reason) { in maybeVibrate()

12