/frameworks/base/media/java/android/media/ |
IAudioService.aidl | 31 void adjustStreamVolume(int streamType, int direction, int flags); 33 void setStreamVolume(int streamType, int index, int flags); 35 void setStreamSolo(int streamType, boolean state, IBinder cb); 37 void setStreamMute(int streamType, boolean state, IBinder cb); 39 int getStreamVolume(int streamType); 41 int getStreamMaxVolume(int streamType);
|
AudioService.java | 409 int streamType = getActiveStreamType(suggestedStreamType); 412 if (streamType != AudioSystem.STREAM_RING && (flags & AudioManager.FLAG_PLAY_SOUND) != 0) { 416 adjustStreamVolume(streamType, direction, flags); 420 public void adjustStreamVolume(int streamType, int direction, int flags) { 422 ensureValidStreamType(streamType); 425 VolumeStreamState streamState = mStreamStates[STREAM_VOLUME_ALIAS[streamType]]; 432 || streamType == AudioSystem.STREAM_RING) { 444 sendMsg(mAudioHandler, MSG_PERSIST_VOLUME, streamType, 452 sendMsg(mAudioHandler, MSG_SET_SYSTEM_VOLUME, STREAM_VOLUME_ALIAS[streamType], SENDMSG_NOOP, 0, 0, 458 mVolumePanel.postVolumeChanged(streamType, flags) [all...] |
ToneGenerator.java | 735 * @param streamType The streame type used for tone playback (e.g. STREAM_MUSIC). 739 public ToneGenerator(int streamType, int volume) { 740 native_setup(streamType, volume); 874 private native final void native_setup(int streamType, int volume);
|
AudioTrack.java | 236 * @param streamType the type of the audio stream. See 258 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, 268 audioParamCheck(streamType, sampleRateInHz, channelConfig, audioFormat, mode); 298 private void audioParamCheck(int streamType, int sampleRateInHz, 303 if( (streamType != AudioManager.STREAM_ALARM) && (streamType != AudioManager.STREAM_MUSIC) 304 && (streamType != AudioManager.STREAM_RING) && (streamType != AudioManager.STREAM_SYSTEM) 305 && (streamType != AudioManager.STREAM_VOICE_CALL) 306 && (streamType != AudioManager.STREAM_NOTIFICATION [all...] |
AudioManager.java | 366 * @param streamType The stream type to adjust. One of {@link #STREAM_VOICE_CALL}, 376 public void adjustStreamVolume(int streamType, int direction, int flags) { 379 service.adjustStreamVolume(streamType, direction, flags); 457 * @param streamType The stream type whose maximum volume index is returned. 461 public int getStreamMaxVolume(int streamType) { 464 return service.getStreamMaxVolume(streamType); 474 * @param streamType The stream type whose volume index is returned. 479 public int getStreamVolume(int streamType) { 482 return service.getStreamVolume(streamType); 512 * @param streamType The stream whose volume index should be set [all...] |
SoundPool.java | 130 * @param streamType the audio stream type as described in AudioManager 137 public SoundPool(int maxStreams, int streamType, int srcQuality) { 140 if (native_setup(new WeakReference(this), maxStreams, streamType, srcQuality) != 0) { 483 private native final int native_setup(Object weakRef, int maxStreams, int streamType, int srcQuality);
|
Ringtone.java | 78 * @param streamType The stream, see {@link AudioManager}. 80 public void setStreamType(int streamType) { 81 mStreamType = streamType;
|
/external/opencore/protocols/sdp/common/include/ |
rfc3640_media_info.h | 30 uint32 streamType; 51 setStreamType(pSource.streamType); 61 streamType = stype; 66 return streamType;
|
/external/opencore/fileformats/mp4/composer/src/ |
esdatom.cpp | 31 PVA_FF_ESDAtom::PVA_FF_ESDAtom(int32 streamType, int32 codecType) 35 PV_MP4_FF_NEW(fp->auditCB, PVA_FF_ESDescriptor, (streamType, codecType), _pdescriptor);
|
esdescriptor.cpp | 30 PVA_FF_ESDescriptor::PVA_FF_ESDescriptor(int32 streamType, int32 codecType) 33 PV_MP4_FF_NEW(fp->auditCB, PVA_FF_DecoderConfigDescriptor, (streamType, codecType), _pdcd);
|
decoderconfigdescriptor.cpp | 31 PVA_FF_DecoderConfigDescriptor::PVA_FF_DecoderConfigDescriptor(int32 streamType, int32 codecType) 36 init(streamType);
|
/frameworks/base/core/java/android/view/ |
VolumePanel.java | 125 public void postVolumeChanged(int streamType, int flags) { 128 obtainMessage(MSG_VOLUME_CHANGED, streamType, flags).sendToTarget(); 136 protected void onVolumeChanged(int streamType, int flags) { 138 if (LOGD) Log.d(TAG, "onVolumeChanged(streamType: " + streamType + ", flags: " + flags + ")"); 141 onShowVolumeChanged(streamType, flags); 146 sendMessageDelayed(obtainMessage(MSG_PLAY_SOUND, streamType, flags), PLAY_SOUND_DELAY); 159 protected void onShowVolumeChanged(int streamType, int flags) { 160 int index = mAudioService.getStreamVolume(streamType); 166 Log.d(TAG, "onShowVolumeChanged(streamType: " + streamTyp [all...] |
/frameworks/base/packages/TtsService/src/android/tts/ |
SynthProxy.java | 81 public int speak(String text, int streamType) { 82 if ((streamType > -1) && (streamType < AudioSystem.getNumStreamTypes())) { 83 return native_speak(mJniData, text, streamType); 85 Log.e("SynthProxy", "Trying to speak with invalid stream type " + streamType); 195 private native final int native_speak(int jniData, String text, int streamType);
|
/external/opencore/fileformats/mp4/composer/include/ |
decoderconfigdescriptor.h | 35 PVA_FF_DecoderConfigDescriptor(int32 streamType, int32 codecType); // Constructor 39 void init(int32 streamType);
|
esdatom.h | 35 PVA_FF_ESDAtom(int32 streamType, int32 codecType); // Constructor
|
esdescriptor.h | 34 PVA_FF_ESDescriptor(int32 streamType, int32 codecType); // Constructor
|
/frameworks/base/include/media/ |
AudioTrack.h | 117 * streamType: Select the type of audio stream this track is attached to 133 AudioTrack( int streamType, 152 AudioTrack( int streamType, 175 status_t set(int streamType =-1, 203 int streamType() const; 394 status_t createTrack(int streamType,
|
IAudioFlinger.h | 46 int streamType,
|
/frameworks/base/core/jni/ |
android_media_ToneGenerator.cpp | 81 jint streamType, jint volume) { 82 ToneGenerator *lpToneGen = new ToneGenerator(streamType, AudioSystem::linearToLog(volume), true);
|
android_media_AudioTrack.cpp | 168 jint streamType, jint sampleRateInHertz, jint channels, 176 if (AudioSystem::getOutputFrameCount(&afFrameCount, streamType) != NO_ERROR) { 180 if (AudioSystem::getOutputSamplingRate(&afSampleRate, streamType) != NO_ERROR) { 193 if (streamType == javaAudioTrackFields.STREAM_VOICE_CALL) { 195 } else if (streamType == javaAudioTrackFields.STREAM_SYSTEM) { 197 } else if (streamType == javaAudioTrackFields.STREAM_RING) { 199 } else if (streamType == javaAudioTrackFields.STREAM_MUSIC) { 201 } else if (streamType == javaAudioTrackFields.STREAM_ALARM) { 203 } else if (streamType == javaAudioTrackFields.STREAM_NOTIFICATION) { 205 } else if (streamType == javaAudioTrackFields.STREAM_BLUETOOTH_SCO) [all...] |
/frameworks/base/media/libmedia/ |
AudioSystem.cpp | 220 status_t AudioSystem::getOutputSamplingRate(int* samplingRate, int streamType) 225 if (streamType == DEFAULT) { 226 streamType = MUSIC; 229 output = getOutput((stream_type)streamType); 248 LOGV("getOutputSamplingRate() streamType %d, output %d, sampling rate %d", streamType, output, *samplingRate); 253 status_t AudioSystem::getOutputFrameCount(int* frameCount, int streamType) 258 if (streamType == DEFAULT) { 259 streamType = MUSIC; 262 output = getOutput((stream_type)streamType); [all...] |
AudioTrack.cpp | 53 int streamType, 64 mStatus = set(streamType, sampleRate, format, channels, 69 int streamType, 80 mStatus = set(streamType, sampleRate, format, channels, 103 int streamType, 124 if (AudioSystem::getOutputSamplingRate(&afSampleRate, streamType) != NO_ERROR) { 128 if (AudioSystem::getOutputFrameCount(&afFrameCount, streamType) != NO_ERROR) { 132 if (AudioSystem::getOutputLatency(&afLatency, streamType) != NO_ERROR) { 137 if (streamType == AudioSystem::DEFAULT) { 138 streamType = AudioSystem::MUSIC [all...] |
/frameworks/base/media/jni/soundpool/ |
SoundPool.cpp | 41 SoundPool::SoundPool(int maxChannels, int streamType, int srcQuality) 43 LOGV("SoundPool constructor: maxChannels=%d, streamType=%d, srcQuality=%d", 44 maxChannels, streamType, srcQuality); 58 mStreamType = streamType; 533 int streamType = mSoundPool->streamType(); 534 if (AudioSystem::getOutputFrameCount(&afFrameCount, streamType) != NO_ERROR) { 537 if (AudioSystem::getOutputSamplingRate(&afSampleRate, streamType) != NO_ERROR) { 569 newTrack = new AudioTrack(streamType, sampleRate, sample->format(), 572 newTrack = new AudioTrack(streamType, sampleRate, sample->format() [all...] |
/frameworks/base/core/java/android/preference/ |
VolumePreference.java | 60 public void setStreamType(int streamType) { 61 mStreamType = streamType; 245 public SeekBarVolumizer(Context context, SeekBar seekBar, int streamType) { 248 mStreamType = streamType;
|
/frameworks/base/media/libmediaplayerservice/ |
MediaPlayerService.h | 92 void setAudioStreamType(int streamType) { mStreamType = streamType; } 147 void setAudioStreamType(int streamType) {}
|