SetStreamMute works only for SYSTEM and MUSIC. For all the other you should use SetStreamVolume.
Try the following code:
AudioManager audioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
audioManager.setStreamMute(AudioManager.STREAM_SYSTEM, true);
audioManager.setStreamMute(AudioManager.STREAM_MUSIC,true);
audioManager.setStreamVolume(AudioManager.STREAM_ALARM, 0, 0);
audioManager.setStreamVolume(AudioManager.STREAM_DTMF, 0, 0);
audioManager.setStreamVolume(AudioManager.STREAM_NOTIFICATION, 0, 0);
audioManager.setStreamVolume(AudioManager.STREAM_RING, 0, 0);
For sanity check:
Log.d(TAG, String.format("%d, %d, %d, %d, %d, %d, %d",
audioManager.getStreamVolume(AudioManager.STREAM_SYSTEM),
audioManager.getStreamVolume(AudioManager.STREAM_MUSIC),
audioManager.getStreamVolume(AudioManager.STREAM_ALARM),
audioManager.getStreamVolume(AudioManager.STREAM_DTMF),
audioManager.getStreamVolume(AudioManager.STREAM_NOTIFICATION),
audioManager.getStreamVolume(AudioManager.STREAM_RING)
));
The result should give: 0, 0, 0, 0, 0, 0
Keep in mind that the games with volume (exclude setStreamMute) won't reset the previous values after activity dies, so you probably want to store them to restore in onDestroy() or earlier.