/development/samples/RandomMusicPlayer/src/com/example/android/musicplayer/ |
MediaButtonHelper.java | 4 import android.media.AudioManager; 26 sMethodRegisterMediaButtonEventReceiver = AudioManager.class.getMethod( 29 sMethodUnregisterMediaButtonEventReceiver = AudioManager.class.getMethod( 37 public static void registerMediaButtonEventReceiverCompat(AudioManager audioManager, 43 sMethodRegisterMediaButtonEventReceiver.invoke(audioManager, receiver); 62 public static void unregisterMediaButtonEventReceiverCompat(AudioManager audioManager, 68 sMethodUnregisterMediaButtonEventReceiver.invoke(audioManager, receiver);
|
RemoteControlHelper.java | 19 import android.media.AudioManager; 42 sRegisterRemoteControlClientMethod = AudioManager.class.getMethod( 44 sUnregisterRemoteControlClientMethod = AudioManager.class.getMethod( 58 public static void registerRemoteControlClient(AudioManager audioManager, 65 sRegisterRemoteControlClientMethod.invoke(audioManager, 73 public static void unregisterRemoteControlClient(AudioManager audioManager, 80 sUnregisterRemoteControlClientMethod.invoke(audioManager,
|
/frameworks/base/services/java/com/android/server/ |
NotificationPlayer.java | 20 import android.media.AudioManager; 83 AudioManager audioManager = 84 (AudioManager) mCmd.context.getSystemService(Context.AUDIO_SERVICE); 94 audioManager.requestAudioFocus(null, mCmd.stream, 95 AudioManager.AUDIOFOCUS_GAIN); 97 audioManager.requestAudioFocus(null, mCmd.stream, 98 AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK); 111 mAudioManager = audioManager; 232 private AudioManager mAudioManager [all...] |
NotificationManagerService.java | 39 import android.media.AudioManager; 80 private static final int DEFAULT_STREAM_TYPE = AudioManager.STREAM_NOTIFICATION; 796 final AudioManager audioManager = (AudioManager) mContext 818 if (audioManager.getStreamVolume(audioStreamType) != 0) { [all...] |
/packages/apps/Phone/src/com/android/phone/ |
Ringer.java | 20 import android.media.AudioManager; 162 AudioManager audioManager = 163 (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); 165 if (audioManager.getStreamVolume(AudioManager.STREAM_RING) == 0) { 197 AudioManager audioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); 198 return audioManager.shouldVibrate(AudioManager.VIBRATE_TYPE_RINGER) [all...] |
PhoneUtils.java | 31 import android.media.AudioManager; 88 // transitions for AudioManager.setMode() are allowed. [all...] |
EmergencyDialer.java | 29 import android.media.AudioManager; 88 private static final int DIAL_TONE_STREAM_TYPE = AudioManager.STREAM_MUSIC; 450 mToneGenerator = new ToneGenerator(AudioManager.STREAM_DTMF, 534 AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); 535 int ringerMode = audioManager.getRingerMode(); 536 if ((ringerMode == AudioManager.RINGER_MODE_SILENT) 537 || (ringerMode == AudioManager.RINGER_MODE_VIBRATE)) {
|
PhoneApp.java | 33 import android.media.AudioManager; 537 intentFilter.addAction(AudioManager.RINGER_MODE_CHANGED_ACTION); 596 AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); 597 audioManager.setParameter(CallFeaturesSetting.HAC_KEY, hac != 0 ? [all...] |
NotificationMgr.java | 30 import android.media.AudioManager; 517 * called AudioManager.setSpeakerphoneOn() yourself) then you should 524 AudioManager audioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); 526 (mPhone.getState() == Phone.State.OFFHOOK) && audioManager.isSpeakerphoneOn(); [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/ |
AccessibilityUtils.java | 22 import android.media.AudioManager; 83 final AudioManager audioManager = (AudioManager) context 85 mAudioManager = new AudioManagerCompatWrapper(audioManager);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
PhoneStatusBarPolicy.java | 26 import android.media.AudioManager; 125 else if (action.equals(AudioManager.RINGER_MODE_CHANGED_ACTION) || 126 action.equals(AudioManager.VIBRATE_SETTING_CHANGED_ACTION)) { 146 filter.addAction(AudioManager.RINGER_MODE_CHANGED_ACTION); 147 filter.addAction(AudioManager.VIBRATE_SETTING_CHANGED_ACTION); 234 AudioManager audioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); 235 final int ringerMode = audioManager.getRingerMode(); 236 final boolean visible = ringerMode == AudioManager.RINGER_MODE_SILENT | [all...] |
/frameworks/base/core/java/android/webkit/ |
HTML5Audio.java | 20 import android.media.AudioManager; 46 AudioManager.OnAudioFocusChangeListener { 239 case AudioManager.AUDIOFOCUS_GAIN: 249 case AudioManager.AUDIOFOCUS_LOSS: 257 case AudioManager.AUDIOFOCUS_LOSS_TRANSIENT: 258 case AudioManager.AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK: 275 AudioManager audioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); 276 int result = audioManager.requestAudioFocus(this, AudioManager.STREAM_MUSIC [all...] |
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
PhoneFallbackEventHandler.java | 25 import android.media.AudioManager; 41 AudioManager mAudioManager; 56 AudioManager.USE_DEFAULT_STREAM_TYPE); 82 getAudioManager().handleKeyDown(keyCode, AudioManager.USE_DEFAULT_STREAM_TYPE); 197 AudioManager audioManager = (AudioManager)mContext.getSystemService( 199 if (audioManager != null) { 201 AudioManager.USE_DEFAULT_STREAM_TYPE); 280 AudioManager getAudioManager() [all...] |
GlobalActions.java | 26 import android.media.AudioManager; 62 private final AudioManager mAudioManager; 82 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); 208 mAudioManager.getRingerMode() != AudioManager.RINGER_MODE_NORMAL; 217 IntentFilter filter = new IntentFilter(AudioManager.RINGER_MODE_CHANGED_ACTION); 501 private final AudioManager mAudioManager; 504 SilentModeAction(AudioManager audioManager, Handler handler) { 505 mAudioManager = audioManager; 595 if (intent.getAction().equals(AudioManager.RINGER_MODE_CHANGED_ACTION)) [all...] |
PhoneWindow.java | 52 import android.media.AudioManager; 183 private int mVolumeControlStreamType = AudioManager.USE_DEFAULT_STREAM_TYPE; 185 private AudioManager mAudioManager; 825 AudioManager audioManager = (AudioManager) getContext().getSystemService( 827 if (audioManager != null) { 828 audioManager.playSoundEffect(AudioManager.FX_KEY_CLICK); [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/ |
AlarmKlaxon.java | 24 import android.media.AudioManager; 232 final AudioManager audioManager = (AudioManager)getSystemService(Context.AUDIO_SERVICE); 235 if (audioManager.getStreamVolume(AudioManager.STREAM_ALARM) != 0) { 236 player.setAudioStreamType(AudioManager.STREAM_ALARM);
|
/packages/apps/MusicFX/src/com/android/musicfx/ |
ActivityMusic.java | 35 import android.media.AudioManager; 175 final AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); 178 || audioManager.isBluetoothA2dpOn(); 187 } else if (action.equals(AudioManager.ACTION_AUDIO_BECOMING_NOISY)) { 188 mIsHeadsetOn = audioManager.isBluetoothA2dpOn() || audioManager.isWiredHeadsetOn(); 195 mIsHeadsetOn = audioManager.isWiredHeadsetOn(); 455 intentFilter.addAction(AudioManager.ACTION_AUDIO_BECOMING_NOISY) [all...] |
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
AlertService.java | 33 import android.media.AudioManager; 358 AudioManager audioManager = 359 (AudioManager)context.getSystemService(Context.AUDIO_SERVICE); 361 audioManager.getRingerMode() == AudioManager.RINGER_MODE_VIBRATE;
|
/packages/apps/VideoEditor/src/com/android/videoeditor/ |
VideoEditorBaseActivity.java | 25 import android.media.AudioManager; 838 final AudioManager audioManager = (AudioManager)getSystemService(Context.AUDIO_SERVICE); 839 audioManager.requestAudioFocus(null, AudioManager.STREAM_MUSIC, 840 AudioManager.AUDIOFOCUS_GAIN); 858 final AudioManager audioManager = (AudioManager)getSystemService(Context.AUDIO_SERVICE) [all...] |
/frameworks/base/telephony/java/com/android/internal/telephony/ |
CallManager.java | 22 import android.media.AudioManager; 373 AudioManager audioManager = (AudioManager) 376 int mode = AudioManager.MODE_NORMAL; 379 mode = AudioManager.MODE_RINGTONE; 391 mode = AudioManager.MODE_IN_COMMUNICATION; 394 mode = AudioManager.MODE_IN_CALL; 398 // calling audioManager.setMode() multiple times in a short period of 400 if (audioManager.getMode() != mode) audioManager.setMode(mode) [all...] |
/packages/apps/Contacts/src/com/android/contacts/dialpad/ |
DialpadFragment.java | 41 import android.media.AudioManager; 102 private static final int DIAL_TONE_STREAM_TYPE = AudioManager.STREAM_MUSIC; [all...] |
/packages/apps/Mms/src/com/android/mms/transaction/ |
MessagingNotification.java | 49 import android.media.AudioManager; 527 AudioManager audioManager = 528 (AudioManager)context.getSystemService(Context.AUDIO_SERVICE); 530 audioManager.getRingerMode() == AudioManager.RINGER_MODE_VIBRATE;
|
/frameworks/base/core/java/android/view/ |
ViewRootImpl.java | 38 import android.media.AudioManager; 287 AudioManager mAudioManager; [all...] |