Home
last modified time | relevance | path

Searched refs:streamType (Results 1 – 25 of 98) 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/media/java/android/media/audiopolicy/
DAudioProductStrategy.java123 int streamType) { in getAudioAttributesForStrategyWithLegacyStreamType() argument
126 AudioAttributes aa = productStrategy.getAudioAttributesForLegacyStreamType(streamType); in getAudioAttributesForStrategyWithLegacyStreamType()
148 int streamType = productStrategy.getLegacyStreamTypeForAudioAttributes( in getLegacyStreamTypeForStrategyWithAudioAttributes() local
150 if (streamType == AudioSystem.STREAM_DEFAULT) { in getLegacyStreamTypeForStrategyWithAudioAttributes()
156 if (streamType < AudioSystem.getNumStreamTypes()) { in getLegacyStreamTypeForStrategyWithAudioAttributes()
157 return streamType; in getLegacyStreamTypeForStrategyWithAudioAttributes()
228 public @Nullable AudioAttributes getAudioAttributesForLegacyStreamType(int streamType) { in getAudioAttributesForLegacyStreamType() argument
230 if (aag.supportsStreamType(streamType)) { in getAudioAttributesForLegacyStreamType()
276 public int getVolumeGroupIdForLegacyStreamType(int streamType) { in getVolumeGroupIdForLegacyStreamType() argument
278 if (aag.supportsStreamType(streamType)) { in getVolumeGroupIdForLegacyStreamType()
[all …]
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java886 for (int streamType = numStreamTypes - 1; streamType >= 0; streamType--) { in AudioService()
889 streamType); in AudioService()
892 MAX_STREAM_VOLUME[streamType] = maxVolume; in AudioService()
896 MIN_STREAM_VOLUME[streamType] = minVolume; in AudioService()
1425 for (int streamType = numStreamTypes - 1; streamType >= 0; streamType--) { in onReinitVolumes()
1426 VolumeStreamState streamState = mStreamStates[streamType]; in onReinitVolumes()
1428 streamType, streamState.mIndexMin / 10, streamState.mIndexMax / 10); in onReinitVolumes()
1431 Log.e(TAG, "Failed to initStreamVolume (" + res + ") for stream " + streamType); in onReinitVolumes()
1468 for (int streamType : basicStreams) { in checkVolumeRangeInitialization()
1470 .setInternalLegacyStreamType(streamType).build(); in checkVolumeRangeInitialization()
[all …]
/frameworks/base/core/java/android/preference/
DSeekBarVolumizer.java147 public SeekBarVolumizer(Context context, int streamType, Uri defaultUri, Callback callback) { in SeekBarVolumizer() argument
148 this(context, streamType, defaultUri, callback, true /* playSample */); in SeekBarVolumizer()
153 int streamType, in SeekBarVolumizer() argument
167 mStreamType = streamType; in SeekBarVolumizer()
206 private int getVolumeGroupIdForLegacyStreamType(int streamType) { in getVolumeGroupIdForLegacyStreamType() argument
209 int volumeGroupId = productStrategy.getVolumeGroupIdForLegacyStreamType(streamType); in getVolumeGroupIdForLegacyStreamType()
223 private @NonNull AudioAttributes getAudioAttributesForLegacyStreamType(int streamType) { in getAudioAttributesForLegacyStreamType() argument
226 AudioAttributes aa = productStrategy.getAudioAttributesForLegacyStreamType(streamType); in getAudioAttributesForLegacyStreamType()
579 int streamType = intent.getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_TYPE, -1); in onReceive() local
582 updateVolumeSlider(streamType, streamValue); in onReceive()
[all …]
/frameworks/base/media/java/android/media/
DIAudioService.aidl84 void adjustStreamVolume(int streamType, int direction, int flags, String callingPackage); in adjustStreamVolume() argument
87 void setStreamVolume(int streamType, int index, int flags, String callingPackage); in setStreamVolume() argument
92 boolean isStreamMute(int streamType); in isStreamMute() argument
101 int getStreamVolume(int streamType); in getStreamVolume() argument
103 int getStreamMinVolume(int streamType); in getStreamMinVolume() argument
106 int getStreamMaxVolume(int streamType); in getStreamMaxVolume() argument
118 int getLastAudibleStreamVolume(int streamType); in getLastAudibleStreamVolume() argument
203 void forceVolumeControlStream(int streamType, IBinder cb); in forceVolumeControlStream() argument
223 boolean isStreamAffectedByRingerMode(int streamType); in isStreamAffectedByRingerMode() argument
225 boolean isStreamAffectedByMute(int streamType); in isStreamAffectedByMute() argument
[all …]
DToneGenerator.java750 public ToneGenerator(int streamType, int volume) { in ToneGenerator() argument
751 native_setup(streamType, volume, getCurrentOpPackageName()); in ToneGenerator()
886 int streamType, int volume, @NonNull String opPackageName); in native_setup() argument
DAudioManager.java922 public void adjustStreamVolume(int streamType, int direction, int flags) { in adjustStreamVolume() argument
925 service.adjustStreamVolume(streamType, direction, flags, in adjustStreamVolume()
1046 public int getStreamMaxVolume(int streamType) { in getStreamMaxVolume() argument
1049 return service.getStreamMaxVolume(streamType); in getStreamMaxVolume()
1064 public int getStreamMinVolume(int streamType) { in getStreamMinVolume() argument
1065 if (!isPublicStreamType(streamType)) { in getStreamMinVolume()
1066 throw new IllegalArgumentException("Invalid stream type " + streamType); in getStreamMinVolume()
1068 return getStreamMinVolumeInt(streamType); in getStreamMinVolume()
1078 public int getStreamMinVolumeInt(int streamType) { in getStreamMinVolumeInt() argument
1081 return service.getStreamMinVolume(streamType); in getStreamMinVolumeInt()
[all …]
DAudioAttributes.java965 public Builder setLegacyStreamType(int streamType) { in setLegacyStreamType() argument
966 if (streamType == AudioManager.STREAM_ACCESSIBILITY) { in setLegacyStreamType()
970 setInternalLegacyStreamType(streamType); in setLegacyStreamType()
981 public Builder setInternalLegacyStreamType(int streamType) { in setInternalLegacyStreamType() argument
987 streamType); in setInternalLegacyStreamType()
999 switch (streamType) { in setInternalLegacyStreamType()
1036 Log.e(TAG, "Invalid stream type " + streamType + " for AudioAttributes"); in setInternalLegacyStreamType()
1040 mUsage = usageForStreamType(streamType); in setInternalLegacyStreamType()
1428 private static int usageForStreamType(int streamType) { in usageForStreamType() argument
1429 switch(streamType) { in usageForStreamType()
DIVolumeController.aidl28 void volumeChanged(int streamType, int flags); in volumeChanged() argument
/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/av/media/libaudioclient/
DAudioAttributes.cpp50 aidl.streamType = VALUE_OR_RETURN( in legacy2aidl_AudioAttributes_AudioAttributesEx()
60 aidl.streamType)), in aidl2legacy_AudioAttributesEx_AudioAttributes()
/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/base/services/tests/servicestests/src/com/android/server/hdmi/
DSystemAudioInitiationActionFromAvrTest.java108 public int getStreamVolume(int streamType) { in SetUp()
113 public boolean isStreamMute(int streamType) { in SetUp()
118 public int getStreamMaxVolume(int streamType) { in SetUp()
124 int streamType, int direction, int flags) {} in SetUp()
/frameworks/av/services/audiopolicy/engine/config/src/
DEngineConfig.cpp61 static constexpr const char *streamType = "streamType"; member
327 audio_stream_type_t streamType = AUDIO_STREAM_DEFAULT; in deserialize() local
328 std::string streamTypeXml = getXmlAttribute(child, Attributes::streamType); in deserialize()
330 ALOGV("%s: No attribute %s found", __FUNCTION__, Attributes::streamType); in deserialize()
332 ALOGV("%s: %s = %s", __FUNCTION__, Attributes::streamType, streamTypeXml.c_str()); in deserialize()
333 if (not StreamTypeConverter::fromString(streamTypeXml.c_str(), streamType)) { in deserialize()
341 attributesGroup.push_back({name, streamType, volumeGroup, attributesVect}); in deserialize()
609 audio_stream_type_t streamType; in deserializeLegacyVolumeCollection() local
610 if (!StreamTypeConverter::fromString(volumeMapIter.first, streamType)) { in deserializeLegacyVolumeCollection()
614 int indexMin = streamType >= AUDIO_STREAM_PUBLIC_CNT ? 0 : -1; in deserializeLegacyVolumeCollection()
[all …]
/frameworks/av/services/audioflinger/
DTrackMetrics.h72 audio_stream_type_t streamType = AUDIO_STREAM_DEFAULT) const {
84 if (streamType != AUDIO_STREAM_DEFAULT) {
85 item.set(AMEDIAMETRICS_PROP_STREAMTYPE, toString(streamType).c_str());
/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/av/services/mediametrics/
DAudioTypes.cpp342 int32_t lookup<STREAM_TYPE>(const std::string &streamType) in lookup() argument
345 if (!TypeConverter<StreamTraits>::fromString(streamType, value)) { in lookup()
352 std::string lookup<STREAM_TYPE>(const std::string &streamType) in lookup() argument
355 if (!TypeConverter<StreamTraits>::fromString(streamType, value)) { in lookup()
358 return streamType.c_str() + sizeof("AUDIO_STREAM"); in lookup()
/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/media/libaudioclient/include/media/
DAudioTrack.h162 audio_stream_type_t streamType,
253 AudioTrack( audio_stream_type_t streamType,
284 AudioTrack( audio_stream_type_t streamType,
330 status_t set(audio_stream_type_t streamType,
351 status_t set(audio_stream_type_t streamType,
392 audio_stream_type_t streamType() const;
/frameworks/base/core/jni/
Dandroid_media_ToneGenerator.cpp89 static void android_media_ToneGenerator_native_setup(JNIEnv *env, jobject thiz, jint streamType, in android_media_ToneGenerator_native_setup() argument
93 new ToneGenerator((audio_stream_type_t)streamType, AudioSystem::linearToLog(volume), 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/aidl/android/media/
DAudioAttributesEx.aidl28 AudioStreamType streamType;
DCreateTrackResponse.aidl38 AudioStreamType streamType;
/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()

1234