/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/services/core/java/com/android/server/audio/ |
D | AudioService.java | 648 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 …]
|
D | AudioDeviceBroker.java | 376 /*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/ |
D | AudioProductStrategy.java | 91 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/ |
D | SeekBarVolumizer.java | 136 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/ |
D | IAudioService.aidl | 74 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
|
D | AudioManagerInternal.java | 30 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
|
D | AudioManager.java | 842 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 …]
|
D | ToneGenerator.java | 747 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
|
D | AudioAttributes.java | 811 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()
|
D | SoundPool.java | 149 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/ |
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/base/services/tests/servicestests/src/com/android/server/hdmi/ |
D | SystemAudioInitiationActionFromAvrTest.java | 106 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()
|
D | HdmiCecLocalDeviceAudioSystemTest.java | 87 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/ |
D | EngineConfig.cpp | 61 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/ |
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/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/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/base/core/jni/ |
D | android_media_ToneGenerator.cpp | 89 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()
|
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/ |
D | AudioTrack.cpp | 109 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/ |
D | AudioTrack.h | 152 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/ |
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()
|
/frameworks/av/services/audioflinger/ |
D | PlaybackTracks.h | 29 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,
|