Home
last modified time | relevance | path

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

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DBuzzBeepBlinkTest.java85 @Mock android.media.IRingtonePlayer mRingtonePlayer; field in BuzzBeepBlinkTest
128 when(mAudioManager.getRingtonePlayer()).thenReturn(mRingtonePlayer); in setUp()
317 verify(mRingtonePlayer, never()).playAsync((Uri) anyObject(), (UserHandle) anyObject(), in verifyNeverBeep()
322 verify(mRingtonePlayer, times(1)).playAsync((Uri) anyObject(), (UserHandle) anyObject(), in verifyBeep()
327 verify(mRingtonePlayer, times(1)).playAsync((Uri) anyObject(), (UserHandle) anyObject(), in verifyBeepLooped()
332 verify(mRingtonePlayer, times(1)).playAsync(eq(CUSTOM_SOUND), (UserHandle) anyObject(), in verifyCustomBeep()
337 verify(mRingtonePlayer, never()).stopAsync(); in verifyNeverStopAudio()
341 verify(mRingtonePlayer, times(1)).stopAsync(); in verifyStopAudio()
458 Mockito.reset(mRingtonePlayer); in testBeepTwice()
476 Mockito.reset(mRingtonePlayer); in testHonorAlertOnlyOnceForBeep()
[all …]
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java584 private volatile IRingtonePlayer mRingtonePlayer; field in AudioService
6868 mRingtonePlayer = player; in setRingtonePlayer()
6873 return mRingtonePlayer; in getRingtonePlayer()