/frameworks/base/core/jni/ |
H A D | android_media_ToneGenerator.cpp | 81 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 D | 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 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, jintArray jSession) argument [all...] |
/frameworks/base/media/java/android/media/ |
H A D | Ringtone.java | 78 * @param streamType The stream, see {@link AudioManager}. 80 public void setStreamType(int streamType) { argument 81 mStreamType = streamType;
|
H A D | SoundPool.java | 130 * @param streamType the audio stream type as described in AudioManager 137 public SoundPool(int maxStreams, int streamType, int srcQuality) { argument 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); argument
|
H A D | 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) { argument 599 if (streamType >= 0) { 600 r.setStreamType(streamType);
|
H A D | AudioTrack.java | 240 * @param streamType the type of the audio stream. See 262 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, argument 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, argument 312 audioParamCheck(streamType, sampleRateInHz, channelConfig, audioFormat, mode); 350 private void audioParamCheck(int streamType, int sampleRateInHz, argument 355 if( (streamType != AudioManager.STREAM_ALARM) && (streamType != AudioManager.STREAM_MUSIC) 356 && (streamType ! 587 getNativeOutputSampleRate(int streamType) argument 1130 native_setup(Object audiotrack_this, int streamType, int sampleRate, int nbChannels, int audioFormat, int buffSizeInBytes, int mode, int[] sessionId) argument 1172 native_get_output_sample_rate(int streamType) argument [all...] |
H A D | ToneGenerator.java | 735 * @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
|
H A D | 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) { argument 379 service.adjustStreamVolume(streamType, direction, flags); 457 * @param streamType The stream type whose maximum volume index is returned. 461 public int getStreamMaxVolume(int streamType) { argument 464 return service.getStreamMaxVolume(streamType); 474 * @param streamType The stream type whose volume index is returned. 479 public int getStreamVolume(int streamType) { argument 482 return service.getStreamVolume(streamType); 512 * @param streamType Th 519 setStreamVolume(int streamType, int index, int flags) argument 545 setStreamSolo(int streamType, boolean state) argument 574 setStreamMute(int streamType, boolean state) argument 1443 requestAudioFocus(OnAudioFocusChangeListener l, int streamType, int durationHint) argument [all...] |
H A D | 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) { argument 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, flag 468 setStreamVolume(int streamType, int index, int flags) argument 485 sendVolumeUpdate(int streamType, int oldIndex, int index) argument 507 setStreamVolumeInt(int streamType, int index, boolean force, boolean lastAudible) argument 530 setStreamSolo(int streamType, boolean state, IBinder cb) argument 539 setStreamMute(int streamType, boolean state, IBinder cb) argument 546 getStreamVolume(int streamType) argument 552 getStreamMaxVolume(int streamType) argument 1173 isStreamAffectedByRingerMode(int streamType) argument 1177 isStreamMutedByRingerMode(int streamType) argument 1181 isStreamAffectedByMute(int streamType) argument 1191 ensureValidStreamType(int streamType) argument 1246 getMsg(int baseMsg, int streamType) argument 1254 sendMsg(Handler handler, int baseMsg, int streamType, int existingMsgPolicy, int arg1, int arg2, Object obj, int delay) argument 1295 VolumeStreamState(String settingName, int streamType) argument 2024 FocusStackEntry(int streamType, int duration, boolean isTransportControlReceiver, IAudioFocusDispatcher afl, IBinder source, String id) argument [all...] |
/frameworks/base/core/java/android/preference/ |
H A D | VolumePreference.java | 60 public void setStreamType(int streamType) { argument 61 mStreamType = streamType; 245 public SeekBarVolumizer(Context context, SeekBar seekBar, int streamType) { argument 248 mStreamType = streamType;
|
/frameworks/base/core/java/android/view/ |
H A D | VolumePanel.java | 125 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 D | Window.java | 1047 public abstract void setVolumeControlStream(int streamType); argument
|
/frameworks/base/media/jni/soundpool/ |
H A D | android_media_SoundPool.cpp | 179 android_media_SoundPool_native_setup(JNIEnv *env, jobject thiz, jobject weakRef, jint maxChannels, jint streamType, jint srcQuality) argument 182 SoundPool *ap = new SoundPool(maxChannels, streamType, srcQuality);
|
H A D | SoundPool.cpp | 41 SoundPool::SoundPool(int maxChannels, int streamType, int srcQuality) argument 43 LOGV("SoundPool constructor: maxChannels=%d, streamType=%d, srcQuality=%d", 44 maxChannels, streamType, srcQuality); 58 mStreamType = streamType; 533 int streamType = mSoundPool->streamType(); local 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, sampleRat [all...] |
H A D | SoundPool.h | 165 SoundPool(int maxChannels, int streamType, int srcQuality); 181 int streamType() const { return mStreamType; } function in class:android::SoundPool
|
/frameworks/base/media/libmedia/ |
H A D | ToneGenerator.cpp | 795 // streamType: Type of stream used for tone playback (enum AudioTrack::stream_type) 802 ToneGenerator::ToneGenerator(int streamType, float volume, bool threadCanCallJava) { argument 804 LOGV("ToneGenerator constructor: streamType=%d, volume=%f\n", streamType, volume); 808 if (AudioSystem::getOutputSamplingRate(&mSamplingRate, streamType) != NO_ERROR) { 813 mStreamType = streamType;
|
H A D | AudioSystem.cpp | 220 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 465 routedToA2dpOutput(int streamType) argument [all...] |
H A D | 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) ! 47 getMinFrameCount( int* frameCount, int streamType, uint32_t sampleRate) argument 81 AudioTrack( int streamType, uint32_t sampleRate, int format, int channels, int frameCount, uint32_t flags, callback_t cbf, void* user, int notificationFrames, int sessionId) argument 99 AudioTrack( int streamType, uint32_t sampleRate, int format, int channels, const sp<IMemory>& sharedBuffer, uint32_t flags, callback_t cbf, void* user, int notificationFrames, int sessionId) argument 135 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, int sessionId) argument 263 int AudioTrack::streamType() const function in class:android::AudioTrack 653 createTrack( int streamType, uint32_t sampleRate, int format, int channelCount, int frameCount, uint32_t flags, const sp<IMemory>& sharedBuffer, audio_io_handle_t output, bool enforceFrameCount) argument [all...] |
H A D | IAudioFlinger.cpp | 86 int streamType, 101 data.writeInt32(streamType); 704 int streamType = data.readInt32(); local 715 streamType, sampleRate, format, 84 createTrack( pid_t pid, int streamType, uint32_t sampleRate, int format, int channelCount, int frameCount, uint32_t flags, const sp<IMemory>& sharedBuffer, int output, int *sessionId, status_t *status) argument
|
/frameworks/base/packages/TtsService/src/android/tts/ |
H A D | SynthProxy.java | 81 public int speak(String text, int streamType) { argument 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); argument
|
/frameworks/base/media/libmediaplayerservice/ |
H A D | MediaPlayerService.h | 93 void setAudioStreamType(int streamType) { mStreamType = streamType; } argument 150 void setAudioStreamType(int streamType) {} argument
|
/frameworks/base/media/libstagefright/ |
H A D | MPEG2TSWriter.cpp | 42 unsigned streamType() const; 106 unsigned MPEG2TSWriter::SourceInfo::streamType() const { function in class:android::MPEG2TSWriter::SourceInfo 654 *ptr++ = mSources.editItemAt(i)->streamType(); 719 mSources.editItemAt(sourceIndex)->streamType() == 0x0f ? 0xc0 : 0xe0;
|
/frameworks/base/media/libstagefright/mpeg2ts/ |
H A D | ATSParser.cpp | 70 Stream(Program *program, unsigned elementaryPID, unsigned streamType); 185 unsigned streamType = br->getBits(8); local 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 267 Stream( Program *program, unsigned elementaryPID, unsigned streamType) argument
|
/frameworks/base/core/java/android/app/ |
H A D | Dialog.java | 1018 public final void setVolumeControlStream(int streamType) { argument 1019 getWindow().setVolumeControlStream(streamType);
|
/frameworks/base/packages/TtsService/jni/ |
H A D | android_tts_SynthProxy.cpp | 65 AudioSystem::stream_type streamType; member in struct:afterSynthData_t 207 void createAudioOut(AudioSystem::stream_type streamType, uint32_t rate, argument 212 mStreamType = streamType; 253 void prepAudioTrack(SynthProxyJniStorage* pJniData, AudioSystem::stream_type streamType, argument 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;
|