Home
last modified time | relevance | path

Searched refs:mHasVibrator (Results 1 – 1 of 1) sorted by relevance

/cts/tests/tests/media/src/android/media/cts/
DAudioManagerTest.java59 private boolean mHasVibrator; field in AudioManagerTest
73 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 …]