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

1 2

  /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 413 int streamType = getActiveStreamType(suggestedStreamType);
416 if (streamType != AudioSystem.STREAM_RING && (flags & AudioManager.FLAG_PLAY_SOUND) != 0) {
420 adjustStreamVolume(streamType, direction, flags);
424 public void adjustStreamVolume(int streamType, int direction, int flags) {
426 ensureValidStreamType(streamType);
429 VolumeStreamState streamState = mStreamStates[STREAM_VOLUME_ALIAS[streamType]];
436 || streamType == AudioSystem.STREAM_RING) {
448 sendMsg(mAudioHandler, MSG_PERSIST_VOLUME, streamType,
456 sendMsg(mAudioHandler, MSG_SET_SYSTEM_VOLUME, STREAM_VOLUME_ALIAS[streamType], SENDMSG_NOOP, 0, 0,
462 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 240 * @param streamType the type of the audio stream. See
262 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat,
265 this(streamType, sampleRateInHz, channelConfig, audioFormat,
279 * @param streamType the type of the audio stream. See
302 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat,
312 audioParamCheck(streamType, sampleRateInHz, channelConfig, audioFormat, mode);
350 private void audioParamCheck(int streamType, int sampleRateInHz,
355 if( (streamType != AudioManager.STREAM_ALARM) && (streamType != AudioManager.STREAM_MUSIC)
356 && (streamType != AudioManager.STREAM_RING) && (streamType != AudioManager.STREAM_SYSTEM
    [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;
RingtoneManager.java 591 * @param streamType The stream type for the ringtone, or -1 if it should
595 private static Ringtone getRingtone(final Context context, Uri ringtoneUri, int streamType) {
599 if (streamType >= 0) {
600 r.setStreamType(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/include/media/
AudioTrack.h 113 int streamType =-1,
128 * streamType: Select the type of audio stream this track is attached to
144 AudioTrack( int streamType,
164 AudioTrack( int streamType,
188 status_t set(int streamType =-1,
217 int streamType() const;
440 status_t createTrack(int streamType,
MediaPlayerInterface.h 172 virtual status_t setAudioStreamType(int streamType) = 0;
IAudioFlinger.h 49 int streamType,
  /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);
TtsService.java 787 int streamType = DEFAULT_STREAM_TYPE;
810 streamType
813 streamType = DEFAULT_STREAM_TYPE;
    [all...]
  /frameworks/base/media/libmedia/
AudioTrack.cpp 49 int streamType,
53 if (AudioSystem::getOutputSamplingRate(&afSampleRate, streamType) != NO_ERROR) {
57 if (AudioSystem::getOutputFrameCount(&afFrameCount, streamType) != NO_ERROR) {
61 if (AudioSystem::getOutputLatency(&afLatency, streamType) != NO_ERROR) {
82 int streamType,
94 mStatus = set(streamType, sampleRate, format, channels,
100 int streamType,
112 mStatus = set(streamType, sampleRate, format, channels,
136 int streamType,
158 if (AudioSystem::getOutputSamplingRate(&afSampleRate, streamType) != NO_ERROR)
    [all...]
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...]
  /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/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...]
SoundPool.h 165 SoundPool(int maxChannels, int streamType, int srcQuality);
181 int streamType() const { return mStreamType; }
android_media_SoundPool.cpp 179 android_media_SoundPool_native_setup(JNIEnv *env, jobject thiz, jobject weakRef, jint maxChannels, jint streamType, jint srcQuality)
182 SoundPool *ap = new SoundPool(maxChannels, streamType, srcQuality);
  /frameworks/base/media/libstagefright/mpeg2ts/
ATSParser.cpp 70 Stream(Program *program, unsigned elementaryPID, unsigned streamType);
185 unsigned streamType = br->getBits(8);
186 LOGV(" stream_type = 0x%02x", streamType);
224 new Stream(this, elementaryPID, streamType));
228 new Stream(this, elementaryPID, streamType));
268 Program *program, unsigned elementaryPID, unsigned streamType)
271 mStreamType(streamType),
274 mQueue(streamType == 0x1b
  /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 93 void setAudioStreamType(int streamType) { mStreamType = streamType; }
150 void setAudioStreamType(int streamType) {}
  /frameworks/base/packages/TtsService/jni/
android_tts_SynthProxy.cpp 65 AudioSystem::stream_type streamType;
207 void createAudioOut(AudioSystem::stream_type streamType, uint32_t rate,
212 mStreamType = streamType;
253 void prepAudioTrack(SynthProxyJniStorage* pJniData, AudioSystem::stream_type streamType,
261 (streamType == pJniData->mStreamType) ){
267 pJniData->createAudioOut(streamType, rate, format, channel);
297 prepAudioTrack(pJniData, pForAfter->streamType, rate, (AudioSystem::audio_format)format, channel);
760 pForAfter->streamType = (AudioSystem::stream_type) javaStreamType;

Completed in 2728 milliseconds

1 2