/frameworks/base/core/tests/coretests/src/android/os/ |
D | VibrationEffectTest.java | 49 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/ |
D | VibrationEffect.java | 40 public abstract class VibrationEffect implements Parcelable { class 157 public VibrationEffect() { } in VibrationEffect() method in VibrationEffect 171 public static VibrationEffect createOneShot(long milliseconds, int amplitude) { in createOneShot() 172 VibrationEffect effect = new OneShot(milliseconds, amplitude); in createOneShot() 202 public static VibrationEffect createWaveform(long[] timings, int repeat) { in createWaveform() 205 amplitudes[i*2 + 1] = VibrationEffect.DEFAULT_AMPLITUDE; in createWaveform() 232 public static VibrationEffect createWaveform(long[] timings, int[] amplitudes, int repeat) { in createWaveform() 233 VibrationEffect effect = new Waveform(timings, amplitudes, repeat); in createWaveform() 256 public static VibrationEffect createPredefined(@EffectType int effectId) { in createPredefined() 279 public static VibrationEffect get(int effectId) { in get() [all …]
|
D | Vibrator.java | 167 public boolean setAlwaysOnEffect(int alwaysOnId, @Nullable VibrationEffect effect, in setAlwaysOnEffect() 177 @Nullable VibrationEffect effect, @Nullable AudioAttributes attributes) { in setAlwaysOnEffect() 211 VibrationEffect effect = in vibrate() 212 VibrationEffect.createOneShot(milliseconds, VibrationEffect.DEFAULT_AMPLITUDE); in vibrate() 281 vibrate(VibrationEffect.createWaveform(pattern, repeat), attributes); in vibrate() 288 public void vibrate(VibrationEffect vibe) { in vibrate() 293 public void vibrate(VibrationEffect vibe, AudioAttributes attributes) { in vibrate() 303 public abstract void vibrate(int uid, String opPkg, VibrationEffect vibe, in vibrate()
|
D | VibrationEffect.aidl | 19 parcelable VibrationEffect; 20 parcelable VibrationEffect.OneShotVibration; 21 parcelable VibrationEffect.WaveformVibration; 22 parcelable VibrationEffect.EffectVibration;
|
D | IVibratorService.aidl | 20 import android.os.VibrationEffect; 27 boolean setAlwaysOnEffect(int uid, String opPkg, int alwaysOnId, in VibrationEffect effect, in setAlwaysOnEffect() 29 void vibrate(int uid, String opPkg, in VibrationEffect effect, in AudioAttributes attributes, in vibrate()
|
D | SystemVibrator.java | 73 public boolean setAlwaysOnEffect(int uid, String opPkg, int alwaysOnId, VibrationEffect effect, in setAlwaysOnEffect() 88 public void vibrate(int uid, String opPkg, VibrationEffect effect, in vibrate()
|
D | NullVibrator.java | 47 public void vibrate(int uid, String opPkg, VibrationEffect effect, in vibrate()
|
/frameworks/base/services/core/java/com/android/server/ |
D | VibratorService.java | 56 import android.os.VibrationEffect; 132 private final SparseArray<VibrationEffect> mFallbackEffects; 212 public VibrationEffect effect; 216 public VibrationEffect originalEffect; 218 private Vibration(IBinder token, VibrationEffect effect, in Vibration() 255 if (effect instanceof VibrationEffect.Prebaked) { in isHapticFeedback() 256 VibrationEffect.Prebaked prebaked = (VibrationEffect.Prebaked) effect; in isHapticFeedback() 258 case VibrationEffect.EFFECT_CLICK: in isHapticFeedback() 259 case VibrationEffect.EFFECT_DOUBLE_CLICK: in isHapticFeedback() 260 case VibrationEffect.EFFECT_HEAVY_CLICK: in isHapticFeedback() [all …]
|
/frameworks/base/tests/permission/src/com/android/framework/permission/tests/ |
D | VibratorServicePermissionTest.java | 25 import android.os.VibrationEffect; 53 final VibrationEffect effect = in testVibrate() 54 VibrationEffect.createOneShot(100, VibrationEffect.DEFAULT_AMPLITUDE); in testVibrate()
|
/frameworks/base/services/core/java/com/android/server/biometrics/ |
D | ClientMonitor.java | 25 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/ |
D | PipDismissViewController.java | 24 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/ |
D | VibratorHelper.java | 25 import android.os.VibrationEffect; 69 mVibrator.vibrate(VibrationEffect.get(effectId, false /* fallback */), in vibrate()
|
/frameworks/base/core/java/android/hardware/input/ |
D | InputManager.java | 36 import android.os.VibrationEffect; 1211 public void vibrate(int uid, String opPkg, VibrationEffect effect, in vibrate() 1215 if (effect instanceof VibrationEffect.OneShot) { in vibrate() 1216 VibrationEffect.OneShot oneShot = (VibrationEffect.OneShot) effect; in vibrate() 1219 } else if (effect instanceof VibrationEffect.Waveform) { in vibrate() 1220 VibrationEffect.Waveform waveform = (VibrationEffect.Waveform) effect; in vibrate()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | BuzzBeepBlinkTest.java | 60 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() 1368 static class VibrateRepeatMatcher implements ArgumentMatcher<VibrationEffect> { 1376 public boolean matches(VibrationEffect actual) { in matches() 1377 if (actual instanceof VibrationEffect.Waveform && in matches() 1378 ((VibrationEffect.Waveform) actual).getRepeatIndex() == mRepeatIndex) { in matches()
|
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/ |
D | VolumeDialogController.java | 22 import android.os.VibrationEffect; 48 void vibrate(VibrationEffect effect); in vibrate()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
D | VolumeDialogImpl.java | 60 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()
|
D | VolumeDialogControllerImpl.java | 47 import android.os.VibrationEffect; 358 public void vibrate(VibrationEffect effect) { in vibrate()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | NavigationBarEdgePanel.java | 27 import android.os.VibrationEffect; 539 mVibratorHelper.vibrate(VibrationEffect.EFFECT_CLICK); in triggerBack() 616 mVibratorHelper.vibrate(VibrationEffect.EFFECT_TICK); in handleMoveEvent()
|
D | PanelView.java | 27 import android.os.VibrationEffect; 429 mVibratorHelper.vibrate(VibrationEffect.EFFECT_TICK); in maybeVibrateOnOpening()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/ |
D | BubbleStackView.java | 42 import android.os.VibrationEffect; 1278 mVibrator.vibrate(VibrationEffect.get(toTarget 1279 ? VibrationEffect.EFFECT_CLICK 1280 : VibrationEffect.EFFECT_TICK)); 1293 mVibrator.vibrate(VibrationEffect.get(VibrationEffect.EFFECT_CLICK)); in magnetToStackIfNeededThenAnimateDismissal()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | PhoneWindowManager.java | 162 import android.os.VibrationEffect; 5317 VibrationEffect effect = getVibrationEffect(effectId); in performHapticFeedback() 5326 private VibrationEffect getVibrationEffect(int effectId) { in getVibrationEffect() 5330 return VibrationEffect.get(VibrationEffect.EFFECT_TICK); in getVibrationEffect() 5337 return VibrationEffect.get(VibrationEffect.EFFECT_TEXTURE_TICK); in getVibrationEffect() 5343 return VibrationEffect.get(VibrationEffect.EFFECT_TICK, false); in getVibrationEffect() 5349 return VibrationEffect.get(VibrationEffect.EFFECT_CLICK); in getVibrationEffect() 5352 return VibrationEffect.get(VibrationEffect.EFFECT_HEAVY_CLICK); in getVibrationEffect() 5354 return VibrationEffect.get(VibrationEffect.EFFECT_DOUBLE_CLICK); in getVibrationEffect() 5371 return VibrationEffect.createOneShot(pattern[0], VibrationEffect.DEFAULT_AMPLITUDE); in getVibrationEffect() [all …]
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | Notifier.java | 45 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/ |
D | test-lint-baseline.txt | 286 ContextFirst: android.os.VibrationEffect#get(android.net.Uri, android.content.Context) parameter #1: 1258 MissingNullability: android.os.VibrationEffect#RINGTONES: 1260 MissingNullability: android.os.VibrationEffect#get(android.net.Uri, android.content.Context) parame… 1262 MissingNullability: android.os.VibrationEffect#get(android.net.Uri, android.content.Context) parame… 1264 MissingNullability: android.os.VibrationEffect#get(int): 1266 MissingNullability: android.os.VibrationEffect#get(int, boolean): 1268 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… 1274 MissingNullability: android.os.VibrationEffect.Prebaked#Prebaked(android.os.Parcel) parameter #0: [all …]
|
D | test-current.txt | 2262 public abstract class VibrationEffect implements android.os.Parcelable { 2263 method public static android.os.VibrationEffect get(int); 2264 method public static android.os.VibrationEffect get(int, boolean); 2265 …method @Nullable public static android.os.VibrationEffect get(android.net.Uri, android.content.Con… 2277 …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 …field @NonNull public static final android.os.Parcelable.Creator<android.os.VibrationEffect.OneSho… 2288 …public static class VibrationEffect.Prebaked extends android.os.VibrationEffect implements android… [all …]
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | AudioService.java | 114 import android.os.VibrationEffect; 3009 VibrationEffect effect = null; in silenceRingerModeInternal() 3023 effect = VibrationEffect.get(VibrationEffect.EFFECT_DOUBLE_CLICK); in silenceRingerModeInternal() 3028 effect = VibrationEffect.get(VibrationEffect.EFFECT_HEAVY_CLICK); in silenceRingerModeInternal() 3038 private boolean maybeVibrate(VibrationEffect effect, String reason) { in maybeVibrate()
|