/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
TonesAutoTest.java | 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);
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
AudioManagerTest.java | 63 assertEquals(45, audioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC)); 70 assertEquals(5, audioManager.getStreamVolume(AudioManager.STREAM_MUSIC)); 75 audioManager.setStreamVolume(AudioManager.STREAM_MUSIC, 8, 0); 77 assertEquals(8, audioManager.getStreamVolume(AudioManager.STREAM_MUSIC));
|
/cts/suite/audio_quality/client/src/com/android/cts/audiotest/ |
CtsAudioClientActivity.java | 38 setVolume(AudioManager.STREAM_MUSIC, mVolumeMusic); 46 mVolumeMusic = setVolume(AudioManager.STREAM_MUSIC, -1); 71 int original = mgr.getStreamVolume(AudioManager.STREAM_MUSIC);
|
/frameworks/support/media/version-compat-tests/current/client/src/androidTest/java/android/support/mediacompat/client/ |
AudioAttributesCompatTest.java | 76 mMediaLegacyAAC = mkBuilder(AudioManager.STREAM_MUSIC).build(); 125 assertThat(mMediaAAC.getLegacyStreamType(), equalTo(AudioManager.STREAM_MUSIC)); 126 assertThat(mMediaLegacyAAC.getLegacyStreamType(), equalTo(AudioManager.STREAM_MUSIC)); 137 assertThat(mMediaAACFromAA.getLegacyStreamType(), equalTo(AudioManager.STREAM_MUSIC)); 149 AudioAttributesCompat mediaLegacyAAC = mkBuilder(AudioManager.STREAM_MUSIC).build(); 158 assertThat(mediaAAC.getLegacyStreamType(), equalTo(AudioManager.STREAM_MUSIC)); 159 assertThat(mediaLegacyAAC.getLegacyStreamType(), equalTo(AudioManager.STREAM_MUSIC));
|
/frameworks/support/media/version-compat-tests/previous/client/src/androidTest/java/android/support/mediacompat/client/ |
AudioAttributesCompatTest.java | 75 mMediaLegacyAAC = mkBuilder(AudioManager.STREAM_MUSIC).build(); 124 assertThat(mMediaAAC.getLegacyStreamType(), equalTo(AudioManager.STREAM_MUSIC)); 125 assertThat(mMediaLegacyAAC.getLegacyStreamType(), equalTo(AudioManager.STREAM_MUSIC)); 136 assertThat(mMediaAACFromAA.getLegacyStreamType(), equalTo(AudioManager.STREAM_MUSIC)); 148 AudioAttributesCompat mediaLegacyAAC = mkBuilder(AudioManager.STREAM_MUSIC).build(); 157 assertThat(mediaAAC.getLegacyStreamType(), equalTo(AudioManager.STREAM_MUSIC)); 158 assertThat(mediaLegacyAAC.getLegacyStreamType(), equalTo(AudioManager.STREAM_MUSIC));
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
AudioFrequencyActivity.java | 58 mMaxLevel = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC); 59 am.setStreamVolume(AudioManager.STREAM_MUSIC, (int)(mMaxLevel), 0); 64 am.setStreamVolume(AudioManager.STREAM_MUSIC, 0, 0); 69 int currentLevel = am.getStreamVolume(AudioManager.STREAM_MUSIC);
|
RingerModeActivity.java | 26 import static android.media.AudioManager.STREAM_MUSIC; 221 mAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC, 1, 0); 243 mAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC, 1, 0); 816 int[] streams = {STREAM_MUSIC, 835 int maxMusicVolume = mAudioManager.getStreamMaxVolume(STREAM_MUSIC); 857 if (stream == STREAM_MUSIC && mAudioManager.isWiredHeadsetOn()) { [all...] |
/packages/apps/Settings/src/com/android/settings/notification/ |
MediaVolumePreferenceController.java | 53 return AudioManager.STREAM_MUSIC;
|
/packages/apps/Settings/src/com/android/settings/sound/ |
MediaOutputPreferenceController.java | 20 import static android.media.AudioManager.STREAM_MUSIC; 55 if (isStreamFromOutputDevice(STREAM_MUSIC, DEVICE_OUT_REMOTE_SUBMIX)) { 94 setupPreferenceEntries(mediaOutputs, mediaValues, findActiveDevice(STREAM_MUSIC)); 96 if (isStreamFromOutputDevice(STREAM_MUSIC, DEVICE_OUT_USB_HEADSET)) {
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/ |
MediaAudioTrackTest.java | 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, 255 AudioManager.STREAM_MUSIC, AudioManager.STREAM_NOTIFICATION, 258 final String[] STREAM_NAMES = { "STREAM_ALARM", "STREAM_BLUETOOTH_SCO", "STREAM_MUSIC", [all...] |
MediaAudioManagerTest.java | 146 AudioManager.STREAM_MUSIC, 151 result = mAudioManager.requestAudioFocus(null, AudioManager.STREAM_MUSIC, 217 AudioManager.STREAM_MUSIC, AudioManager.AUDIOFOCUS_GAIN); 231 mAudioManager.requestAudioFocus(mAudioFocusListener, AudioManager.STREAM_MUSIC, 235 mAudioManager.requestAudioFocus(null, AudioManager.STREAM_MUSIC,
|
MediaPresetReverbTest.java | 203 int volume = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC); 204 am.setStreamVolume(AudioManager.STREAM_MUSIC, 205 am.getStreamMaxVolume(AudioManager.STREAM_MUSIC), 221 mp.setAudioStreamType(AudioManager.STREAM_MUSIC); 258 am.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0); 276 int volume = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC); 277 am.setStreamVolume(AudioManager.STREAM_MUSIC, 278 am.getStreamMaxVolume(AudioManager.STREAM_MUSIC), 292 mp.setAudioStreamType(AudioManager.STREAM_MUSIC); 343 am.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0) [all...] |
MediaEnvReverbTest.java | 358 int volume = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC); 359 am.setStreamVolume(AudioManager.STREAM_MUSIC, 360 am.getStreamMaxVolume(AudioManager.STREAM_MUSIC), 376 mp.setAudioStreamType(AudioManager.STREAM_MUSIC); 415 am.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0); 433 int volume = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC); 434 am.setStreamVolume(AudioManager.STREAM_MUSIC, 435 am.getStreamMaxVolume(AudioManager.STREAM_MUSIC), 449 mp.setAudioStreamType(AudioManager.STREAM_MUSIC); 502 am.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0) [all...] |
MediaVisualizerTest.java | 236 int volume = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC); 237 am.setStreamVolume(AudioManager.STREAM_MUSIC, 238 am.getStreamMaxVolume(AudioManager.STREAM_MUSIC), 253 mp.setAudioStreamType(AudioManager.STREAM_MUSIC); 299 am.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0); 315 int volume = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC); 316 am.setStreamVolume(AudioManager.STREAM_MUSIC, 317 am.getStreamMaxVolume(AudioManager.STREAM_MUSIC), 332 mp.setAudioStreamType(AudioManager.STREAM_MUSIC); 431 am.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0) [all...] |
/cts/tests/tests/media/src/android/media/cts/ |
AudioManagerTest.java | 30 import static android.media.AudioManager.STREAM_MUSIC; 119 AudioManager.STREAM_MUSIC, 307 mp.setAudioStreamType(AudioManager.STREAM_MUSIC); 633 AudioManager.STREAM_MUSIC, 643 int maxMusicVolume = mAudioManager.getStreamMaxVolume(STREAM_MUSIC); 666 if (stream == AudioManager.STREAM_MUSIC && mAudioManager.isWiredHeadsetOn()) { [all...] |
AudioManagerStub.java | 38 AudioManager.STREAM_RING, AudioManager.STREAM_MUSIC, AudioManager.STREAM_ALARM, 51 mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
|
AudioTrackTest.java | 136 TestResults res = constructorTestMultiSampleRate(AudioManager.STREAM_MUSIC, 147 TestResults res = constructorTestMultiSampleRate(AudioManager.STREAM_MUSIC, 158 TestResults res = constructorTestMultiSampleRate(AudioManager.STREAM_MUSIC, 169 TestResults res = constructorTestMultiSampleRate(AudioManager.STREAM_MUSIC, 184 TestResults res = constructorTestMultiSampleRate(AudioManager.STREAM_MUSIC, 195 TestResults res = constructorTestMultiSampleRate(AudioManager.STREAM_MUSIC, 206 TestResults res = constructorTestMultiSampleRate(AudioManager.STREAM_MUSIC, 217 TestResults res = constructorTestMultiSampleRate(AudioManager.STREAM_MUSIC, 235 final int[] STREAM_TYPES = { AudioManager.STREAM_ALARM, AudioManager.STREAM_MUSIC, 238 final String[] STREAM_NAMES = { "STREAM_ALARM", "STREAM_MUSIC", "STREAM_NOTIFICATION" [all...] |
NonBlockingAudioTrack.java | 75 AudioManager.STREAM_MUSIC, 85 .setLegacyStreamType(AudioManager.STREAM_MUSIC)
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
AudioLevelUtility.java | 32 final String STREAM_MUSIC = "- STREAM_MUSIC:"; 45 int pos = shellOutput.indexOf(STREAM_MUSIC);
|
/development/samples/RandomMusicPlayer/src/com/example/android/musicplayer/ |
AudioFocusHelper.java | 42 mAM.requestAudioFocus(this, AudioManager.STREAM_MUSIC, AudioManager.AUDIOFOCUS_GAIN);
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
ShadowSoundPoolTest.java | 31 SoundPool soundPool = new SoundPool(1, AudioManager.STREAM_MUSIC, 0);
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
MediaPlayerSetAudioStreamTypeStateUnitTest.java | 57 player.setAudioStreamType(AudioManager.STREAM_MUSIC);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
ShadowAudioManager.java | 21 import static android.media.AudioManager.STREAM_MUSIC; 93 case STREAM_MUSIC:
|
/packages/apps/Bluetooth/src/com/android/bluetooth/newavrcp/ |
AvrcpVolumeManager.java | 43 public static final int STREAM_MUSIC = AudioManager.STREAM_MUSIC; 75 int currVolume = mAudioManager.getStreamVolume(STREAM_MUSIC); 93 sDeviceMaxVolume = mAudioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC); 119 int storeVolume = mAudioManager.getStreamVolume(STREAM_MUSIC); 205 sb.append(" Current System Volume: " + mAudioManager.getStreamVolume(STREAM_MUSIC) + "\n");
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
AudioRestrictionTest.java | 87 mAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC, 1, /* flag= */ 0); 96 assertEquals(1, mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC)); 108 return mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC);
|