Searched refs:mVibrator (Results 1 - 21 of 21) sorted by relevance

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DAudioAndHapticFeedbackManager.java36 private Vibrator mVibrator; field in class:AudioAndHapticFeedbackManager
58 mVibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE);
68 return mVibrator != null && mVibrator.hasVibrator();
72 if (mVibrator == null) {
75 mVibrator.vibrate(milliseconds);
/packages/apps/Settings/src/com/android/settings/notification/
H A DVibrationPreferenceController.java32 private final Vibrator mVibrator; field in class:VibrationPreferenceController
36 mVibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE);
51 && mVibrator != null
52 && mVibrator.hasVibrator();
H A DRingVolumePreferenceController.java44 private Vibrator mVibrator; field in class:RingVolumePreferenceController
58 mVibrator = (Vibrator) mContext.getSystemService(Context.VIBRATOR_SERVICE);
59 if (mVibrator != null && !mVibrator.hasVibrator()) {
60 mVibrator = null;
/packages/apps/Nfc/src/com/android/nfc/
H A DP2pEventManager.java38 final Vibrator mVibrator; field in class:P2pEventManager
52 mVibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE);
87 mVibrator.vibrate(VIBRATION_PATTERN, -1);
104 mVibrator.vibrate(VIBRATION_PATTERN, -1);
115 mVibrator.vibrate(VIBRATION_PATTERN, -1);
126 mVibrator.vibrate(VIBRATION_PATTERN, -1);
136 mVibrator.vibrate(VIBRATION_PATTERN, -1);
144 mVibrator.vibrate(VIBRATION_PATTERN, -1);
200 mVibrator.vibrate(VIBRATION_PATTERN, -1);
H A DNfcService.java276 private Vibrator mVibrator; field in class:NfcService
451 mVibrator = (Vibrator) mContext.getSystemService(Context.VIBRATOR_SERVICE);
2425 mVibrator.vibrate(mVibrationEffect);
2448 mVibrator.vibrate(mVibrationEffect);
/packages/apps/Settings/src/com/android/settings/accessibility/
H A DHapticFeedbackIntensityPreferenceController.java40 return mVibrator.getDefaultHapticFeedbackIntensity();
H A DNotificationVibrationIntensityPreferenceController.java40 return mVibrator.getDefaultNotificationVibrationIntensity();
H A DVibrationIntensityPreferenceController.java38 protected final Vibrator mVibrator; field in class:VibrationIntensityPreferenceController
47 mVibrator = mContext.getSystemService(Vibrator.class);
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
H A DVibrateOnTouchPreferenceControllerTest.java54 private Vibrator mVibrator; field in class:VibrateOnTouchPreferenceControllerTest
62 when(mActivity.getSystemService(Context.VIBRATOR_SERVICE)).thenReturn(mVibrator);
63 when(mContext.getSystemService(Context.VIBRATOR_SERVICE)).thenReturn(mVibrator);
64 when(mVibrator.hasVibrator()).thenReturn(true);
81 when(mVibrator.hasVibrator()).thenReturn(false);
H A DNotificationVolumePreferenceControllerTest.java48 private Vibrator mVibrator; field in class:NotificationVolumePreferenceControllerTest
59 when(mContext.getSystemService(Context.VIBRATOR_SERVICE)).thenReturn(mVibrator);
H A DRingVolumePreferenceControllerTest.java49 private Vibrator mVibrator; field in class:RingVolumePreferenceControllerTest
64 shadowContext.setSystemService(Context.VIBRATOR_SERVICE, mVibrator);
H A DVibrationPreferenceControllerTest.java63 private Vibrator mVibrator; field in class:VibrationPreferenceControllerTest
77 shadowApplication.setSystemService(Context.VIBRATOR_SERVICE, mVibrator);
82 when(mVibrator.hasVibrator()).thenReturn(true);
94 when(mVibrator.hasVibrator()).thenReturn(false);
/packages/services/Telephony/src/com/android/services/telephony/
H A DEmergencyTonePlayer.java54 private final Vibrator mVibrator = new SystemVibrator(); field in class:EmergencyTonePlayer
94 mVibrator.vibrate(VIBRATE_PATTERN, 0, VIBRATION_ATTRIBUTES);
101 mVibrator.cancel();
/packages/services/Telecomm/src/com/android/server/telecom/
H A DRinger.java90 private final Vibrator mVibrator; field in class:Ringer
105 * Used to track the status of {@link #mVibrator} in the case of simultaneous incoming calls.
125 mVibrator = vibrator;
198 mVibrator.vibrate(effect, VIBRATION_ATTRIBUTES);
259 mVibrator.cancel();
314 mVibrator.hasVibrator(), mSystemSettingsUtil.canVibrateWhenRinging(context),
319 mVibrator.hasVibrator(), mSystemSettingsUtil.canVibrateWhenRinging(context),
327 if (!mVibrator.hasVibrator()) {
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
H A DTextCandidates1LineViewManager.java106 private Vibrator mVibrator = null; field in class:TextCandidates1LineViewManager
521 mVibrator = (Vibrator)mWnn.getSystemService(Context.VIBRATOR_SERVICE);
523 mVibrator = null;
547 if (mVibrator != null) {
549 mVibrator.vibrate(5);
H A DDefaultSoftKeyboard.java295 protected Vibrator mVibrator = null; field in class:DefaultSoftKeyboard
744 mVibrator = (Vibrator)mWnn.getSystemService(Context.VIBRATOR_SERVICE);
746 mVibrator = null;
829 if (mVibrator != null) {
830 try { mVibrator.vibrate(5); } catch (Exception ex) { }
H A DTextCandidatesViewManager.java150 private Vibrator mVibrator = null; field in class:TextCandidatesViewManager
1195 mVibrator = (Vibrator)mWnn.getSystemService(Context.VIBRATOR_SERVICE);
1197 mVibrator = null;
1300 if (mVibrator != null) {
1302 mVibrator.vibrate(5);
1326 if (mVibrator != null) {
1328 mVibrator.vibrate(5);
1339 if (mVibrator != null) {
1341 mVibrator.vibrate(5);
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
H A DCellBroadcastAlertAudio.java112 private Vibrator mVibrator; field in class:CellBroadcastAlertAudio
254 mVibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE);
389 mVibrator.vibrate(vibrationPattern, 0);
523 mVibrator.cancel();
/packages/apps/Settings/src/com/android/settings/fingerprint/
H A DFingerprintEnrollEnrolling.java102 private Vibrator mVibrator; field in class:FingerprintEnrollEnrolling
113 mVibrator = getSystemService(Vibrator.class);
355 mVibrator.vibrate(VIBRATE_EFFECT_ERROR, FINGERPRINT_ENROLLING_SONFICATION_ATTRIBUTES);
/packages/apps/Launcher2/src/com/android/launcher2/
H A DDragController.java69 private final Vibrator mVibrator; field in class:DragController
154 mVibrator = (Vibrator) launcher.getSystemService(Context.VIBRATOR_SERVICE);
244 mVibrator.vibrate(VIBRATE_DURATION);
/packages/apps/Stk/src/com/android/stk/
H A DStkAppService.java180 private Vibrator mVibrator = null; field in class:StkAppService
2133 mVibrator = (Vibrator)getSystemService(VIBRATOR_SERVICE);
2148 mVibrator.vibrate(timeout);
2195 if (mVibrator != null) {
2196 mVibrator.cancel();
2197 mVibrator = null;

Completed in 818 milliseconds