/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
MediaAudioManagerTest.java | 21 import android.media.AudioManager; 26 * Junit / Instrumentation test case for the media AudioManager api 32 private AudioManager mAudioManager; 33 private int[] ringtoneMode = {AudioManager.RINGER_MODE_NORMAL, 34 AudioManager.RINGER_MODE_SILENT, AudioManager.RINGER_MODE_VIBRATE}; 43 mAudioManager = (AudioManager) getActivity().getSystemService(Context.AUDIO_SERVICE);
|
TonesAutoTest.java | 24 import android.media.AudioManager; 40 toneGen = new ToneGenerator(AudioManager.STREAM_MUSIC, 100); 64 toneGen = new ToneGenerator(AudioManager.STREAM_MUSIC, 100); 101 toneGen = new ToneGenerator(AudioManager.STREAM_MUSIC, 100); 126 toneGen1 = new ToneGenerator(AudioManager.STREAM_MUSIC, 100); 127 toneGen2 = new ToneGenerator(AudioManager.STREAM_MUSIC, 50); 156 toneGen = new ToneGenerator(AudioManager.STREAM_MUSIC, 100);
|
MediaAudioTrackTest.java | 23 import android.media.AudioManager; 142 AudioManager.STREAM_MUSIC, AudioTrack.MODE_STREAM, 155 AudioManager.STREAM_MUSIC, AudioTrack.MODE_STREAM, 168 AudioManager.STREAM_MUSIC, AudioTrack.MODE_STATIC, 181 AudioManager.STREAM_MUSIC, AudioTrack.MODE_STATIC, 198 AudioManager.STREAM_MUSIC, AudioTrack.MODE_STREAM, 210 AudioManager.STREAM_MUSIC, AudioTrack.MODE_STREAM, 222 AudioManager.STREAM_MUSIC, AudioTrack.MODE_STATIC, 234 AudioManager.STREAM_MUSIC, AudioTrack.MODE_STATIC, 254 final int[] STREAM_TYPES = { AudioManager.STREAM_ALARM, AudioManager.STREAM_BLUETOOTH_SCO, [all...] |
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/ |
SoundManager.java | 20 import android.media.AudioManager; 28 private AudioManager mAudioManager; 40 mAudioManager = (AudioManager) mContext 43 mSilentMode = (mAudioManager.getRingerMode() != AudioManager.RINGER_MODE_NORMAL); 60 int sound = AudioManager.FX_KEYPRESS_STANDARD;
|
/cts/tests/tests/media/src/android/media/cts/ |
RingtoneTest.java | 25 import android.media.AudioManager; 36 private AudioManager mAudioManager; 45 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); 49 mOriginalVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_RING); 52 int maxVolume = mAudioManager.getStreamMaxVolume(AudioManager.STREAM_RING); 53 mAudioManager.setStreamVolume(AudioManager.STREAM_RING, maxVolume / 2, 54 AudioManager.FLAG_ALLOW_RINGER_MODES); 66 mAudioManager.setStreamVolume(AudioManager.STREAM_RING, mOriginalVolume, 67 AudioManager.FLAG_ALLOW_RINGER_MODES); 109 mRingtone.setStreamType(AudioManager.STREAM_MUSIC) [all...] |
AudioManagerTest.java | 19 import static android.media.AudioManager.ADJUST_LOWER; 20 import static android.media.AudioManager.ADJUST_RAISE; 21 import static android.media.AudioManager.ADJUST_SAME; 22 import static android.media.AudioManager.FLAG_ALLOW_RINGER_MODES; 23 import static android.media.AudioManager.FLAG_SHOW_UI; 24 import static android.media.AudioManager.MODE_IN_CALL; 25 import static android.media.AudioManager.MODE_NORMAL; 26 import static android.media.AudioManager.MODE_RINGTONE; 27 import static android.media.AudioManager.RINGER_MODE_NORMAL; 28 import static android.media.AudioManager.RINGER_MODE_SILENT [all...] |
ToneGeneratorTest.java | 19 import android.media.AudioManager; 53 ToneGenerator toneGen = new ToneGenerator(AudioManager.STREAM_RING,
|
RingtoneManagerTest.java | 29 import android.media.AudioManager; 46 private AudioManager mAudioManager; 61 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); 63 mOriginalVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_RING); 67 int maxVolume = mAudioManager.getStreamMaxVolume(AudioManager.STREAM_RING); 68 mAudioManager.setStreamVolume(AudioManager.STREAM_RING, maxVolume / 2, 69 AudioManager.FLAG_ALLOW_RINGER_MODES); 76 mAudioManager.setStreamVolume(AudioManager.STREAM_RING, mOriginalVolume, 77 AudioManager.FLAG_ALLOW_RINGER_MODES); 213 assertEquals(AudioManager.STREAM_ALARM, mRingtoneManager.inferStreamType()) [all...] |
AsyncPlayerTest.java | 21 import android.media.AudioManager; 53 asyncPlayer.play(getContext(), PLAY_URI, true, AudioManager.STREAM_RING);
|
/cts/tests/tests/permission/src/android/permission/cts/ |
NoAudioPermissionTest.java | 20 import android.media.AudioManager; 28 private AudioManager mAudioManager; 34 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); 39 * Verify that AudioManager.setMicrophoneMute, AudioManager.setMode requires permissions. 52 assertTrue(AudioManager.MODE_NORMAL != AudioManager.MODE_RINGTONE); 54 mAudioManager.setMode(AudioManager.MODE_NORMAL); 57 mAudioManager.setMode(AudioManager.MODE_RINGTONE); 62 * Verify that AudioManager routing methods require permissions [all...] |
AudioPermissionTest.java | 22 import android.media.AudioManager; 92 plyr.setAudioStreamType(AudioManager.STREAM_MUSIC);
|
/packages/apps/Settings/src/com/android/settings/ |
SoundSettings.java | 26 import android.media.AudioManager; 81 private AudioManager mAudioManager; 86 if (intent.getAction().equals(AudioManager.RINGER_MODE_CHANGED_ACTION)) { 100 mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); 163 IntentFilter filter = new IntentFilter(AudioManager.RINGER_MODE_CHANGED_ACTION); 182 mAudioManager.getVibrateSetting(AudioManager.VIBRATE_TYPE_RINGER); 185 if (callsVibrateSetting == AudioManager.VIBRATE_SETTING_OFF) { 188 AudioManager.VIBRATE_TYPE_RINGER, 189 AudioManager.VIBRATE_SETTING_ONLY_SILENT); 191 if (callsVibrateSetting == AudioManager.VIBRATE_SETTING_ON) [all...] |
RingerVolumePreference.java | 21 import android.media.AudioManager; 49 AudioManager.STREAM_NOTIFICATION, 50 AudioManager.STREAM_MUSIC, 51 AudioManager.STREAM_ALARM 60 setStreamType(AudioManager.STREAM_RING); 115 AudioManager audioManager = (AudioManager) getContext() 117 audioManager.setStreamVolume(AudioManager.STREAM_NOTIFICATION [all...] |
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
SettingsHelper.java | 30 import android.media.AudioManager; 42 private AudioManager mAudioManager; 51 mAudioManager = (AudioManager) context 124 mAudioManager.setRingerMode(mVibrate ? AudioManager.RINGER_MODE_VIBRATE : 125 AudioManager.RINGER_MODE_SILENT); 127 mAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL); 128 mAudioManager.setVibrateSetting(AudioManager.VIBRATE_TYPE_RINGER, 129 mVibrate ? AudioManager.VIBRATE_SETTING_ON 130 : AudioManager.VIBRATE_SETTING_OFF); 190 AudioManager am = new AudioManager(mContext) [all...] |
DatabaseHelper.java | 31 import android.media.AudioManager; 269 int newValue = (1 << AudioManager.STREAM_RING) 270 | (1 << AudioManager.STREAM_NOTIFICATION) 271 | (1 << AudioManager.STREAM_SYSTEM); 382 int newValue = (1 << AudioManager.STREAM_RING) 383 | (1 << AudioManager.STREAM_NOTIFICATION) 384 | (1 << AudioManager.STREAM_SYSTEM) 385 | (1 << AudioManager.STREAM_SYSTEM_ENFORCED); 514 AudioManager.DEFAULT_STREAM_VOLUME[AudioManager.STREAM_BLUETOOTH_SCO]) [all...] |
/frameworks/policies/base/phone/com/android/internal/policy/impl/ |
KeyguardViewBase.java | 21 import android.media.AudioManager; 41 private AudioManager mAudioManager; 172 mAudioManager = (AudioManager) getContext().getSystemService( 179 AudioManager.STREAM_MUSIC, 181 ? AudioManager.ADJUST_RAISE 182 : AudioManager.ADJUST_LOWER,
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
MediaPlayerSetAudioStreamTypeStateUnitTest.java | 20 import android.media.AudioManager; 57 player.setAudioStreamType(AudioManager.STREAM_MUSIC);
|
/cts/tests/src/android/media/cts/ |
AudioManagerStub.java | 24 import android.media.AudioManager; 32 private AudioManager mAudioManager; 42 mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); 44 mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
|
/frameworks/base/core/java/android/view/ |
VolumePanel.java | 23 import android.media.AudioManager; 89 private AudioManager mAudioManager; 107 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); 140 if ((flags & AudioManager.FLAG_SHOW_UI) != 0) { 144 if ((flags & AudioManager.FLAG_PLAY_SOUND) != 0 && ! mRingIsSilent) { 149 if ((flags & AudioManager.FLAG_REMOVE_SOUND_AND_VIBRATE) != 0) { 175 case AudioManager.STREAM_RING: { 188 case AudioManager.STREAM_MUSIC: { 200 case AudioManager.STREAM_VOICE_CALL: { 213 case AudioManager.STREAM_ALARM: [all...] |
/packages/apps/Phone/src/com/android/phone/ |
Ringer.java | 20 import android.media.AudioManager; 143 AudioManager audioManager = 144 (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); 146 if (audioManager.getStreamVolume(AudioManager.STREAM_RING) == 0) { 178 AudioManager audioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); 179 return audioManager.shouldVibrate(AudioManager.VIBRATE_TYPE_RINGER) [all...] |
/frameworks/base/media/java/android/media/ |
AudioService.java | 138 /* Sound effect file name mapping sound effect id (AudioManager.FX_xxx) to 207 * Current ringer mode from one of {@link AudioManager#RINGER_MODE_NORMAL}, 208 * {@link AudioManager#RINGER_MODE_SILENT}, or 209 * {@link AudioManager#RINGER_MODE_VIBRATE}. 360 mRingerMode = System.getInt(cr, System.MODE_RINGER, AudioManager.RINGER_MODE_NORMAL); 385 broadcastVibrateSetting(AudioManager.VIBRATE_TYPE_RINGER); 386 broadcastVibrateSetting(AudioManager.VIBRATE_TYPE_NOTIFICATION); 401 /** @see AudioManager#adjustVolume(int, int) */ 403 adjustSuggestedStreamVolume(direction, AudioManager.USE_DEFAULT_STREAM_TYPE, flags); 406 /** @see AudioManager#adjustVolume(int, int, int) * [all...] |
Ringtone.java | 23 import android.media.AudioManager; 65 private int mStreamType = AudioManager.STREAM_RING; 66 private AudioManager mAudioManager; 72 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); 78 * @param streamType The stream, see {@link AudioManager}. 99 * @return The stream type, see {@link AudioManager}.
|
/packages/apps/Music/src/com/android/music/ |
DeleteItems.java | 20 import android.media.AudioManager; 37 setVolumeControlStream(AudioManager.STREAM_MUSIC);
|
ScanningProgress.java | 21 import android.media.AudioManager; 65 setVolumeControlStream(AudioManager.STREAM_MUSIC);
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
SettingsActivity.java | 19 import android.media.AudioManager; 35 1 << AudioManager.STREAM_ALARM;
|