HomeSort by relevance Sort by last modified time
    Searched refs:mAudioManager (Results 1 - 25 of 41) sorted by null

1 2

  /cts/tests/tests/media/src/android/media/cts/
AudioManagerTest.java 62 private AudioManager mAudioManager;
67 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
83 mAudioManager.setMicrophoneMute(true);
84 assertTrue(mAudioManager.isMicrophoneMute());
85 mAudioManager.setMicrophoneMute(false);
86 assertFalse(mAudioManager.isMicrophoneMute());
118 mAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL);
122 mAudioManager.loadSoundEffects();
125 mAudioManager.playSoundEffect(SoundEffectConstants.CLICK);
126 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_UP)
    [all...]
RingtoneTest.java 36 private AudioManager mAudioManager;
45 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
48 mOriginalRingerMode = mAudioManager.getRingerMode();
49 mOriginalVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_RING);
52 int maxVolume = mAudioManager.getStreamMaxVolume(AudioManager.STREAM_RING);
53 mAudioManager.setStreamVolume(AudioManager.STREAM_RING, maxVolume / 2,
64 if (mAudioManager != null) {
65 mAudioManager.setRingerMode(mOriginalRingerMode);
66 mAudioManager.setStreamVolume(AudioManager.STREAM_RING, mOriginalVolume,
RingtoneManagerTest.java 46 private AudioManager mAudioManager;
61 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
63 mOriginalVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_RING);
66 mAudioManager.adjustStreamVolume(AudioManager.STREAM_RING, AudioManager.ADJUST_RAISE,
73 if (mAudioManager != null) {
74 mAudioManager.setStreamVolume(AudioManager.STREAM_RING, mOriginalVolume,
  /cts/tests/tests/permission/src/android/permission/cts/
NoAudioPermissionTest.java 28 private AudioManager mAudioManager;
34 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
35 assertNotNull(mAudioManager);
45 boolean muteState = mAudioManager.isMicrophoneMute();
46 int originalMode = mAudioManager.getMode();
48 mAudioManager.setMicrophoneMute(!muteState);
49 assertEquals(muteState, mAudioManager.isMicrophoneMute());
54 mAudioManager.setMode(AudioManager.MODE_NORMAL);
55 assertEquals(originalMode, mAudioManager.getMode());
57 mAudioManager.setMode(AudioManager.MODE_RINGTONE)
    [all...]
  /packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
SoundManager.java 28 private AudioManager mAudioManager;
39 if (mAudioManager == null) {
40 mAudioManager = (AudioManager) mContext
43 mSilentMode = (mAudioManager.getRingerMode() != AudioManager.RINGER_MODE_NORMAL);
56 if (mAudioManager == null) {
61 mAudioManager.playSoundEffect(sound, FX_VOLUME);
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
VolumeController.java 35 private AudioManager mAudioManager;
43 mAudioManager = (AudioManager)context.getSystemService(Context.AUDIO_SERVICE);
45 mMute = mAudioManager.getRingerMode() != AudioManager.RINGER_MODE_NORMAL;
46 mVolume = mAudioManager.getStreamVolume(STREAM);
47 control.setMax(mAudioManager.getStreamMaxVolume(STREAM));
59 mAudioManager.setRingerMode(
63 mAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL);
64 mAudioManager.setStreamVolume(STREAM, level, AudioManager.FLAG_PLAY_SOUND);
  /frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
MediaAudioManagerTest.java 32 private AudioManager mAudioManager;
43 mAudioManager = (AudioManager) getActivity().getSystemService(Context.AUDIO_SERVICE);
52 int getRingtone = mAudioManager.getRingerMode();
65 mAudioManager.setRingerMode(ringtoneMode[i]);
  /cts/tests/src/android/media/cts/
AudioManagerStub.java 32 private AudioManager mAudioManager;
42 mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
54 mAudioManager.setStreamMute(i, false);
55 mAudioManager.setStreamSolo(i, false);
68 mAudioManager.setStreamMute(i, true);
69 mAudioManager.setStreamSolo(i, true);
  /frameworks/base/tests/FixVibrateSetting/src/com/android/fixvibratesetting/
FixVibrateSetting.java 32 AudioManager mAudioManager;
45 mAudioManager = (AudioManager)getSystemService(AUDIO_SERVICE);
68 int setting = mAudioManager.getVibrateSetting(vibrateType);
102 mAudioManager.setVibrateSetting(AudioManager.VIBRATE_TYPE_NOTIFICATION,
107 mAudioManager.setVibrateSetting(AudioManager.VIBRATE_TYPE_NOTIFICATION,
  /frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
SettingsHelper.java 42 private AudioManager mAudioManager;
51 mAudioManager = (AudioManager) context
104 mAudioManager.loadSoundEffects();
106 mAudioManager.unloadSoundEffects();
124 mAudioManager.setRingerMode(mVibrate ? AudioManager.RINGER_MODE_VIBRATE :
127 mAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL);
128 mAudioManager.setVibrateSetting(AudioManager.VIBRATE_TYPE_RINGER,
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/
AccessibilityUtils.java 47 private AudioManagerCompatWrapper mAudioManager;
83 mAudioManager = new AudioManagerCompatWrapper(audioManager);
124 if (mAudioManager.isWiredHeadsetOn() || mAudioManager.isBluetoothA2dpOn())
AccessibleInputMethodServiceProxy.java 54 private AudioManager mAudioManager;
100 mAudioManager = (AudioManager) inputMethod.getSystemService(Context.AUDIO_SERVICE);
148 mAudioManager.playSoundEffect(AudioManager.FX_KEYPRESS_STANDARD, FX_VOLUME);
  /frameworks/base/policy/src/com/android/internal/policy/impl/
KeyguardViewBase.java 47 private AudioManager mAudioManager;
207 if (mAudioManager == null) {
208 mAudioManager = (AudioManager) getContext().getSystemService(
213 if (mAudioManager.isMusicActive()) {
215 mAudioManager.adjustStreamVolume(
PhoneFallbackEventHandler.java 41 AudioManager mAudioManager;
281 if (mAudioManager == null) {
282 mAudioManager = (AudioManager)mContext.getSystemService(Context.AUDIO_SERVICE);
284 return mAudioManager;
LockScreen.java 64 private AudioManager mAudioManager;
94 && (mAudioManager.getRingerMode() == AudioManager.RINGER_MODE_VIBRATE);
279 mAudioManager.setRingerMode(vibe
283 mAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL);
345 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
383 return mAudioManager.getRingerMode() != AudioManager.RINGER_MODE_NORMAL;
  /frameworks/base/core/java/android/preference/
VolumePreference.java 228 private AudioManager mAudioManager;
241 if (mSeekBar != null && mAudioManager != null) {
242 int volume = mAudioManager.isStreamMute(mStreamType) ?
243 mAudioManager.getLastAudibleStreamVolume(mStreamType)
244 : mAudioManager.getStreamVolume(mStreamType);
256 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
264 seekBar.setMax(mAudioManager.getStreamMaxVolume(mStreamType));
265 mOriginalStreamVolume = mAudioManager.getStreamVolume(mStreamType);
297 mAudioManager.setStreamVolume(mStreamType, mOriginalStreamVolume, 0);
326 mAudioManager.setStreamVolume(mStreamType, mLastProgress, 0)
    [all...]
  /packages/apps/Settings/src/com/android/settings/
SoundSettings.java 105 private AudioManager mAudioManager;
137 mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
252 mAudioManager.getVibrateSetting(AudioManager.VIBRATE_TYPE_RINGER);
257 mAudioManager.setVibrateSetting(
269 mAudioManager.setVibrateSetting(
306 mAudioManager.setRingerMode(
311 mAudioManager.setVibrateSetting(
320 final int ringerMode = mAudioManager.getRingerMode();
379 mAudioManager.setRingerMode(
383 mAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL)
    [all...]
RingerVolumePreference.java 116 boolean muted = mAudioManager.isStreamMute(streamType);
120 && mAudioManager.shouldVibrate(AudioManager.VIBRATE_TYPE_RINGER)) {
130 final int volume = muted ? mAudioManager.getLastAudibleStreamVolume(streamType)
131 : mAudioManager.getStreamVolume(streamType);
138 private AudioManager mAudioManager;
154 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
369 switch(mAudioManager.getRingerMode()) {
371 mAudioManager.setRingerMode(
379 mAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL);
  /frameworks/base/services/java/com/android/server/
NotificationPlayer.java 111 mAudioManager = audioManager;
182 mAudioManager.abandonAudioFocus(null);
183 mAudioManager = null;
210 if (mAudioManager != null) {
211 mAudioManager.abandonAudioFocus(null);
232 private AudioManager mAudioManager;
  /frameworks/base/core/java/android/view/
VolumePanel.java 96 private AudioManager mAudioManager;
195 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
226 mAudioManager.forceVolumeControlStream(mActiveStreamType);
277 return mAudioManager.isStreamMute(streamType);
311 sc.seekbarView.setMax(mAudioManager.getStreamMaxVolume(streamType) + plusOne);
352 sc.seekbarView.setProgress(mAudioManager.getLastAudibleStreamVolume(sc.streamType));
356 && mAudioManager.shouldVibrate(AudioManager.VIBRATE_TYPE_RINGER)) {
466 if ((mAudioManager.getDevicesForStream(AudioManager.STREAM_MUSIC) &
522 mAudioManager.forceVolumeControlStream(streamType);
684 if (mAudioManager.getStreamVolume(sc.streamType) != progress)
    [all...]
  /frameworks/base/media/tests/ScoAudioTest/src/com/android/scoaudiotest/
ScoAudioTest.java 61 AudioManager mAudioManager;
109 mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
152 mCurrentMode = mAudioManager.getMode();
186 mAudioManager.setStreamVolume(AudioManager.STREAM_BLUETOOTH_SCO,
195 mOriginalVoiceVolume = mAudioManager.getStreamVolume(
198 mCurrentMode = mAudioManager.getMode();
209 AudioManager mngr = mAudioManager;
555 mAudioManager.setStreamVolume(AudioManager.STREAM_BLUETOOTH_SCO,
566 mAudioManager.setStreamVolume(AudioManager.STREAM_BLUETOOTH_SCO,
588 mOriginalVoiceVolume = mAudioManager.getStreamVolume
    [all...]
  /packages/apps/Music/src/com/android/music/
AudioPreview.java 70 private AudioManager mAudioManager;
104 mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
218 mAudioManager.abandonAudioFocus(mAudioFocusListener);
249 mAudioManager.requestAudioFocus(mAudioFocusListener, AudioManager.STREAM_MUSIC,
260 mAudioManager.abandonAudioFocus(this);
287 mAudioManager.requestAudioFocus(mAudioFocusListener, AudioManager.STREAM_MUSIC,
  /frameworks/base/media/java/android/media/
Ringtone.java 66 private AudioManager mAudioManager;
72 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
225 if (mAudioManager.getStreamVolume(mStreamType) != 0) {
  /packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
CellBroadcastAlertAudio.java 85 private AudioManager mAudioManager;
186 mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
281 mAudioManager.requestAudioFocus(null, AudioManager.STREAM_ALARM,
338 mAudioManager.abandonAudioFocus(null);
  /development/samples/ApiDemos/src/com/example/android/apis/accessibility/
ClockBackService.java 215 private AudioManager mAudioManager;
332 mAudioManager = (AudioManager) getSystemService(Service.AUDIO_SERVICE);
335 int ringerMode = mAudioManager.getRingerMode();
385 int currentRingerVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_RING);
386 int maxRingerVolume = mAudioManager.getStreamMaxVolume(AudioManager.STREAM_RING);

Completed in 1170 milliseconds

1 2