/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/ |
D | AudioProductStrategyTest.java | 52 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 …]
|
D | AudioVolumesTestBase.java | 117 for (int streamType : PUBLIC_STREAM_TYPES) { in setUp() 118 mOriginalStreamVolumes.put(streamType, mAudioManager.getStreamVolume(streamType)); in setUp()
|
/frameworks/base/media/java/android/media/audiopolicy/ |
D | AudioProductStrategy.java | 123 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/ |
D | AudioService.java | 886 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/ |
D | SeekBarVolumizer.java | 147 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/ |
D | IAudioService.aidl | 84 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 …]
|
D | ToneGenerator.java | 750 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
|
D | AudioManager.java | 922 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 …]
|
D | AudioAttributes.java | 965 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()
|
D | IVolumeController.aidl | 28 void volumeChanged(int streamType, int flags); in volumeChanged() argument
|
/frameworks/av/services/audiopolicy/engine/common/src/ |
D | ProductStrategy.cpp | 82 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/ |
D | AudioAttributes.cpp | 50 aidl.streamType = VALUE_OR_RETURN( in legacy2aidl_AudioAttributes_AudioAttributesEx() 60 aidl.streamType)), in aidl2legacy_AudioAttributesEx_AudioAttributes()
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | Utils.h | 55 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/ |
D | SystemAudioInitiationActionFromAvrTest.java | 108 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/ |
D | EngineConfig.cpp | 61 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/ |
D | TrackMetrics.h | 72 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/ |
D | policy.h | 190 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/ |
D | AudioTypes.cpp | 342 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/ |
D | EffectsConfig.cpp | 236 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/ |
D | AudioTrack.h | 162 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/ |
D | android_media_ToneGenerator.cpp | 89 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()
|
D | android_media_AudioProductStrategies.cpp | 92 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/ |
D | AudioAttributesEx.aidl | 28 AudioStreamType streamType;
|
D | CreateTrackResponse.aidl | 38 AudioStreamType streamType;
|
/frameworks/av/media/extractors/mpeg2/ |
D | MPEG2PSExtractor.cpp | 546 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()
|