Home
last modified time | relevance | path

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

123

/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DVolumePanel.java229 int streamType; field in VolumePanel.StreamResources
236 StreamResources(int streamType, int descRes, int iconRes, int iconMuteRes, boolean show) { in StreamResources() argument
237 this.streamType = streamType; in StreamResources()
259 int streamType; field in VolumePanel.StreamControl
370 streamRes.show = (streamRes.streamType == STREAM_MASTER); in VolumePanel()
503 pw.print(" stream "); pw.print(sc.streamType); pw.print(":"); in dump()
575 private boolean isMuted(int streamType) { in isMuted() argument
576 if (streamType == STREAM_MASTER) { in isMuted()
578 } else if (streamType == STREAM_REMOTE_MUSIC) { in isMuted()
582 return mAudioManager.isStreamMute(streamType); in isMuted()
[all …]
DVolumeUI.java158 public void volumeChanged(int streamType, int flags) in volumeChanged() argument
160 mPanel.postVolumeChanged(streamType, flags); in volumeChanged()
/frameworks/base/media/java/android/media/
DIAudioService.aidl45 void adjustStreamVolume(int streamType, int direction, int flags, String callingPackage); in adjustStreamVolume() argument
49 void setStreamVolume(int streamType, int index, int flags, String callingPackage); in setStreamVolume() argument
55 void setStreamSolo(int streamType, boolean state, IBinder cb); in setStreamSolo() argument
57 void setStreamMute(int streamType, boolean state, IBinder cb); in setStreamMute() argument
59 boolean isStreamMute(int streamType); in isStreamMute() argument
67 int getStreamVolume(int streamType); in getStreamVolume() argument
71 int getStreamMaxVolume(int streamType); in getStreamMaxVolume() argument
75 int getLastAudibleStreamVolume(int streamType); in getLastAudibleStreamVolume() argument
192 void forceVolumeControlStream(int streamType, IBinder cb); in forceVolumeControlStream() argument
209 boolean isStreamAffectedByRingerMode(int streamType); in isStreamAffectedByRingerMode() argument
DAudioService.java746 for (int streamType = 0; streamType < numStreamTypes; streamType++) { in checkAllAliasStreamVolumes()
747 if (streamType != mStreamVolumeAlias[streamType]) { in checkAllAliasStreamVolumes()
748 mStreamStates[streamType]. in checkAllAliasStreamVolumes()
749 setAllIndexes(mStreamStates[mStreamVolumeAlias[streamType]]); in checkAllAliasStreamVolumes()
752 if (!mStreamStates[streamType].isMuted_syncVSS()) { in checkAllAliasStreamVolumes()
753 mStreamStates[streamType].applyAllVolumes(); in checkAllAliasStreamVolumes()
762 for (int streamType = 0; streamType < numStreamTypes; streamType++) { in checkAllFixedVolumeDevices()
763 mStreamStates[streamType].checkFixedVolumeDevices(); in checkAllFixedVolumeDevices()
767 private void checkAllFixedVolumeDevices(int streamType) { in checkAllFixedVolumeDevices() argument
768 mStreamStates[streamType].checkFixedVolumeDevices(); in checkAllFixedVolumeDevices()
[all …]
DAudioManagerInternal.java31 public abstract void adjustSuggestedStreamVolumeForUid(int streamType, int direction, in adjustSuggestedStreamVolumeForUid() argument
35 public abstract void adjustStreamVolumeForUid(int streamType, int direction, int flags, in adjustStreamVolumeForUid() argument
38 public abstract void setStreamVolumeForUid(int streamType, int direction, int flags, in setStreamVolumeForUid() argument
DAudioManager.java822 public void adjustStreamVolume(int streamType, int direction, int flags) { in adjustStreamVolume() argument
828 service.adjustStreamVolume(streamType, direction, flags, in adjustStreamVolume()
966 public int getStreamMaxVolume(int streamType) { in getStreamMaxVolume() argument
972 return service.getStreamMaxVolume(streamType); in getStreamMaxVolume()
988 public int getStreamVolume(int streamType) { in getStreamVolume() argument
994 return service.getStreamVolume(streamType); in getStreamVolume()
1007 public int getLastAudibleStreamVolume(int streamType) { in getLastAudibleStreamVolume() argument
1013 return service.getLastAudibleStreamVolume(streamType); in getLastAudibleStreamVolume()
1074 public void setStreamVolume(int streamType, int index, int flags) { in setStreamVolume() argument
1080 service.setStreamVolume(streamType, index, flags, mContext.getOpPackageName()); in setStreamVolume()
[all …]
DAudioAttributes.java450 public Builder setLegacyStreamType(int streamType) { in setLegacyStreamType() argument
451 return setInternalLegacyStreamType(streamType); in setLegacyStreamType()
460 public Builder setInternalLegacyStreamType(int streamType) { in setInternalLegacyStreamType() argument
461 switch(streamType) { in setInternalLegacyStreamType()
494 Log.e(TAG, "Invalid stream type " + streamType + " for AudioAttributes"); in setInternalLegacyStreamType()
496 mUsage = usageForLegacyStreamType(streamType); in setInternalLegacyStreamType()
686 public static int usageForLegacyStreamType(int streamType) { in usageForLegacyStreamType() argument
687 switch(streamType) { in usageForLegacyStreamType()
DToneGenerator.java745 public ToneGenerator(int streamType, int volume) { in ToneGenerator() argument
746 native_setup(streamType, volume); in ToneGenerator()
880 private native final void native_setup(int streamType, int volume); in native_setup() argument
DAudioTrack.java313 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, in AudioTrack() argument
316 this(streamType, sampleRateInHz, channelConfig, audioFormat, in AudioTrack()
355 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, in AudioTrack() argument
360 .setLegacyStreamType(streamType) in AudioTrack()
787 static public int getNativeOutputSampleRate(int streamType) { in getNativeOutputSampleRate() argument
788 return native_get_output_sample_rate(streamType); in getNativeOutputSampleRate()
1692 static private native final int native_get_output_sample_rate(int streamType); in native_get_output_sample_rate() argument
DIVolumeController.aidl28 void volumeChanged(int streamType, int flags); in volumeChanged() argument
DRingtoneManager.java586 private static Ringtone getRingtone(final Context context, Uri ringtoneUri, int streamType) { in getRingtone() argument
589 if (streamType >= 0) { in getRingtone()
590 r.setStreamType(streamType); in getRingtone()
/frameworks/av/include/media/
DAudioPolicyHelper.h64 static void stream_type_to_audio_attributes(audio_stream_type_t streamType, in stream_type_to_audio_attributes() argument
68 switch (streamType) { in stream_type_to_audio_attributes()
111 ALOGE("invalid stream type %d when converting to attributes", streamType); in stream_type_to_audio_attributes()
DAudioTrack.h127 audio_stream_type_t streamType,
178 AudioTrack( audio_stream_type_t streamType,
205 AudioTrack( audio_stream_type_t streamType,
246 status_t set(audio_stream_type_t streamType,
279 audio_stream_type_t streamType() const;
603 void setAttributesFromStreamType(audio_stream_type_t streamType);
/frameworks/av/media/libstagefright/wifi-display/source/
DTSPacketizer.cpp37 unsigned PID, unsigned streamType, unsigned streamID);
40 unsigned streamType() const;
88 unsigned PID, unsigned streamType, unsigned streamID) in Track() argument
91 mStreamType(streamType), in Track()
134 unsigned TSPacketizer::Track::streamType() const { in streamType() function in android::TSPacketizer::Track
398 unsigned streamType; in addTrack() local
403 streamType = 0x1b; in addTrack()
407 streamType = 0x0f; in addTrack()
411 streamType = 0x83; in addTrack()
424 if (track->streamType() == streamType) { in addTrack()
[all …]
/frameworks/av/media/libmedia/
DAudioTrack.cpp57 audio_stream_type_t streamType, in getMinFrameCount() argument
72 status = AudioSystem::getOutputSamplingRate(&afSampleRate, streamType); in getMinFrameCount()
75 streamType, status); in getMinFrameCount()
79 status = AudioSystem::getOutputFrameCount(&afFrameCount, streamType); in getMinFrameCount()
82 streamType, status); in getMinFrameCount()
86 status = AudioSystem::getOutputLatency(&afLatency, streamType); in getMinFrameCount()
89 streamType, status); in getMinFrameCount()
105 streamType, sampleRate); in getMinFrameCount()
129 audio_stream_type_t streamType, in AudioTrack() argument
150 mStatus = set(streamType, sampleRate, format, channelMask, in AudioTrack()
[all …]
DAudioSystem.cpp242 status_t AudioSystem::getOutputSamplingRate(uint32_t* samplingRate, audio_stream_type_t streamType) in getOutputSamplingRate() argument
246 if (streamType == AUDIO_STREAM_DEFAULT) { in getOutputSamplingRate()
247 streamType = AUDIO_STREAM_MUSIC; in getOutputSamplingRate()
250 output = getOutput(streamType); in getOutputSamplingRate()
286 status_t AudioSystem::getOutputFrameCount(size_t* frameCount, audio_stream_type_t streamType) in getOutputFrameCount() argument
290 if (streamType == AUDIO_STREAM_DEFAULT) { in getOutputFrameCount()
291 streamType = AUDIO_STREAM_MUSIC; in getOutputFrameCount()
294 output = getOutput(streamType); in getOutputFrameCount()
328 status_t AudioSystem::getOutputLatency(uint32_t* latency, audio_stream_type_t streamType) in getOutputLatency() argument
332 if (streamType == AUDIO_STREAM_DEFAULT) { in getOutputLatency()
[all …]
/frameworks/ex/variablespeed/src/com/android/ex/variablespeed/
DSingleThreadedMediaPlayerProxy.java112 public void setAudioStreamType(int streamType) { in setAudioStreamType() argument
113 mDelegate.setAudioStreamType(streamType); in setAudioStreamType()
DMediaPlayerProxy.java49 void setAudioStreamType(int streamType); in setAudioStreamType() argument
/frameworks/base/core/java/android/preference/
DSeekBarVolumizer.java78 public SeekBarVolumizer(Context context, int streamType, Uri defaultUri, Callback callback) { in SeekBarVolumizer() argument
81 mStreamType = streamType; in SeekBarVolumizer()
367 int streamType = intent.getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_TYPE, -1); in onReceive() local
369 final boolean streamMatch = mNotificationOrRing ? isNotificationOrRing(streamType) in onReceive()
370 : (streamType == mStreamType); in onReceive()
DVolumePreference.java60 public void setStreamType(int streamType) { in setStreamType() argument
61 mStreamType = streamType; in setStreamType()
/frameworks/av/services/audioflinger/
DPlaybackTracks.h27 audio_stream_type_t streamType,
55 audio_stream_type_t streamType() const { in streamType() function
169 audio_stream_type_t streamType,
212 audio_stream_type_t streamType,
/frameworks/av/media/libstagefright/mpeg2ts/
DMPEG2PSExtractor.cpp488 unsigned streamType; in dequeuePES() local
494 streamType = mStreamTypeByESID.valueAt(streamTypeIndex); in dequeuePES()
498 streamType = ATSParser::STREAMTYPE_MPEG2_AUDIO; in dequeuePES()
501 streamType = ATSParser::STREAMTYPE_MPEG2_VIDEO; in dequeuePES()
503 streamType = ATSParser::STREAMTYPE_RESERVED; in dequeuePES()
507 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()
/frameworks/av/media/libstagefright/include/
DESDS.h38 status_t getStreamType(uint8_t *streamType) const;
/frameworks/av/include/media/stagefright/
DUtils.h64 bool isStreaming, audio_stream_type_t streamType);

123