Searched refs:mHasVibrator (Results 1 – 1 of 1) sorted by relevance
57 private boolean mHasVibrator; field in AudioManagerTest70 mHasVibrator = (vibrator != null) && vibrator.hasVibrator(); in setUp()190 if (mUseFixedVolume || !mHasVibrator) { in testVibrateNotification()198 assertEquals(mHasVibrator ? VIBRATE_SETTING_ON : VIBRATE_SETTING_OFF, in testVibrateNotification()201 assertEquals(mHasVibrator, mAudioManager.shouldVibrate(VIBRATE_TYPE_NOTIFICATION)); in testVibrateNotification()207 assertEquals(mHasVibrator ? RINGER_MODE_VIBRATE : RINGER_MODE_SILENT, in testVibrateNotification()209 assertEquals(mHasVibrator, mAudioManager.shouldVibrate(VIBRATE_TYPE_NOTIFICATION)); in testVibrateNotification()222 assertEquals(mHasVibrator ? RINGER_MODE_VIBRATE : RINGER_MODE_SILENT, in testVibrateNotification()228 assertEquals(mHasVibrator ? VIBRATE_SETTING_ONLY_SILENT : VIBRATE_SETTING_OFF, in testVibrateNotification()237 assertEquals(mHasVibrator ? RINGER_MODE_VIBRATE : RINGER_MODE_SILENT, in testVibrateNotification()[all …]