HomeSort by relevance Sort by last modified time
    Searched defs:audioManager (Results 1 - 21 of 21) sorted by null

  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/
AccessibilityUtils.java 21 import android.media.AudioManager;
77 final AudioManager audioManager = (AudioManager) context
79 mAudioManager = new AudioManagerCompatWrapper(audioManager);
  /frameworks/base/packages/SystemUI/src/com/android/systemui/media/
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...]
  /packages/apps/Mms/src/com/android/mms/transaction/
NotificationPlayer.java 25 import android.media.AudioManager;
87 AudioManager audioManager =
88 (AudioManager) mCmd.context.getSystemService(Context.AUDIO_SERVICE);
99 audioManager.requestAudioFocus(null, mCmd.stream,
100 AudioManager.AUDIOFOCUS_GAIN);
102 audioManager.requestAudioFocus(null, mCmd.stream,
103 AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK);
116 mAudioManager = audioManager;
239 private AudioManager mAudioManager
    [all...]
MessagingNotification.java 60 import android.media.AudioManager;
298 player.play(context, ringtoneUri, false, AudioManager.STREAM_NOTIFICATION,
    [all...]
  /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/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)) {
145 filter.addAction(AudioManager.RINGER_MODE_CHANGED_ACTION);
232 AudioManager audioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
233 final int ringerMode = audioManager.getRingerMode();
234 final boolean visible = ringerMode == AudioManager.RINGER_MODE_SILENT ||
235 ringerMode == AudioManager.RINGER_MODE_VIBRATE;
239 if (ringerMode == AudioManager.RINGER_MODE_VIBRATE)
    [all...]
  /frameworks/base/policy/src/com/android/internal/policy/impl/
PhoneFallbackEventHandler.java 25 import android.media.AudioManager;
45 AudioManager mAudioManager;
59 getAudioManager().preDispatchKeyEvent(event, AudioManager.USE_DEFAULT_STREAM_TYPE);
85 getAudioManager().handleKeyDown(event, AudioManager.USE_DEFAULT_STREAM_TYPE);
198 AudioManager audioManager = (AudioManager)mContext.getSystemService(
200 if (audioManager != null) {
201 getAudioManager().handleKeyUp(event, AudioManager.USE_DEFAULT_STREAM_TYPE);
278 AudioManager getAudioManager()
    [all...]
PhoneWindow.java 52 import android.media.AudioManager;
188 private int mVolumeControlStreamType = AudioManager.USE_DEFAULT_STREAM_TYPE;
190 private AudioManager mAudioManager;
833 AudioManager audioManager = (AudioManager) getContext().getSystemService(
835 if (audioManager != null) {
836 audioManager.playSoundEffect(AudioManager.FX_KEY_CLICK);
    [all...]
  /packages/apps/Phone/src/com/android/phone/
Ringer.java 20 import android.media.AudioManager;
167 AudioManager audioManager =
168 (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
170 if (audioManager.getStreamVolume(AudioManager.STREAM_RING) == 0) {
202 AudioManager audioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
203 int ringerMode = audioManager.getRingerMode()
    [all...]
EmergencyDialer.java 28 import android.media.AudioManager;
85 private static final int DIAL_TONE_STREAM_TYPE = AudioManager.STREAM_DTMF;
446 mToneGenerator = new ToneGenerator(AudioManager.STREAM_DTMF,
530 AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
531 int ringerMode = audioManager.getRingerMode();
532 if ((ringerMode == AudioManager.RINGER_MODE_SILENT)
533 || (ringerMode == AudioManager.RINGER_MODE_VIBRATE)) {
NotificationMgr.java 34 import android.media.AudioManager;
614 * called AudioManager.setSpeakerphoneOn() yourself) then you should
621 AudioManager audioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
623 (mPhone.getState() == Phone.State.OFFHOOK) && audioManager.isSpeakerphoneOn();
    [all...]
PhoneApp.java 35 import android.media.AudioManager;
595 intentFilter.addAction(AudioManager.RINGER_MODE_CHANGED_ACTION);
612 AudioManager am = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
659 AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
660 audioManager.setParameter(CallFeaturesSetting.HAC_KEY, hac != 0 ?
    [all...]
PhoneUtils.java 31 import android.media.AudioManager;
95 // transitions for AudioManager.setMode() are allowed.
    [all...]
  /frameworks/base/core/java/android/webkit/
HTML5Audio.java 20 import android.media.AudioManager;
46 AudioManager.OnAudioFocusChangeListener {
246 case AudioManager.AUDIOFOCUS_GAIN:
256 case AudioManager.AUDIOFOCUS_LOSS:
264 case AudioManager.AUDIOFOCUS_LOSS_TRANSIENT:
265 case AudioManager.AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK:
289 AudioManager audioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
290 int result = audioManager.requestAudioFocus(this, AudioManager.STREAM_MUSIC
    [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...]
  /frameworks/base/telephony/java/com/android/internal/telephony/
CallManager.java 22 import android.media.AudioManager;
373 AudioManager audioManager = (AudioManager)
380 if (audioManager.getMode() != AudioManager.MODE_RINGTONE) {
382 if (audioManager.getStreamVolume(AudioManager.STREAM_RING) > 0) {
384 audioManager.requestAudioFocusForCall(AudioManager.STREAM_RING
    [all...]
  /frameworks/base/services/java/com/android/server/
NotificationManagerService.java 40 import android.media.AudioManager;
102 private static final int DEFAULT_STREAM_TYPE = AudioManager.STREAM_NOTIFICATION;
    [all...]
  /packages/apps/Calendar/src/com/android/calendar/alerts/
AlertService.java 30 import android.media.AudioManager;
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/dialpad/
DialpadFragment.java 31 import android.media.AudioManager;
104 private static final int DIAL_TONE_STREAM_TYPE = AudioManager.STREAM_DTMF;
    [all...]
  /frameworks/base/core/java/android/view/
ViewRootImpl.java 41 import android.media.AudioManager;
312 AudioManager mAudioManager;
    [all...]

Completed in 3807 milliseconds