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

  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/
AccessibilityUtils.java 22 import android.media.AudioManager;
81 final AudioManager audioManager = (AudioManager) context
83 mAudioManager = new AudioManagerCompatWrapper(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;
795 final AudioManager audioManager = (AudioManager) mContext
817 if (audioManager.getStreamVolume(audioStreamType) != 0) {
    [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) ||
126 action.equals(AudioManager.VIBRATE_SETTING_CHANGED_ACTION)) {
185 filter.addAction(AudioManager.RINGER_MODE_CHANGED_ACTION);
186 filter.addAction(AudioManager.VIBRATE_SETTING_CHANGED_ACTION);
233 AudioManager audioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
234 final int ringerMode = audioManager.getRingerMode();
235 final boolean visible = ringerMode == AudioManager.RINGER_MODE_SILENT |
    [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...]
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/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...]
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;
538 intentFilter.addAction(AudioManager.RINGER_MODE_CHANGED_ACTION);
597 AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
598 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...]
PhoneUtils.java 31 import android.media.AudioManager;
88 // transitions for AudioManager.setMode() are allowed.
    [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...]
  /packages/apps/Calendar/src/com/android/calendar/alerts/
AlertService.java 33 import android.media.AudioManager;
336 AudioManager audioManager =
337 (AudioManager)context.getSystemService(Context.AUDIO_SERVICE);
339 audioManager.getRingerMode() == AudioManager.RINGER_MODE_VIBRATE;
  /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 34 import android.media.AudioManager;
172 final AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
175 || audioManager.isBluetoothA2dpOn();
184 } else if (action.equals(AudioManager.ACTION_AUDIO_BECOMING_NOISY)) {
185 mIsHeadsetOn = audioManager.isBluetoothA2dpOn() || audioManager.isWiredHeadsetOn();
192 mIsHeadsetOn = audioManager.isWiredHeadsetOn();
449 intentFilter.addAction(AudioManager.ACTION_AUDIO_BECOMING_NOISY)
    [all...]
  /packages/apps/Mms/src/com/android/mms/transaction/
MessagingNotification.java 49 import android.media.AudioManager;
514 AudioManager audioManager =
515 (AudioManager)context.getSystemService(Context.AUDIO_SERVICE);
517 audioManager.getRingerMode() == AudioManager.RINGER_MODE_VIBRATE;
  /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...]
  /frameworks/base/core/java/android/view/
ViewRootImpl.java 38 import android.media.AudioManager;
286 AudioManager mAudioManager;
    [all...]

Completed in 417 milliseconds