Home
last modified time | relevance | path

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

1234

/frameworks/base/media/java/android/media/
DIAudioService.aidl64 void adjustStreamVolume(int streamType, int direction, int flags, String callingPackage); in adjustStreamVolume() argument
66 void setStreamVolume(int streamType, int index, int flags, String callingPackage); in setStreamVolume() argument
68 boolean isStreamMute(int streamType); in isStreamMute() argument
76 int getStreamVolume(int streamType); in getStreamVolume() argument
78 int getStreamMinVolume(int streamType); in getStreamMinVolume() argument
80 int getStreamMaxVolume(int streamType); in getStreamMaxVolume() argument
82 int getLastAudibleStreamVolume(int streamType); in getLastAudibleStreamVolume() argument
145 void forceVolumeControlStream(int streamType, IBinder cb); in forceVolumeControlStream() argument
168 boolean isStreamAffectedByRingerMode(int streamType); in isStreamAffectedByRingerMode() argument
170 boolean isStreamAffectedByMute(int streamType); in isStreamAffectedByMute() argument
DAudioManagerInternal.java30 public abstract void adjustSuggestedStreamVolumeForUid(int streamType, int direction, in adjustSuggestedStreamVolumeForUid() argument
33 public abstract void adjustStreamVolumeForUid(int streamType, int direction, int flags, in adjustStreamVolumeForUid() argument
36 public abstract void setStreamVolumeForUid(int streamType, int direction, int flags, in setStreamVolumeForUid() argument
DAudioManager.java808 public void adjustStreamVolume(int streamType, int direction, int flags) { in adjustStreamVolume() argument
811 service.adjustStreamVolume(streamType, direction, flags, in adjustStreamVolume()
929 public int getStreamMaxVolume(int streamType) { in getStreamMaxVolume() argument
932 return service.getStreamMaxVolume(streamType); in getStreamMaxVolume()
947 public int getStreamMinVolume(int streamType) { in getStreamMinVolume() argument
948 if (!isPublicStreamType(streamType)) { in getStreamMinVolume()
949 throw new IllegalArgumentException("Invalid stream type " + streamType); in getStreamMinVolume()
951 return getStreamMinVolumeInt(streamType); in getStreamMinVolume()
961 public int getStreamMinVolumeInt(int streamType) { in getStreamMinVolumeInt() argument
964 return service.getStreamMinVolume(streamType); in getStreamMinVolumeInt()
[all …]
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
DAudioAttributes.java664 public Builder setLegacyStreamType(int streamType) { in setLegacyStreamType() argument
665 if (streamType == AudioManager.STREAM_ACCESSIBILITY) { in setLegacyStreamType()
669 return setInternalLegacyStreamType(streamType); in setLegacyStreamType()
678 public Builder setInternalLegacyStreamType(int streamType) { in setInternalLegacyStreamType() argument
679 switch(streamType) { in setInternalLegacyStreamType()
715 Log.e(TAG, "Invalid stream type " + streamType + " for AudioAttributes"); in setInternalLegacyStreamType()
717 mUsage = usageForStreamType(streamType); in setInternalLegacyStreamType()
967 private static int usageForStreamType(int streamType) { in usageForStreamType() argument
968 switch(streamType) { in usageForStreamType()
DSoundPool.java149 public SoundPool(int maxStreams, int streamType, int srcQuality) { in SoundPool() argument
151 new AudioAttributes.Builder().setInternalLegacyStreamType(streamType).build()); in SoundPool()
152 PlayerBase.deprecateStreamTypeForPlayback(streamType, "SoundPool", "SoundPool()"); in SoundPool()
DIVolumeController.aidl28 void volumeChanged(int streamType, int flags); in volumeChanged() argument
DRingtone.java105 public void setStreamType(int streamType) { in setStreamType() argument
106 PlayerBase.deprecateStreamTypeForPlayback(streamType, "Ringtone", "setStreamType()"); in setStreamType()
108 .setInternalLegacyStreamType(streamType) in setStreamType()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java1013 for (int streamType = numStreamTypes - 1; streamType >= 0; streamType--) { in onAudioServerDied()
1014 VolumeStreamState streamState = mStreamStates[streamType]; in onAudioServerDied()
1016 streamType, streamState.mIndexMin / 10, streamState.mIndexMax / 10); in onAudioServerDied()
1107 for (int streamType = 0; streamType < numStreamTypes; streamType++) { in checkAllAliasStreamVolumes()
1108 mStreamStates[streamType] in checkAllAliasStreamVolumes()
1109 .setAllIndexes(mStreamStates[mStreamVolumeAlias[streamType]], TAG); in checkAllAliasStreamVolumes()
1111 if (!mStreamStates[streamType].mIsMuted) { in checkAllAliasStreamVolumes()
1112 mStreamStates[streamType].applyAllVolumes(); in checkAllAliasStreamVolumes()
1122 for (int streamType = 0; streamType < numStreamTypes; streamType++) { in checkAllFixedVolumeDevices()
1123 mStreamStates[streamType].checkFixedVolumeDevices(); in checkAllFixedVolumeDevices()
[all …]
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DSessionRoute.cpp91 audio_stream_type_t streamType, in addRoute() argument
96 if (mMapType == MAPTYPE_INPUT && streamType != SessionRoute::STREAM_TYPE_NA) { in addRoute()
113 route = new SessionRoute(session, streamType, source, descriptor, uid); in addRoute()
122 audio_devices_t SessionRouteMap::getActiveDeviceForStream(audio_stream_type_t streamType, in getActiveDeviceForStream() argument
129 if (streamType == route->mStreamType && route->isActiveOrChanged() in getActiveDeviceForStream()
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DSessionRoute.h42 audio_stream_type_t streamType, in SessionRoute() argument
52 mStreamType(streamType), in SessionRoute()
102 audio_devices_t getActiveDeviceForStream(audio_stream_type_t streamType,
109 audio_stream_type_t streamType,
/frameworks/base/core/java/android/preference/
DSeekBarVolumizer.java96 public SeekBarVolumizer(Context context, int streamType, Uri defaultUri, Callback callback) { in SeekBarVolumizer() argument
107 mStreamType = streamType; in SeekBarVolumizer()
436 int streamType = intent.getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_TYPE, -1); in onReceive() local
438 updateVolumeSlider(streamType, streamValue); in onReceive()
447 int streamType = intent.getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_TYPE, -1); in onReceive() local
448 int streamVolume = mAudioManager.getStreamVolume(streamType); in onReceive()
449 updateVolumeSlider(streamType, streamVolume); in onReceive()
465 private void updateVolumeSlider(int streamType, int streamValue) { in updateVolumeSlider() argument
466 final boolean streamMatch = mNotificationOrRing ? isNotificationOrRing(streamType) in updateVolumeSlider()
467 : (streamType == mStreamType); in updateVolumeSlider()
DVolumePreference.java63 public void setStreamType(int streamType) { in setStreamType() argument
64 mStreamType = streamType; in setStreamType()
/frameworks/av/media/libaudioclient/include/media/
DAudioPolicyHelper.h68 void stream_type_to_audio_attributes(audio_stream_type_t streamType, in stream_type_to_audio_attributes() argument
72 switch (streamType) { in stream_type_to_audio_attributes()
115 ALOGE("invalid stream type %d when converting to attributes", streamType); in stream_type_to_audio_attributes()
DAudioTrack.h145 audio_stream_type_t streamType,
227 AudioTrack( audio_stream_type_t streamType,
258 AudioTrack( audio_stream_type_t streamType,
302 status_t set(audio_stream_type_t streamType,
343 audio_stream_type_t streamType() const;
/frameworks/av/include/media/
DAudioPolicyHelper.h68 void stream_type_to_audio_attributes(audio_stream_type_t streamType, in stream_type_to_audio_attributes() argument
72 switch (streamType) { in stream_type_to_audio_attributes()
115 ALOGE("invalid stream type %d when converting to attributes", streamType); in stream_type_to_audio_attributes()
DAudioTrack.h145 audio_stream_type_t streamType,
227 AudioTrack( audio_stream_type_t streamType,
258 AudioTrack( audio_stream_type_t streamType,
302 status_t set(audio_stream_type_t streamType,
343 audio_stream_type_t streamType() const;
/frameworks/av/media/libmedia/include/media/
DJAudioAttributes.h30 audio_stream_type_t streamType) { in createAudioAttributesObj() argument
65 jBuilderObj = env->CallObjectMethod(jBuilderObj, jSetLegacyStreamType, streamType); in createAudioAttributesObj()
/frameworks/support/media/src/main/java/androidx/media/
DAudioAttributesCompat.java630 public Builder setLegacyStreamType(int streamType) { in setLegacyStreamType() argument
631 if (streamType == AudioManagerHidden.STREAM_ACCESSIBILITY) { in setLegacyStreamType()
636 mLegacyStream = streamType; in setLegacyStreamType()
637 mUsage = usageForStreamType(streamType); in setLegacyStreamType()
723 private static int usageForStreamType(int streamType) { in usageForStreamType() argument
724 switch (streamType) { in usageForStreamType()
/frameworks/av/media/libeffects/config/src/
DEffectsConfig.cpp225 const char* streamType = xmlStream.Attribute("type"); in parseStream() local
226 if (streamType == nullptr) { in parseStream()
231 if (!stringToStreamType(streamType, &stream.type)) { in parseStream()
232 ALOGE("Invalid stream type %s: %s", streamType, dump(xmlStream)); in parseStream()
/frameworks/av/media/extractors/mpeg2/
DMPEG2PSExtractor.cpp539 unsigned streamType; in dequeuePES() local
545 streamType = mStreamTypeByESID.valueAt(streamTypeIndex); in dequeuePES()
549 streamType = ATSParser::STREAMTYPE_MPEG2_AUDIO; in dequeuePES()
552 streamType = ATSParser::STREAMTYPE_MPEG2_VIDEO; in dequeuePES()
554 streamType = ATSParser::STREAMTYPE_RESERVED; in dequeuePES()
558 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/libaudioclient/
DAudioTrack.cpp106 audio_stream_type_t streamType, in getMinFrameCount() argument
120 status = AudioSystem::getOutputSamplingRate(&afSampleRate, streamType); in getMinFrameCount()
123 streamType, status); in getMinFrameCount()
127 status = AudioSystem::getOutputFrameCount(&afFrameCount, streamType); in getMinFrameCount()
130 streamType, status); in getMinFrameCount()
134 status = AudioSystem::getOutputLatency(&afLatency, streamType); in getMinFrameCount()
137 streamType, status); in getMinFrameCount()
151 streamType, sampleRate); in getMinFrameCount()
259 audio_stream_type_t streamType, in AudioTrack() argument
283 (void)set(streamType, sampleRate, format, channelMask, in AudioTrack()
[all …]
DAudioSystem.cpp284 status_t AudioSystem::getOutputSamplingRate(uint32_t* samplingRate, audio_stream_type_t streamType) in getOutputSamplingRate() argument
288 if (streamType == AUDIO_STREAM_DEFAULT) { in getOutputSamplingRate()
289 streamType = AUDIO_STREAM_MUSIC; in getOutputSamplingRate()
292 output = getOutput(streamType); in getOutputSamplingRate()
321 status_t AudioSystem::getOutputFrameCount(size_t* frameCount, audio_stream_type_t streamType) in getOutputFrameCount() argument
325 if (streamType == AUDIO_STREAM_DEFAULT) { in getOutputFrameCount()
326 streamType = AUDIO_STREAM_MUSIC; in getOutputFrameCount()
329 output = getOutput(streamType); in getOutputFrameCount()
358 status_t AudioSystem::getOutputLatency(uint32_t* latency, audio_stream_type_t streamType) in getOutputLatency() argument
362 if (streamType == AUDIO_STREAM_DEFAULT) { in getOutputLatency()
[all …]
/frameworks/av/services/audioflinger/
DPlaybackTracks.h27 audio_stream_type_t streamType,
63 audio_stream_type_t streamType() const { in streamType() function
281 audio_stream_type_t streamType,

1234