Searched defs:streamType (Results 1 - 25 of 27) sorted by relevance

12

/frameworks/base/core/jni/
H A Dandroid_media_ToneGenerator.cpp81 jint streamType, jint volume) {
82 ToneGenerator *lpToneGen = new ToneGenerator(streamType, AudioSystem::linearToLog(volume), true);
80 android_media_ToneGenerator_native_setup(JNIEnv *env, jobject thiz, jint streamType, jint volume) argument
H A Dandroid_media_AudioTrack.cpp168 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
167 android_media_AudioTrack_native_setup(JNIEnv *env, jobject thiz, jobject weak_this, jint streamType, jint sampleRateInHertz, jint channels, jint audioFormat, jint buffSizeInBytes, jint memoryMode) argument
[all...]
/frameworks/base/media/java/android/media/
H A DRingtone.java78 * @param streamType The stream, see {@link AudioManager}.
80 public void setStreamType(int streamType) { argument
81 mStreamType = streamType;
H A DSoundPool.java115 * @param streamType the audio stream type as described in AudioManager
122 public SoundPool(int maxStreams, int streamType, int srcQuality) { argument
123 native_setup(new WeakReference<SoundPool>(this), maxStreams, streamType, srcQuality);
371 int maxStreams, int streamType, int srcQuality);
370 native_setup(Object mediaplayer_this, int maxStreams, int streamType, int srcQuality) argument
H A DRingtoneManager.java591 * @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) { argument
599 if (streamType >= 0) {
600 r.setStreamType(streamType);
H A DAudioManager.java352 * @param streamType The stream type to adjust. One of {@link #STREAM_VOICE_CALL},
362 public void adjustStreamVolume(int streamType, int direction, int flags) { argument
365 service.adjustStreamVolume(streamType, direction, flags);
443 * @param streamType The stream type whose maximum volume index is returned.
447 public int getStreamMaxVolume(int streamType) { argument
450 return service.getStreamMaxVolume(streamType);
460 * @param streamType The stream type whose volume index is returned.
465 public int getStreamVolume(int streamType) { argument
468 return service.getStreamVolume(streamType);
498 * @param streamType Th
505 setStreamVolume(int streamType, int index, int flags) argument
531 setStreamSolo(int streamType, boolean state) argument
560 setStreamMute(int streamType, boolean state) argument
[all...]
H A DAudioService.java361 int streamType = getActiveStreamType(suggestedStreamType);
364 if (streamType != AudioSystem.STREAM_RING && (flags & AudioManager.FLAG_PLAY_SOUND) != 0) {
368 adjustStreamVolume(streamType, direction, flags);
372 public void adjustStreamVolume(int streamType, int direction, int flags) { argument
374 ensureValidStreamType(streamType);
377 VolumeStreamState streamState = mStreamStates[STREAM_VOLUME_ALIAS[streamType]];
384 || streamType == AudioSystem.STREAM_RING) {
394 sendMsg(mAudioHandler, MSG_SET_SYSTEM_VOLUME, STREAM_VOLUME_ALIAS[streamType], SENDMSG_NOOP, 0, 0,
400 mVolumePanel.postVolumeChanged(streamType, flags);
402 sendVolumeUpdate(streamType);
406 setStreamVolume(int streamType, int index, int flags) argument
417 sendVolumeUpdate(int streamType) argument
438 setStreamVolumeInt(int streamType, int index, boolean force, boolean lastAudible) argument
451 setStreamSolo(int streamType, boolean state, IBinder cb) argument
460 setStreamMute(int streamType, boolean state, IBinder cb) argument
467 getStreamVolume(int streamType) argument
473 getStreamMaxVolume(int streamType) argument
847 isStreamAffectedByRingerMode(int streamType) argument
851 isStreamAffectedByMute(int streamType) argument
861 ensureValidStreamType(int streamType) argument
916 getMsg(int baseMsg, int streamType) argument
924 sendMsg(Handler handler, int baseMsg, int streamType, int existingMsgPolicy, int arg1, int arg2, Object obj, int delay) argument
965 VolumeStreamState(String settingName, int streamType) argument
[all...]
H A DAudioTrack.java236 * @param streamType the type of the audio stream. See
258 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, argument
268 audioParamCheck(streamType, sampleRateInHz, channelConfig, audioFormat, mode);
298 private void audioParamCheck(int streamType, int sampleRateInHz, argument
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 !
535 getNativeOutputSampleRate(int streamType) argument
1013 native_setup(Object audiotrack_this, int streamType, int sampleRate, int nbChannels, int audioFormat, int buffSizeInBytes, int mode) argument
1055 native_get_output_sample_rate(int streamType) argument
[all...]
H A DToneGenerator.java735 * @param streamType The streame type used for tone playback (e.g. STREAM_MUSIC).
739 public ToneGenerator(int streamType, int volume) { argument
740 native_setup(streamType, volume);
874 private native final void native_setup(int streamType, int volume); argument
/frameworks/base/core/java/android/preference/
H A DVolumePreference.java60 public void setStreamType(int streamType) { argument
61 mStreamType = streamType;
241 public SeekBarVolumizer(Context context, SeekBar seekBar, int streamType) { argument
244 mStreamType = streamType;
/frameworks/base/core/java/android/view/
H A DVolumePanel.java125 public void postVolumeChanged(int streamType, int flags) { argument
128 obtainMessage(MSG_VOLUME_CHANGED, streamType, flags).sendToTarget();
136 protected void onVolumeChanged(int streamType, int flags) { argument
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) { argument
160 int index = mAudioService.getStreamVolume(streamType);
166 Log.d(TAG, "onShowVolumeChanged(streamType
277 onPlaySound(int streamType, int flags) argument
319 getOrCreateToneGenerator(int streamType) argument
[all...]
H A DWindow.java1032 public abstract void setVolumeControlStream(int streamType); argument
/frameworks/base/media/jni/soundpool/
H A Dandroid_media_SoundPool.cpp154 jobject weak_this, jint maxChannels, jint streamType, jint srcQuality)
157 SoundPool *ap = new SoundPool(weak_this, maxChannels, streamType, srcQuality);
153 android_media_SoundPool_native_setup(JNIEnv *env, jobject thiz, jobject weak_this, jint maxChannels, jint streamType, jint srcQuality) argument
H A DSoundPool.cpp41 SoundPool::SoundPool(jobject soundPoolRef, int maxChannels, int streamType, int srcQuality) argument
43 LOGV("SoundPool constructor: maxChannels=%d, streamType=%d, srcQuality=%d",
44 maxChannels, streamType, srcQuality);
59 mStreamType = streamType;
495 int streamType = mSoundPool->streamType(); local
496 if (AudioSystem::getOutputFrameCount(&afFrameCount, streamType) != NO_ERROR) {
499 if (AudioSystem::getOutputSamplingRate(&afSampleRate, streamType) != NO_ERROR) {
531 newTrack = new AudioTrack(streamType, sampleRate, sample->format(),
534 newTrack = new AudioTrack(streamType, sampleRat
[all...]
H A DSoundPool.h162 SoundPool(jobject soundPoolRef, int maxChannels, int streamType, int srcQuality);
176 int streamType() const { return mStreamType; } function in class:android::SoundPool
/frameworks/base/media/libmedia/
H A DToneGenerator.cpp794 // streamType: Type of stream used for tone playback (enum AudioTrack::stream_type)
801 ToneGenerator::ToneGenerator(int streamType, float volume, bool threadCanCallJava) { argument
803 LOGV("ToneGenerator constructor: streamType=%d, volume=%f\n", streamType, volume);
807 if (AudioSystem::getOutputSamplingRate(&mSamplingRate, streamType) != NO_ERROR) {
812 mStreamType = streamType;
H A DAudioTrack.cpp54 int streamType,
65 mStatus = set(streamType, sampleRate, format, channels,
70 int streamType,
81 mStatus = set(streamType, sampleRate, format, channels,
104 int streamType,
125 if (AudioSystem::getOutputSamplingRate(&afSampleRate, streamType) != NO_ERROR) {
129 if (AudioSystem::getOutputFrameCount(&afFrameCount, streamType) != NO_ERROR) {
133 if (AudioSystem::getOutputLatency(&afLatency, streamType) != NO_ERROR) {
138 if (streamType == AudioSystem::DEFAULT) {
139 streamType
53 AudioTrack( int streamType, uint32_t sampleRate, int format, int channels, int frameCount, uint32_t flags, callback_t cbf, void* user, int notificationFrames) argument
69 AudioTrack( int streamType, uint32_t sampleRate, int format, int channels, const sp<IMemory>& sharedBuffer, uint32_t flags, callback_t cbf, void* user, int notificationFrames) argument
103 set( int streamType, uint32_t sampleRate, int format, int channels, int frameCount, uint32_t flags, callback_t cbf, void* user, int notificationFrames, const sp<IMemory>& sharedBuffer, bool threadCanCallJava) argument
268 int AudioTrack::streamType() const function in class:android::AudioTrack
603 createTrack( int streamType, uint32_t sampleRate, int format, int channelCount, int frameCount, uint32_t flags, const sp<IMemory>& sharedBuffer, audio_io_handle_t output) argument
[all...]
H A DIAudioFlinger.cpp76 int streamType,
90 data.writeInt32(streamType);
481 int streamType = data.readInt32(); local
491 streamType, sampleRate, format,
74 createTrack( pid_t pid, int streamType, uint32_t sampleRate, int format, int channelCount, int frameCount, uint32_t flags, const sp<IMemory>& sharedBuffer, int output, status_t *status) argument
H A DAudioSystem.cpp220 status_t AudioSystem::getOutputSamplingRate(int* samplingRate, int streamType) argument
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) argument
258 if (streamType == DEFAULT) {
259 streamType = MUSIC;
262 output = getOutput((stream_type)streamType);
284 getOutputLatency(uint32_t* latency, int streamType) argument
434 routedToA2dpOutput(int streamType) argument
[all...]
/frameworks/base/packages/TtsService/src/android/tts/
H A DSynthProxy.java69 public int speak(String text, int streamType) { argument
70 if ((streamType > -1) && (streamType < AudioSystem.getNumStreamTypes())) {
71 return native_speak(mJniData, text, streamType);
73 Log.e("SynthProxy", "Trying to speak with invalid stream type " + streamType);
173 private native final int native_speak(int jniData, String text, int streamType); argument
/frameworks/base/media/libmediaplayerservice/
H A DMediaPlayerService.h91 void setAudioStreamType(int streamType) { mStreamType = streamType; } argument
146 void setAudioStreamType(int streamType) {} argument
/frameworks/base/core/java/android/app/
H A DDialog.java1023 public final void setVolumeControlStream(int streamType) { argument
1024 getWindow().setVolumeControlStream(streamType);
/frameworks/base/packages/TtsService/jni/
H A Dandroid_tts_SynthProxy.cpp65 AudioSystem::stream_type streamType; member in struct:afterSynthData_t
198 void createAudioOut(AudioSystem::stream_type streamType, uint32_t rate, argument
203 mStreamType = streamType;
243 void prepAudioTrack(SynthProxyJniStorage* pJniData, AudioSystem::stream_type streamType, argument
251 (streamType == pJniData->mStreamType) ){
257 pJniData->createAudioOut(streamType, rate, format, channel);
287 prepAudioTrack(pJniData, pForAfter->streamType, rate, (AudioSystem::audio_format)format, channel);
687 pForAfter->streamType = (AudioSystem::stream_type) javaStreamType;
/frameworks/policies/base/mid/com/android/internal/policy/impl/
H A DMidWindow.java2377 public void setVolumeControlStream(int streamType) { argument
2378 mVolumeControlStreamType = streamType;
/frameworks/policies/base/phone/com/android/internal/policy/impl/
H A DPhoneWindow.java2487 public void setVolumeControlStream(int streamType) { argument
2488 mVolumeControlStreamType = streamType;

Completed in 252 milliseconds

12