Home
last modified time | relevance | path

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

1234

/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/
DAudioProductStrategyTest.java52 int streamType = aps.getLegacyStreamTypeForAudioAttributes(aa); in testGetProductStrategies() local
53 if (streamType == AudioSystem.STREAM_DEFAULT) { in testGetProductStrategies()
57 final int volumeGroupFromStream = aps.getVolumeGroupIdForLegacyStreamType(streamType); in testGetProductStrategies()
74 for (final int streamType : PUBLIC_STREAM_TYPES) { in testAudioAttributesFromStreamTypes()
77 streamType); in testAudioAttributesFromStreamTypes()
93 assertEquals("stream " + AudioSystem.streamToString(streamType) + "(" in testAudioAttributesFromStreamTypes()
94 + streamType + ") expected to match attributes " in testAudioAttributesFromStreamTypes()
98 streamType, streamTypeFromAttributes); in testAudioAttributesFromStreamTypes()
105 aps.getAudioAttributesForLegacyStreamType(streamType); in testAudioAttributesFromStreamTypes()
121 assertEquals(streamType, in testAudioAttributesFromStreamTypes()
[all …]
DAudioVolumesTestBase.java117 for (int streamType : PUBLIC_STREAM_TYPES) { in setUp()
118 mOriginalStreamVolumes.put(streamType, mAudioManager.getStreamVolume(streamType)); in setUp()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java648 for (int streamType = numStreamTypes - 1; streamType >= 0; streamType--) { in AudioService()
651 streamType); in AudioService()
654 MAX_STREAM_VOLUME[streamType] = maxVolume; in AudioService()
658 MIN_STREAM_VOLUME[streamType] = minVolume; in AudioService()
996 for (int streamType = numStreamTypes - 1; streamType >= 0; streamType--) { in onAudioServerDied()
997 VolumeStreamState streamState = mStreamStates[streamType]; in onAudioServerDied()
999 streamType, streamState.mIndexMin / 10, streamState.mIndexMax / 10); in onAudioServerDied()
1137 for (int streamType = 0; streamType < numStreamTypes; streamType++) { in checkAllAliasStreamVolumes()
1138 mStreamStates[streamType] in checkAllAliasStreamVolumes()
1139 .setAllIndexes(mStreamStates[mStreamVolumeAlias[streamType]], TAG); in checkAllAliasStreamVolumes()
[all …]
DAudioDeviceBroker.java376 /*package*/ void postSetHearingAidVolumeIndex(int index, int streamType) { in postSetHearingAidVolumeIndex() argument
377 sendIIMsgNoDelay(MSG_II_SET_HEARING_AID_VOLUME, SENDMSG_REPLACE, index, streamType); in postSetHearingAidVolumeIndex()
410 /*package*/ int getVssVolumeForDevice(int streamType, int device) { in getVssVolumeForDevice() argument
411 return mAudioService.getVssVolumeForDevice(streamType, device); in getVssVolumeForDevice()
418 /*package*/ int getDeviceForStream(int streamType) { in getDeviceForStream() argument
419 return mAudioService.getDeviceForStream(streamType); in getDeviceForStream()
422 /*package*/ void postApplyVolumeOnDevice(int streamType, int device, String caller) { in postApplyVolumeOnDevice() argument
423 mAudioService.postApplyVolumeOnDevice(streamType, device, caller); in postApplyVolumeOnDevice()
426 /*package*/ void postSetVolumeIndexOnDevice(int streamType, int vssVolIndex, int device, in postSetVolumeIndexOnDevice() argument
428 mAudioService.postSetVolumeIndexOnDevice(streamType, vssVolIndex, device, caller); in postSetVolumeIndexOnDevice()
/frameworks/base/media/java/android/media/audiopolicy/
DAudioProductStrategy.java91 int streamType) { in getAudioAttributesForStrategyWithLegacyStreamType() argument
94 AudioAttributes aa = productStrategy.getAudioAttributesForLegacyStreamType(streamType); in getAudioAttributesForStrategyWithLegacyStreamType()
116 int streamType = productStrategy.getLegacyStreamTypeForAudioAttributes( in getLegacyStreamTypeForStrategyWithAudioAttributes() local
118 if (streamType == AudioSystem.STREAM_DEFAULT) { in getLegacyStreamTypeForStrategyWithAudioAttributes()
124 return streamType; in getLegacyStreamTypeForStrategyWithAudioAttributes()
194 public @Nullable AudioAttributes getAudioAttributesForLegacyStreamType(int streamType) { in getAudioAttributesForLegacyStreamType() argument
196 if (aag.supportsStreamType(streamType)) { in getAudioAttributesForLegacyStreamType()
241 public int getVolumeGroupIdForLegacyStreamType(int streamType) { in getVolumeGroupIdForLegacyStreamType() argument
243 if (aag.supportsStreamType(streamType)) { in getVolumeGroupIdForLegacyStreamType()
354 AudioAttributesGroup(int volumeGroupId, int streamType, in AudioAttributesGroup() argument
[all …]
/frameworks/base/core/java/android/preference/
DSeekBarVolumizer.java136 public SeekBarVolumizer(Context context, int streamType, Uri defaultUri, Callback callback) { in SeekBarVolumizer() argument
137 this(context, streamType, defaultUri, callback, true /* playSample */); in SeekBarVolumizer()
142 int streamType, in SeekBarVolumizer() argument
156 mStreamType = streamType; in SeekBarVolumizer()
195 private int getVolumeGroupIdForLegacyStreamType(int streamType) { in getVolumeGroupIdForLegacyStreamType() argument
198 int volumeGroupId = productStrategy.getVolumeGroupIdForLegacyStreamType(streamType); in getVolumeGroupIdForLegacyStreamType()
212 private @NonNull AudioAttributes getAudioAttributesForLegacyStreamType(int streamType) { in getAudioAttributesForLegacyStreamType() argument
215 AudioAttributes aa = productStrategy.getAudioAttributesForLegacyStreamType(streamType); in getAudioAttributesForLegacyStreamType()
540 int streamType = intent.getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_TYPE, -1); in onReceive() local
543 updateVolumeSlider(streamType, streamValue); in onReceive()
[all …]
/frameworks/base/media/java/android/media/
DIAudioService.aidl74 void adjustStreamVolume(int streamType, int direction, int flags, String callingPackage); in adjustStreamVolume() argument
77 void setStreamVolume(int streamType, int index, int flags, String callingPackage); in setStreamVolume() argument
79 boolean isStreamMute(int streamType); in isStreamMute() argument
88 int getStreamVolume(int streamType); in getStreamVolume() argument
90 int getStreamMinVolume(int streamType); in getStreamMinVolume() argument
93 int getStreamMaxVolume(int streamType); in getStreamMaxVolume() argument
105 int getLastAudibleStreamVolume(int streamType); in getLastAudibleStreamVolume() argument
174 void forceVolumeControlStream(int streamType, IBinder cb); in forceVolumeControlStream() argument
194 boolean isStreamAffectedByRingerMode(int streamType); in isStreamAffectedByRingerMode() argument
196 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.java842 public void adjustStreamVolume(int streamType, int direction, int flags) { in adjustStreamVolume() argument
845 service.adjustStreamVolume(streamType, direction, flags, in adjustStreamVolume()
966 public int getStreamMaxVolume(int streamType) { in getStreamMaxVolume() argument
969 return service.getStreamMaxVolume(streamType); in getStreamMaxVolume()
984 public int getStreamMinVolume(int streamType) { in getStreamMinVolume() argument
985 if (!isPublicStreamType(streamType)) { in getStreamMinVolume()
986 throw new IllegalArgumentException("Invalid stream type " + streamType); in getStreamMinVolume()
988 return getStreamMinVolumeInt(streamType); in getStreamMinVolume()
998 public int getStreamMinVolumeInt(int streamType) { in getStreamMinVolumeInt() argument
1001 return service.getStreamMinVolume(streamType); in getStreamMinVolumeInt()
[all …]
DToneGenerator.java747 public ToneGenerator(int streamType, int volume) { in ToneGenerator() argument
748 native_setup(streamType, volume); in ToneGenerator()
882 private native final void native_setup(int streamType, int volume); in native_setup() argument
DAudioAttributes.java811 public Builder setLegacyStreamType(int streamType) { in setLegacyStreamType() argument
812 if (streamType == AudioManager.STREAM_ACCESSIBILITY) { in setLegacyStreamType()
816 setInternalLegacyStreamType(streamType); in setLegacyStreamType()
827 public Builder setInternalLegacyStreamType(int streamType) { in setInternalLegacyStreamType() argument
833 streamType); in setInternalLegacyStreamType()
845 switch (streamType) { in setInternalLegacyStreamType()
882 Log.e(TAG, "Invalid stream type " + streamType + " for AudioAttributes"); in setInternalLegacyStreamType()
886 mUsage = usageForStreamType(streamType); in setInternalLegacyStreamType()
1151 private static int usageForStreamType(int streamType) { in usageForStreamType() argument
1152 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()
/frameworks/av/services/audiopolicy/engine/common/src/
DProductStrategy.cpp82 audio_stream_type_t streamType = iter->mStream; in getStreamTypeForAttributes() local
83 ALOGW_IF(streamType == AUDIO_STREAM_DEFAULT, in getStreamTypeForAttributes()
87 return streamType != AUDIO_STREAM_DEFAULT ? streamType : AUDIO_STREAM_MUSIC; in getStreamTypeForAttributes()
90 audio_attributes_t ProductStrategy::getAttributesForStreamType(audio_stream_type_t streamType) const in getAttributesForStreamType()
93 [&streamType](const auto &supportedAttr) { in getAttributesForStreamType()
94 return supportedAttr.mStream == streamType; }); in getAttributesForStreamType()
116 bool ProductStrategy::supportStreamType(const audio_stream_type_t &streamType) const in supportStreamType()
119 [&streamType](const auto &supportedAttr) { in supportStreamType()
120 return supportedAttr.mStream == streamType; }) != end(mAttributesVector); in supportStreamType()
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
DSystemAudioInitiationActionFromAvrTest.java106 public int getStreamVolume(int streamType) { in SetUp()
111 public boolean isStreamMute(int streamType) { in SetUp()
116 public int getStreamMaxVolume(int streamType) { in SetUp()
122 int streamType, int direction, int flags) {} in SetUp()
DHdmiCecLocalDeviceAudioSystemTest.java87 public int getStreamVolume(int streamType) { in setUp()
88 switch (streamType) { in setUp()
97 public boolean isStreamMute(int streamType) { in setUp()
98 switch (streamType) { in setUp()
107 public int getStreamMaxVolume(int streamType) { in setUp()
108 switch (streamType) { in setUp()
118 int streamType, int direction, int flags) { in setUp()
119 switch (streamType) { in setUp()
/frameworks/av/services/audiopolicy/engine/config/src/
DEngineConfig.cpp61 static constexpr const char *streamType = "streamType"; member
313 audio_stream_type_t streamType = AUDIO_STREAM_DEFAULT; in deserialize() local
314 std::string streamTypeXml = getXmlAttribute(child, Attributes::streamType); in deserialize()
316 ALOGV("%s: No attribute %s found", __FUNCTION__, Attributes::streamType); in deserialize()
318 ALOGV("%s: %s = %s", __FUNCTION__, Attributes::streamType, streamTypeXml.c_str()); in deserialize()
319 if (not StreamTypeConverter::fromString(streamTypeXml.c_str(), streamType)) { in deserialize()
327 attributesGroup.push_back({name, streamType, volumeGroup, attributesVect}); in deserialize()
594 audio_stream_type_t streamType; in deserializeLegacyVolumeCollection() local
595 if (!StreamTypeConverter::fromString(volumeMapIter.first, streamType)) { in deserializeLegacyVolumeCollection()
599 int indexMin = streamType >= AUDIO_STREAM_PUBLIC_CNT ? 0 : -1; in deserializeLegacyVolumeCollection()
[all …]
/frameworks/av/media/libstagefright/include/media/stagefright/
DUtils.h55 bool isStreaming, audio_stream_type_t streamType, audio_offload_info_t *info);
59 bool isStreaming, audio_stream_type_t streamType);
/frameworks/av/media/libeffects/config/src/
DEffectsConfig.cpp236 const char* streamType = xmlStream.Attribute("type"); in parseStream() local
237 if (streamType == nullptr) { in parseStream()
242 if (!stringToStreamType(streamType, &stream.type)) { in parseStream()
243 ALOGE("Invalid <stream|device> type %s: %s", streamType, dump(xmlStream)); in parseStream()
/frameworks/av/services/audiopolicy/common/include/
Dpolicy.h190 audio_stream_type_t streamType) in hasStream() argument
192 return std::find(begin(streams), end(streams), streamType) != end(streams); in hasStream()
/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()
Dandroid_media_AudioProductStrategies.cpp92 int streamType = attr.getStreamType(); in convertAudioProductStrategiesFromNative() local
94 [groupId, streamType](const auto &iter) { in convertAudioProductStrategiesFromNative()
96 return frontAttr.getGroupId() == groupId && frontAttr.getStreamType() == streamType; in convertAudioProductStrategiesFromNative()
/frameworks/av/media/libaudioclient/
DAudioTrack.cpp109 audio_stream_type_t streamType, in getMinFrameCount() argument
123 status = AudioSystem::getOutputSamplingRate(&afSampleRate, streamType); in getMinFrameCount()
126 __func__, streamType, status); in getMinFrameCount()
130 status = AudioSystem::getOutputFrameCount(&afFrameCount, streamType); in getMinFrameCount()
133 __func__, streamType, status); in getMinFrameCount()
137 status = AudioSystem::getOutputLatency(&afLatency, streamType); in getMinFrameCount()
140 __func__, streamType, status); in getMinFrameCount()
154 __func__, streamType, sampleRate); in getMinFrameCount()
186 mAnalyticsItem->setCString(MM_PREFIX "streamtype", toString(track->streamType()).c_str()); in gather()
229 audio_stream_type_t streamType, in AudioTrack() argument
[all …]
/frameworks/av/media/libaudioclient/include/media/
DAudioTrack.h152 audio_stream_type_t streamType,
241 AudioTrack( audio_stream_type_t streamType,
272 AudioTrack( audio_stream_type_t streamType,
318 status_t set(audio_stream_type_t streamType,
359 audio_stream_type_t streamType() const;
/frameworks/av/media/extractors/mpeg2/
DMPEG2PSExtractor.cpp546 unsigned streamType; in dequeuePES() local
552 streamType = mStreamTypeByESID.valueAt(streamTypeIndex); in dequeuePES()
556 streamType = ATSParser::STREAMTYPE_MPEG2_AUDIO; in dequeuePES()
559 streamType = ATSParser::STREAMTYPE_MPEG2_VIDEO; in dequeuePES()
561 streamType = ATSParser::STREAMTYPE_RESERVED; in dequeuePES()
565 stream_id, new Track(this, stream_id, streamType)); in dequeuePES()
/frameworks/av/services/audioflinger/
DPlaybackTracks.h29 uid_t uid, const audio_attributes_t& attr, int id, audio_stream_type_t streamType);
63 audio_stream_type_t streamType,
96 audio_stream_type_t streamType() const { in streamType() function
382 audio_stream_type_t streamType,

1234