Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eb7be1bf authored by Jean-Michel Trivi's avatar Jean-Michel Trivi Committed by Android (Google) Code Review
Browse files

Merge "NotificationManagerServiceTest: fix notification playback test" into main

parents 4187a64f dd3d5d86
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -9746,8 +9746,11 @@ public class NotificationManagerServiceTest extends UiServiceTestCase {
            throws RemoteException {
        IRingtonePlayer mockPlayer = mock(IRingtonePlayer.class);
        when(mAudioManager.getRingtonePlayer()).thenReturn(mockPlayer);
        // Set up volume to be above 0 for the sound to actually play
        // Set up volume to be above 0, and for AudioManager to signal playback should happen,
        // for the sound to actually play
        when(mAudioManager.getStreamVolume(anyInt())).thenReturn(10);
        when(mAudioManager.shouldNotificationSoundPlay(any(android.media.AudioAttributes.class)))
                .thenReturn(true);
        setUpPrefsForBubbles(PKG, mUid,
                true /* global */,