Lines Matching refs:AudioManager
28 import android.media.AudioManager;
105 private AudioManager mAudioManager;
110 if (intent.getAction().equals(AudioManager.RINGER_MODE_CHANGED_ACTION)) {
137 mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
233 IntentFilter filter = new IntentFilter(AudioManager.RINGER_MODE_CHANGED_ACTION);
252 mAudioManager.getVibrateSetting(AudioManager.VIBRATE_TYPE_RINGER);
255 if (callsVibrateSetting == AudioManager.VIBRATE_SETTING_OFF) {
258 AudioManager.VIBRATE_TYPE_RINGER,
259 AudioManager.VIBRATE_SETTING_ONLY_SILENT);
261 if (callsVibrateSetting == AudioManager.VIBRATE_SETTING_ON) {
267 if (callsVibrateSetting == AudioManager.VIBRATE_SETTING_ONLY_SILENT) {
270 AudioManager.VIBRATE_TYPE_RINGER,
271 AudioManager.VIBRATE_SETTING_OFF);
273 if (callsVibrateSetting == AudioManager.VIBRATE_SETTING_ON) {
286 callsVibrateSetting = AudioManager.VIBRATE_SETTING_ON;
289 callsVibrateSetting = AudioManager.VIBRATE_SETTING_OFF;
292 callsVibrateSetting = AudioManager.VIBRATE_SETTING_ONLY_SILENT;
295 callsVibrateSetting = AudioManager.VIBRATE_SETTING_ON;
307 vibeInSilent ? AudioManager.RINGER_MODE_VIBRATE
308 : AudioManager.RINGER_MODE_SILENT);
312 AudioManager.VIBRATE_TYPE_RINGER,
326 ringerMode != AudioManager.RINGER_MODE_NORMAL;
380 vibeInSilent ? AudioManager.RINGER_MODE_VIBRATE
381 : AudioManager.RINGER_MODE_SILENT);
383 mAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL);