/frameworks/base/media/java/android/media/ |
H A D | 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);
|
H A D | AudioService.java | 410 int streamType = getActiveStreamType(suggestedStreamType); 413 if (streamType != AudioSystem.STREAM_RING && (flags & AudioManager.FLAG_PLAY_SOUND) != 0) { 417 adjustStreamVolume(streamType, direction, flags); 421 public void adjustStreamVolume(int streamType, int direction, int flags) { argument 423 ensureValidStreamType(streamType); 426 VolumeStreamState streamState = mStreamStates[STREAM_VOLUME_ALIAS[streamType]]; 433 || streamType == AudioSystem.STREAM_RING) { 445 sendMsg(mAudioHandler, MSG_PERSIST_VOLUME, streamType, 453 sendMsg(mAudioHandler, MSG_SET_SYSTEM_VOLUME, STREAM_VOLUME_ALIAS[streamType], SENDMSG_NOOP, 0, 0, 459 mVolumePanel.postVolumeChanged(streamType, flag 465 setStreamVolume(int streamType, int index, int flags) argument 482 sendVolumeUpdate(int streamType, int oldIndex, int index) argument 504 setStreamVolumeInt(int streamType, int index, boolean force, boolean lastAudible) argument 527 setStreamSolo(int streamType, boolean state, IBinder cb) argument 536 setStreamMute(int streamType, boolean state, IBinder cb) argument 543 getStreamVolume(int streamType) argument 549 getStreamMaxVolume(int streamType) argument 1166 isStreamAffectedByRingerMode(int streamType) argument 1170 isStreamMutedByRingerMode(int streamType) argument 1174 isStreamAffectedByMute(int streamType) argument 1184 ensureValidStreamType(int streamType) argument 1239 getMsg(int baseMsg, int streamType) argument 1247 sendMsg(Handler handler, int baseMsg, int streamType, int existingMsgPolicy, int arg1, int arg2, Object obj, int delay) argument 1288 VolumeStreamState(String settingName, int streamType) argument 1997 FocusStackEntry(int streamType, int duration, boolean isTransportControlReceiver, IAudioFocusDispatcher afl, IBinder source, String id) 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 | AudioTrack.java | 236 * @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 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 1438 requestAudioFocus(OnAudioFocusChangeListener l, int streamType, int durationHint) argument [all...] |
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 | Ringtone.java | 78 * @param streamType The stream, see {@link AudioManager}. 80 public void setStreamType(int streamType) { argument 81 mStreamType = streamType;
|
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);
|
/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...] |
/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
|
H A D | TtsService.java | 787 int streamType = DEFAULT_STREAM_TYPE; 810 streamType 813 streamType = DEFAULT_STREAM_TYPE; 847 sNativeSynth.speak(speechItem.mText, streamType); 1135 int streamType = DEFAULT_STREAM_TYPE; 1137 return streamType; 1143 streamType = Integer.parseInt(paramList.get(i + 1)); 1145 streamType = DEFAULT_STREAM_TYPE; 1149 return streamType;
|
/frameworks/base/include/media/ |
H A D | 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,
|
H A D | IAudioFlinger.h | 46 int streamType,
|
H A D | MediaPlayerInterface.h | 172 virtual status_t setAudioStreamType(int streamType) = 0;
|
H A D | ToneGenerator.h | 154 ToneGenerator(int streamType, float volume, bool threadCanCallJava = false);
|
/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) argument [all...] |
/frameworks/base/media/libmedia/ |
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 459 routedToA2dpOutput(int streamType) argument [all...] |
H A D | 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 52 AudioTrack( int streamType, uint32_t sampleRate, int format, int channels, int frameCount, uint32_t flags, callback_t cbf, void* user, int notificationFrames) argument 68 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 102 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 267 int AudioTrack::streamType() const function in class:android::AudioTrack 602 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...] |
/frameworks/base/media/jni/soundpool/ |
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
|
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);
|
/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/media/libmediaplayerservice/ |
H A D | MediaPlayerService.h | 92 void setAudioStreamType(int streamType) { mStreamType = streamType; } argument 147 void setAudioStreamType(int streamType) {} argument
|
/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;
|