Lines Matching defs:AudioManager
32 import android.media.AudioManager;
85 // transitions for AudioManager.setMode() are allowed.
284 setAudioMode(phone.getContext(), AudioManager.MODE_IN_CALL);
560 setAudioMode(phone.getContext(), AudioManager.MODE_IN_CALL);
660 setAudioMode(phone.getContext(), AudioManager.MODE_IN_CALL);
1664 AudioManager audioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
1666 audioManager.setSpeakerphoneOn(flag);
1702 AudioManager audioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
1703 return audioManager.isSpeakerphoneOn();
1709 AudioManager audioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
1716 audioManager.setParameters("noise_suppression=auto");
1718 audioManager.setParameters("noise_suppression=off");
1749 AudioManager audioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
1750 String noiseSuppression = audioManager.getParameters("noise_suppression");
1789 AudioManager audioManager =
1790 (AudioManager) phone.getContext().getSystemService(Context.AUDIO_SERVICE);
1792 audioManager.setMicrophoneMute(muted);
1808 AudioManager audioManager =
1809 (AudioManager) phone.getContext().getSystemService(Context.AUDIO_SERVICE);
1810 return audioManager.isMicrophoneMute();
1817 * A really simple wrapper around AudioManager.setMode(),
1833 ignore = ((mode == AudioManager.MODE_NORMAL) || (mode == AudioManager.MODE_IN_CALL));
1836 ignore = ((mode == AudioManager.MODE_NORMAL) || (mode == AudioManager.MODE_RINGTONE));
1840 ignore = (mode == AudioManager.MODE_IN_CALL);
1845 AudioManager audioManager =
1846 (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
1849 audioManager.setMode(mode);
1857 case AudioManager.MODE_INVALID: return "MODE_INVALID";
1858 case AudioManager.MODE_CURRENT: return "MODE_CURRENT";
1859 case AudioManager.MODE_NORMAL: return "MODE_NORMAL";
1860 case AudioManager.MODE_RINGTONE: return "MODE_RINGTONE";
1861 case AudioManager.MODE_IN_CALL: return "MODE_IN_CALL";