Searched refs:mHasVibrator (Results 1 – 1 of 1) sorted by relevance
59 private boolean mHasVibrator; field in AudioManagerTest73 mHasVibrator = (vibrator != null) && vibrator.hasVibrator(); in setUp()198 if (mUseFixedVolume || !mHasVibrator) { in testVibrateNotification()205 assertEquals(mHasVibrator ? VIBRATE_SETTING_ON : VIBRATE_SETTING_OFF, in testVibrateNotification()208 assertEquals(mHasVibrator, mAudioManager.shouldVibrate(VIBRATE_TYPE_NOTIFICATION)); in testVibrateNotification()214 assertEquals(mHasVibrator ? RINGER_MODE_VIBRATE : RINGER_MODE_SILENT, in testVibrateNotification()216 assertEquals(mHasVibrator, mAudioManager.shouldVibrate(VIBRATE_TYPE_NOTIFICATION)); in testVibrateNotification()229 assertEquals(mHasVibrator ? RINGER_MODE_VIBRATE : RINGER_MODE_SILENT, in testVibrateNotification()235 assertEquals(mHasVibrator ? VIBRATE_SETTING_ONLY_SILENT : VIBRATE_SETTING_OFF, in testVibrateNotification()244 assertEquals(mHasVibrator ? RINGER_MODE_VIBRATE : RINGER_MODE_SILENT, in testVibrateNotification()[all …]