Home
last modified time | relevance | path

Searched refs:streamType (Results 1 – 25 of 71) sorted by relevance

123

/frameworks/base/core/java/android/view/
DVolumePanel.java174 int streamType; field in VolumePanel.StreamResources
181 StreamResources(int streamType, int descRes, int iconRes, int iconMuteRes, boolean show) { in StreamResources() argument
182 this.streamType = streamType; in StreamResources()
204 int streamType; field in VolumePanel.StreamControl
259 streamRes.show = (streamRes.streamType == STREAM_MASTER); in VolumePanel()
349 private boolean isMuted(int streamType) { in isMuted() argument
350 if (streamType == STREAM_MASTER) { in isMuted()
352 } else if (streamType == AudioService.STREAM_REMOTE_MUSIC) { in isMuted()
355 return mAudioManager.isStreamMute(streamType); in isMuted()
359 private int getStreamMaxVolume(int streamType) { in getStreamMaxVolume() argument
[all …]
/frameworks/base/media/java/android/media/
DIAudioService.aidl39 oneway void adjustLocalOrRemoteStreamVolume(int streamType, int direction); in adjustLocalOrRemoteStreamVolume() argument
43 void adjustStreamVolume(int streamType, int direction, int flags); in adjustStreamVolume() argument
47 void setStreamVolume(int streamType, int index, int flags); in setStreamVolume() argument
53 void setStreamSolo(int streamType, boolean state, IBinder cb); in setStreamSolo() argument
55 void setStreamMute(int streamType, boolean state, IBinder cb); in setStreamMute() argument
57 boolean isStreamMute(int streamType); in isStreamMute() argument
63 int getStreamVolume(int streamType); in getStreamVolume() argument
67 int getStreamMaxVolume(int streamType); in getStreamMaxVolume() argument
71 int getLastAudibleStreamVolume(int streamType); in getLastAudibleStreamVolume() argument
146 void forceVolumeControlStream(int streamType, IBinder cb); in forceVolumeControlStream() argument
DAudioService.java578 for (int streamType = 0; streamType < numStreamTypes; streamType++) { in checkAllAliasStreamVolumes()
579 if (streamType != mStreamVolumeAlias[streamType]) { in checkAllAliasStreamVolumes()
580 mStreamStates[streamType]. in checkAllAliasStreamVolumes()
581 setAllIndexes(mStreamStates[mStreamVolumeAlias[streamType]], in checkAllAliasStreamVolumes()
583 mStreamStates[streamType]. in checkAllAliasStreamVolumes()
584 setAllIndexes(mStreamStates[mStreamVolumeAlias[streamType]], in checkAllAliasStreamVolumes()
588 if (mStreamStates[streamType].muteCount() == 0) { in checkAllAliasStreamVolumes()
589 mStreamStates[streamType].applyAllVolumes(); in checkAllAliasStreamVolumes()
773 public void adjustLocalOrRemoteStreamVolume(int streamType, int direction) { in adjustLocalOrRemoteStreamVolume() argument
785 int streamType; in adjustSuggestedStreamVolume() local
[all …]
DAudioTrack.java264 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, in AudioTrack() argument
267 this(streamType, sampleRateInHz, channelConfig, audioFormat, in AudioTrack()
305 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, in AudioTrack() argument
315 audioParamCheck(streamType, sampleRateInHz, channelConfig, audioFormat, mode); in AudioTrack()
362 private void audioParamCheck(int streamType, int sampleRateInHz, in audioParamCheck() argument
367 if( (streamType != AudioManager.STREAM_ALARM) && (streamType != AudioManager.STREAM_MUSIC) in audioParamCheck()
368 && (streamType != AudioManager.STREAM_RING) && (streamType != AudioManager.STREAM_SYSTEM) in audioParamCheck()
369 && (streamType != AudioManager.STREAM_VOICE_CALL) in audioParamCheck()
370 && (streamType != AudioManager.STREAM_NOTIFICATION) in audioParamCheck()
371 && (streamType != AudioManager.STREAM_BLUETOOTH_SCO) in audioParamCheck()
[all …]
DAudioManager.java548 public void adjustStreamVolume(int streamType, int direction, int flags) { in adjustStreamVolume() argument
554 service.adjustStreamVolume(streamType, direction, flags); in adjustStreamVolume()
678 public int getStreamMaxVolume(int streamType) { in getStreamMaxVolume() argument
684 return service.getStreamMaxVolume(streamType); in getStreamMaxVolume()
700 public int getStreamVolume(int streamType) { in getStreamVolume() argument
706 return service.getStreamVolume(streamType); in getStreamVolume()
719 public int getLastAudibleStreamVolume(int streamType) { in getLastAudibleStreamVolume() argument
725 return service.getLastAudibleStreamVolume(streamType); in getLastAudibleStreamVolume()
781 public void setStreamVolume(int streamType, int index, int flags) { in setStreamVolume() argument
787 service.setStreamVolume(streamType, index, flags); in setStreamVolume()
[all …]
DToneGenerator.java739 public ToneGenerator(int streamType, int volume) { in ToneGenerator() argument
740 native_setup(streamType, volume); in ToneGenerator()
874 private native final void native_setup(int streamType, int volume); in native_setup() argument
DIRingtonePlayer.aidl27 void play(IBinder token, in Uri uri, int streamType); in play() argument
32 void playAsync(in Uri uri, in UserHandle user, boolean looping, int streamType); in playAsync() argument
DSoundPool.java137 public SoundPool(int maxStreams, int streamType, int srcQuality) { in SoundPool() argument
140 if (native_setup(new WeakReference(this), maxStreams, streamType, srcQuality) != 0) { in SoundPool()
483 …private native final int native_setup(Object weakRef, int maxStreams, int streamType, int srcQuali… in native_setup() argument
/frameworks/av/media/libmedia/
DAudioSystem.cpp209 status_t AudioSystem::getOutputSamplingRate(int* samplingRate, int streamType) { in getOutputSamplingRate() argument
210 return getOutputSamplingRate(samplingRate, (audio_stream_type_t)streamType); in getOutputSamplingRate()
213 status_t AudioSystem::getOutputSamplingRate(int* samplingRate, audio_stream_type_t streamType) in getOutputSamplingRate() argument
217 if (streamType == AUDIO_STREAM_DEFAULT) { in getOutputSamplingRate()
218 streamType = AUDIO_STREAM_MUSIC; in getOutputSamplingRate()
221 output = getOutput(streamType); in getOutputSamplingRate()
226 return getSamplingRate(output, streamType, samplingRate); in getOutputSamplingRate()
230 audio_stream_type_t streamType, in getSamplingRate() argument
249 …ALOGV("getSamplingRate() streamType %d, output %d, sampling rate %d", streamType, output, *samplin… in getSamplingRate()
255 status_t AudioSystem::getOutputFrameCount(int* frameCount, int streamType) { in getOutputFrameCount() argument
[all …]
DAudioTrack.cpp54 audio_stream_type_t streamType, in getMinFrameCount() argument
69 if (AudioSystem::getOutputSamplingRate(&afSampleRate, streamType) != NO_ERROR) { in getMinFrameCount()
73 if (AudioSystem::getOutputFrameCount(&afFrameCount, streamType) != NO_ERROR) { in getMinFrameCount()
77 if (AudioSystem::getOutputLatency(&afLatency, streamType) != NO_ERROR) { in getMinFrameCount()
103 audio_stream_type_t streamType, in AudioTrack() argument
118 mStatus = set(streamType, sampleRate, format, channelMask, in AudioTrack()
125 int streamType, in AudioTrack() argument
139 mStatus = set((audio_stream_type_t)streamType, sampleRate, (audio_format_t)format, in AudioTrack()
146 audio_stream_type_t streamType, in AudioTrack() argument
161 mStatus = set(streamType, sampleRate, format, channelMask, in AudioTrack()
[all …]
DSoundPool.cpp42 SoundPool::SoundPool(int maxChannels, audio_stream_type_t streamType, int srcQuality) in SoundPool() argument
45 maxChannels, streamType, srcQuality); in SoundPool()
59 mStreamType = streamType; in SoundPool()
573 audio_stream_type_t streamType = mSoundPool->streamType(); in play() local
574 if (AudioSystem::getOutputFrameCount(&afFrameCount, streamType) != NO_ERROR) { in play()
577 if (AudioSystem::getOutputSamplingRate(&afSampleRate, streamType) != NO_ERROR) { in play()
610 newTrack = new AudioTrack(streamType, sampleRate, sample->format(), in play()
613 newTrack = new AudioTrack(streamType, sampleRate, sample->format(), in play()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DRingtonePlayer.java75 public Client(IBinder token, Uri uri, UserHandle user, int streamType) { in Client() argument
79 mRingtone.setStreamType(streamType); in Client()
95 public void play(IBinder token, Uri uri, int streamType) throws RemoteException {
105 client = new Client(token, uri, user, streamType);
141 public void playAsync(Uri uri, UserHandle user, boolean looping, int streamType) {
147 mAsyncPlayer.play(getContextForUser(user), uri, looping, streamType);
/frameworks/av/include/media/
DAudioTrack.h118 audio_stream_type_t streamType = AUDIO_STREAM_DEFAULT,
154 AudioTrack( audio_stream_type_t streamType,
166 explicit AudioTrack( int streamType,
186 AudioTrack( audio_stream_type_t streamType,
210 status_t set(audio_stream_type_t streamType = AUDIO_STREAM_DEFAULT,
239 audio_stream_type_t streamType() const;
485 status_t createTrack_l(audio_stream_type_t streamType,
/frameworks/av/media/libstagefright/wifi-display/source/
DTSPacketizer.cpp37 unsigned PID, unsigned streamType, unsigned streamID);
40 unsigned streamType() const;
86 unsigned PID, unsigned streamType, unsigned streamID) in Track() argument
89 mStreamType(streamType), in Track()
123 unsigned TSPacketizer::Track::streamType() const { in streamType() function in android::TSPacketizer::Track
366 unsigned streamType; in addTrack() local
371 streamType = 0x1b; in addTrack()
375 streamType = 0x0f; in addTrack()
379 streamType = 0x83; in addTrack()
392 if (track->streamType() == streamType) { in addTrack()
[all …]
/frameworks/base/core/java/android/preference/
DVolumePreference.java60 public void setStreamType(int streamType) { in setStreamType() argument
61 mStreamType = streamType; in setStreamType()
248 public SeekBarVolumizer(Context context, SeekBar seekBar, int streamType) { in SeekBarVolumizer() argument
249 this(context, seekBar, streamType, null); in SeekBarVolumizer()
252 public SeekBarVolumizer(Context context, SeekBar seekBar, int streamType, Uri defaultUri) { in SeekBarVolumizer() argument
255 mStreamType = streamType; in SeekBarVolumizer()
/frameworks/av/libvideoeditor/vss/stagefrightshells/src/
DVideoEditor3gpReader.cpp1413 M4_StreamType streamType = M4DA_StreamTypeUnknown; in VideoEditor3gpReader_getNextStreamHandler() local
1457 streamType = M4DA_StreamTypeVideoMpeg4Avc; in VideoEditor3gpReader_getNextStreamHandler()
1459 streamType = M4DA_StreamTypeVideoH263; in VideoEditor3gpReader_getNextStreamHandler()
1461 streamType = M4DA_StreamTypeVideoMpeg4; in VideoEditor3gpReader_getNextStreamHandler()
1466 streamType); in VideoEditor3gpReader_getNextStreamHandler()
1468 if(streamType != M4DA_StreamTypeUnknown) { in VideoEditor3gpReader_getNextStreamHandler()
1469 pC->mStreamType = streamType; in VideoEditor3gpReader_getNextStreamHandler()
1539 if(M4DA_StreamTypeVideoH263 == streamType) { in VideoEditor3gpReader_getNextStreamHandler()
1574 else if(M4DA_StreamTypeVideoMpeg4Avc == streamType) { in VideoEditor3gpReader_getNextStreamHandler()
1609 } else if( (M4DA_StreamTypeVideoMpeg4 == streamType) ) { in VideoEditor3gpReader_getNextStreamHandler()
[all …]
/frameworks/av/libvideoeditor/vss/src/
DM4AMRR_CoreReader.c97 M4OSA_UInt32 M4AMRR_getAuSize(M4OSA_UInt32 frameType, M4SYS_StreamType streamType);
98 M4OSA_UInt32 M4AMRR_getBitrate(M4OSA_UInt32 frameType, M4SYS_StreamType streamType);
111 M4OSA_UInt32 M4AMRR_getAuSize(M4OSA_UInt32 frameType, M4SYS_StreamType streamType) in M4AMRR_getAuSize() argument
116 if ( streamType == M4SYS_kAMR ) in M4AMRR_getAuSize()
137 M4OSA_UInt32 M4AMRR_getBitrate(M4OSA_UInt32 frameType, M4SYS_StreamType streamType) in M4AMRR_getBitrate() argument
144 if ( streamType == M4SYS_kAMR ) in M4AMRR_getBitrate()
345 pStreamDesc->streamType = pStreamContext->m_streamType; in M4AMRR_getNextStream()
366 pStreamContext->m_pStreamHandler->streamType = pStreamDesc->streamType ; in M4AMRR_getNextStream()
DM4PCMR_CoreReader.c240 pStreamDesc->streamType = M4SYS_kPCM_8bitsU; in M4PCMR_getNextStream()
247 pStreamDesc->streamType = M4SYS_kAudioUnknown; in M4PCMR_getNextStream()
255 pStreamDesc->streamType = M4SYS_kPCM_16bitsU; in M4PCMR_getNextStream()
258 pStreamDesc->streamType = M4SYS_kPCM_16bitsS; in M4PCMR_getNextStream()
261 pStreamDesc->streamType = M4SYS_kAudioUnknown; in M4PCMR_getNextStream()
266 pStreamDesc->streamType = M4SYS_kAudioUnknown; in M4PCMR_getNextStream()
/frameworks/ex/variablespeed/src/com/android/ex/variablespeed/
DSingleThreadedMediaPlayerProxy.java107 public void setAudioStreamType(int streamType) { in setAudioStreamType() argument
108 mDelegate.setAudioStreamType(streamType); in setAudioStreamType()
/frameworks/base/core/java/android/speech/tts/
DAudioPlaybackQueueItem.java38 Context context, Uri uri, int streamType) { in AudioPlaybackQueueItem() argument
43 mStreamType = streamType; in AudioPlaybackQueueItem()
DSynthesisPlaybackQueueItem.java66 SynthesisPlaybackQueueItem(int streamType, int sampleRate, in SynthesisPlaybackQueueItem() argument
78 mAudioTrack = new BlockingAudioTrack(streamType, sampleRate, audioFormat, in SynthesisPlaybackQueueItem()
DPlaybackSynthesisCallback.java69 PlaybackSynthesisCallback(int streamType, float volume, float pan, in PlaybackSynthesisCallback() argument
72 mStreamType = streamType; in PlaybackSynthesisCallback()
/frameworks/av/libvideoeditor/vss/3gpwriter/src/
DM4MP4W_Interface.c228 switch (pStreamDescription->streamType) in M4WRITER_3GP_addStream()
235 pStreamDescription->streamType); in M4WRITER_3GP_addStream()
265 pStreamDescription->streamType); in M4WRITER_3GP_addStream()
283 pStreamDescription->streamType); in M4WRITER_3GP_addStream()
301 switch (pStreamDescription->streamType) in M4WRITER_3GP_addStream()
/frameworks/av/media/libstagefright/mpeg2ts/
DMPEG2PSExtractor.cpp485 unsigned streamType; in dequeuePES() local
491 streamType = mStreamTypeByESID.valueAt(streamTypeIndex); in dequeuePES()
495 streamType = ATSParser::STREAMTYPE_MPEG2_AUDIO; in dequeuePES()
498 streamType = ATSParser::STREAMTYPE_MPEG2_VIDEO; in dequeuePES()
500 streamType = ATSParser::STREAMTYPE_RESERVED; in dequeuePES()
504 stream_id, new Track(this, stream_id, streamType)); in dequeuePES()
/frameworks/base/core/jni/
Dandroid_media_ToneGenerator.cpp89 jint streamType, jint volume) { in android_media_ToneGenerator_native_setup() argument
90 …ToneGenerator *lpToneGen = new ToneGenerator((audio_stream_type_t) streamType, AudioSystem::linear… in android_media_ToneGenerator_native_setup()

123