/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | DefaultAudioManagerWrapper.java | 45 public void adjustStreamVolume(int streamType, int direction, in adjustStreamVolume() argument 47 mAudioManager.adjustStreamVolume(streamType, direction, flags); in adjustStreamVolume() 51 public void setStreamVolume(int streamType, int index, in setStreamVolume() argument 53 mAudioManager.setStreamVolume(streamType, index, flags); in setStreamVolume() 57 public int getStreamVolume(int streamType) { in getStreamVolume() argument 58 return mAudioManager.getStreamVolume(streamType); in getStreamVolume() 62 public int getStreamMinVolume(int streamType) { in getStreamMinVolume() argument 63 return mAudioManager.getStreamMinVolume(streamType); in getStreamMinVolume() 67 public int getStreamMaxVolume(int streamType) { in getStreamMaxVolume() argument 68 return mAudioManager.getStreamMaxVolume(streamType); in getStreamMaxVolume() [all …]
|
D | AudioManagerWrapper.java | 39 void adjustStreamVolume(int streamType, int direction, in adjustStreamVolume() argument 45 void setStreamVolume(int streamType, int index, @AudioManager.PublicVolumeFlags int flags); in setStreamVolume() argument 50 int getStreamVolume(int streamType); in getStreamVolume() argument 55 int getStreamMinVolume(int streamType); in getStreamMinVolume() argument 60 int getStreamMaxVolume(int streamType); in getStreamMaxVolume() argument 65 boolean isStreamMute(int streamType); in isStreamMute() argument 70 void setStreamMute(int streamType, boolean state); in setStreamMute() argument
|
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/ |
D | FakeAudioFramework.java | 79 public void adjustStreamVolume(int streamType, int direction, in adjustStreamVolume() argument 83 mStreamMuteStatuses.put(streamType, true); in adjustStreamVolume() 86 mStreamMuteStatuses.put(streamType, false); in adjustStreamVolume() 94 public void setStreamVolume(int streamType, int index, in setStreamVolume() argument 96 mStreamVolumes.put(streamType, index); in setStreamVolume() 100 public int getStreamVolume(int streamType) { in getStreamVolume() argument 101 return mStreamVolumes.getOrDefault(streamType, DEFAULT_VOLUME); in getStreamVolume() 105 public int getStreamMinVolume(int streamType) { in getStreamMinVolume() argument 110 public int getStreamMaxVolume(int streamType) { in getStreamMaxVolume() argument 111 return mStreamMaxVolumes.getOrDefault(streamType, DEFAULT_MAX_VOLUME); in getStreamMaxVolume() [all …]
|
/frameworks/layoutlib/bridge/src/android/media/ |
D | AudioManager.java | 47 public void adjustStreamVolume(int streamType, int direction, int flags) { } in adjustStreamVolume() argument 59 public int getStreamMaxVolume(int streamType) { in getStreamMaxVolume() argument 63 public int getStreamMinVolume(int streamType) { in getStreamMinVolume() argument 67 public int getStreamMinVolumeInt(int streamType) { in getStreamMinVolumeInt() argument 71 public int getStreamVolume(int streamType) { in getStreamVolume() argument 75 public float getStreamVolumeDb(int streamType, int index, int deviceType) { in getStreamVolumeDb() argument 79 public int getLastAudibleStreamVolume(int streamType) { in getLastAudibleStreamVolume() argument 89 public void setStreamVolume(int streamType, int index, int flags) { } in setStreamVolume() argument 111 public void setStreamSolo(int streamType, boolean state) { } in setStreamSolo() argument 113 public void setStreamMute(int streamType, boolean state) { } in setStreamMute() argument [all …]
|
/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/ |
D | AudioProductStrategyTest.java | 74 int streamType = aps.getLegacyStreamTypeForAudioAttributes(aa); in testGetProductStrategies() local 75 if (streamType == AudioSystem.STREAM_DEFAULT) { in testGetProductStrategies() 79 final int volumeGroupFromStream = aps.getVolumeGroupIdForLegacyStreamType(streamType); in testGetProductStrategies() 97 for (final int streamType : AudioManager.getPublicStreamTypes()) { in testAudioAttributesFromStreamTypes() 100 streamType); in testAudioAttributesFromStreamTypes() 116 assertEquals("stream " + AudioSystem.streamToString(streamType) + "(" in testAudioAttributesFromStreamTypes() 117 + streamType + ") expected to match attributes " in testAudioAttributesFromStreamTypes() 121 streamType, streamTypeFromAttributes); in testAudioAttributesFromStreamTypes() 128 aps.getAudioAttributesForLegacyStreamType(streamType); in testAudioAttributesFromStreamTypes() 144 assertEquals(streamType, in testAudioAttributesFromStreamTypes() [all …]
|
D | AudioVolumesTestRule.java | 113 for (int streamType : AudioManager.getPublicStreamTypes()) { in setUp() 114 mOriginalStreamVolumes.put(streamType, mAudioManager.getStreamVolume(streamType)); in setUp()
|
/frameworks/base/media/java/android/media/audiopolicy/ |
D | AudioProductStrategy.java | 132 int streamType) { in getAudioAttributesForStrategyWithLegacyStreamType() argument 135 AudioAttributes aa = productStrategy.getAudioAttributesForLegacyStreamType(streamType); in getAudioAttributesForStrategyWithLegacyStreamType() 157 int streamType = productStrategy.getLegacyStreamTypeForAudioAttributes( in getLegacyStreamTypeForStrategyWithAudioAttributes() local 159 if (streamType == AudioSystem.STREAM_DEFAULT) { in getLegacyStreamTypeForStrategyWithAudioAttributes() 165 if (streamType < AudioSystem.getNumStreamTypes()) { in getLegacyStreamTypeForStrategyWithAudioAttributes() 166 return streamType; in getLegacyStreamTypeForStrategyWithAudioAttributes() 277 public @Nullable AudioAttributes getAudioAttributesForLegacyStreamType(int streamType) { in getAudioAttributesForLegacyStreamType() argument 279 if (aag.supportsStreamType(streamType)) { in getAudioAttributesForLegacyStreamType() 327 public int getVolumeGroupIdForLegacyStreamType(int streamType) { in getVolumeGroupIdForLegacyStreamType() argument 329 if (aag.supportsStreamType(streamType)) { in getVolumeGroupIdForLegacyStreamType() [all …]
|
/frameworks/base/core/java/android/preference/ |
D | SeekBarVolumizer.java | 161 public SeekBarVolumizer(Context context, int streamType, Uri defaultUri, Callback callback) { in SeekBarVolumizer() argument 162 this(context, streamType, defaultUri, callback, true /* playSample */); in SeekBarVolumizer() 168 int streamType, in SeekBarVolumizer() argument 183 mStreamType = streamType; in SeekBarVolumizer() 228 private int getVolumeGroupIdForLegacyStreamType(int streamType) { in getVolumeGroupIdForLegacyStreamType() argument 231 int volumeGroupId = productStrategy.getVolumeGroupIdForLegacyStreamType(streamType); in getVolumeGroupIdForLegacyStreamType() 245 private @NonNull AudioAttributes getAudioAttributesForLegacyStreamType(int streamType) { in getAudioAttributesForLegacyStreamType() argument 248 AudioAttributes aa = productStrategy.getAudioAttributesForLegacyStreamType(streamType); in getAudioAttributesForLegacyStreamType() 630 int streamType = intent.getIntExtra(AudioManager.EXTRA_VOLUME_STREAM_TYPE, -1); in onReceive() local 633 updateVolumeSlider(streamType, streamValue); in onReceive() [all …]
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | AudioService.java | 822 private VolumeInfo getMatchingVolumeInfoForStream(int streamType) { in getMatchingVolumeInfoForStream() argument 825 && volumeInfo.getStreamType() == streamType; in getMatchingVolumeInfoForStream() 828 .anyMatch(s -> s == streamType); in getMatchingVolumeInfoForStream() 1208 for (int streamType = numStreamTypes - 1; streamType >= 0; streamType--) { in AudioService() 1211 streamType); in AudioService() 1214 MAX_STREAM_VOLUME[streamType] = maxVolume; in AudioService() 1218 MIN_STREAM_VOLUME[streamType] = minVolume; in AudioService() 1432 for (int streamType = numStreamTypes - 1; streamType >= 0; streamType--) { in initVolumeStreamStates() 1433 VolumeStreamState streamState = mStreamStates[streamType]; in initVolumeStreamStates() 1434 int groupId = getVolumeGroupForStreamType(streamType); in initVolumeStreamStates() [all …]
|
D | SoundDoseHelper.java | 656 /*package*/ boolean checkSafeMediaVolume(int streamType, int index, int device) { in checkSafeMediaVolume() argument 659 result = checkSafeMediaVolume_l(streamType, index, device); in checkSafeMediaVolume() 665 private boolean checkSafeMediaVolume_l(int streamType, int index, int device) { in checkSafeMediaVolume_l() argument 667 && (AudioService.mStreamVolumeAlias[streamType] == AudioSystem.STREAM_MUSIC) in checkSafeMediaVolume_l() 672 /*package*/ boolean willDisplayWarningAfterCheckVolume(int streamType, int index, int device, in willDisplayWarningAfterCheckVolume() argument 675 if (checkSafeMediaVolume_l(streamType, index, device)) { in willDisplayWarningAfterCheckVolume() 678 streamType, index, flags, device); in willDisplayWarningAfterCheckVolume() 779 /*package*/ boolean raiseVolumeDisplaySafeMediaVolume(int streamType, int index, int device, in raiseVolumeDisplaySafeMediaVolume() argument 781 if (!checkSafeMediaVolume(streamType, index, device)) { in raiseVolumeDisplaySafeMediaVolume() 884 private void updateDoseAttenuation(int newIndex, int device, int streamType, in updateDoseAttenuation() argument [all …]
|
/frameworks/av/services/audiopolicy/engine/common/src/ |
D | ProductStrategy.cpp | 78 audio_attributes_t ProductStrategy::getAttributesForStreamType(audio_stream_type_t streamType) const in getAttributesForStreamType() 81 [&streamType](const auto &supportedAttr) { in getAttributesForStreamType() 82 return supportedAttr.getStreamType() == streamType; }); in getAttributesForStreamType() 104 bool ProductStrategy::supportStreamType(const audio_stream_type_t &streamType) const in supportStreamType() 107 [&streamType](const auto &supportedAttr) { in supportStreamType() 108 return supportedAttr.getStreamType() == streamType; }) != end(mAttributesVector); in supportStreamType() 267 audio_stream_type_t streamType = getVolumeGroupAttributesForAttributes( in getStreamTypeForAttributes() local 269 return streamType != AUDIO_STREAM_DEFAULT ? streamType : AUDIO_STREAM_MUSIC; in getStreamTypeForAttributes()
|
/frameworks/base/media/java/android/media/ |
D | IAudioService.aidl | 105 void adjustStreamVolume(int streamType, int direction, int flags, String callingPackage); in adjustStreamVolume() argument 107 void adjustStreamVolumeWithAttribution(int streamType, int direction, int flags, in adjustStreamVolumeWithAttribution() argument 111 void setStreamVolume(int streamType, int index, int flags, String callingPackage); in setStreamVolume() argument 113 void setStreamVolumeWithAttribution(int streamType, int index, int flags, in setStreamVolumeWithAttribution() argument 127 boolean isStreamMute(int streamType); in isStreamMute() argument 138 int getStreamVolume(int streamType); in getStreamVolume() argument 140 int getStreamMinVolume(int streamType); in getStreamMinVolume() argument 143 int getStreamMaxVolume(int streamType); in getStreamMaxVolume() argument 169 int getLastAudibleStreamVolume(int streamType); in getLastAudibleStreamVolume() argument 268 void forceVolumeControlStream(int streamType, IBinder cb); in forceVolumeControlStream() argument [all …]
|
D | VolumeInfo.java | 60 AudioVolumeGroup volGroup, int streamType) { in VolumeInfo() argument 68 mStreamType = streamType; in VolumeInfo() 205 public Builder(@AudioManager.PublicStreamTypes int streamType) { in Builder() argument 206 if (!AudioManager.isPublicStreamType(streamType)) { in Builder() 207 throw new IllegalArgumentException("Not a valid public stream type " + streamType); in Builder() 210 mStreamType = streamType; in Builder()
|
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 | 1044 public void adjustStreamVolume(int streamType, int direction, @PublicVolumeFlags int flags) { in adjustStreamVolume() argument 1047 service.adjustStreamVolumeWithAttribution(streamType, direction, flags, in adjustStreamVolume() 1210 public int getStreamMaxVolume(int streamType) { in getStreamMaxVolume() argument 1213 return service.getStreamMaxVolume(streamType); in getStreamMaxVolume() 1228 public int getStreamMinVolume(int streamType) { in getStreamMinVolume() argument 1229 if (!isPublicStreamType(streamType)) { in getStreamMinVolume() 1230 throw new IllegalArgumentException("Invalid stream type " + streamType); in getStreamMinVolume() 1232 return getStreamMinVolumeInt(streamType); in getStreamMinVolume() 1243 public int getStreamMinVolumeInt(int streamType) { in getStreamMinVolumeInt() argument 1246 return service.getStreamMinVolume(streamType); in getStreamMinVolumeInt() [all …]
|
D | IVolumeController.aidl | 28 void volumeChanged(int streamType, int flags); in volumeChanged() argument
|
/frameworks/av/media/libaudioclient/ |
D | VolumeGroupAttributes.cpp | 52 aidl.streamType = VALUE_OR_RETURN( in legacy2aidl_VolumeGroupAttributes_AudioAttributesEx() 62 aidl.streamType)), in aidl2legacy_AudioAttributesEx_VolumeGroupAttributes()
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/volume/data/repository/ |
D | AudioRepositoryTest.kt | 85 val streamType = it.arguments[0] as Int in setup() constant 87 triggerEvent(AudioManagerEvent.StreamVolumeChanged(AudioStream(streamType))) in setup() 91 val streamType = it.arguments[0] as Int in setup() constant 92 isMuteByStream[streamType] = it.arguments[1] == AudioManager.ADJUST_MUTE in setup() 93 triggerEvent(AudioManagerEvent.StreamMuteChanged(AudioStream(streamType))) in setup()
|
/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/libaudioclient/include/media/ |
D | AudioTrack.h | 237 audio_stream_type_t streamType, 326 AudioTrack( audio_stream_type_t streamType, 355 AudioTrack( audio_stream_type_t streamType, 400 status_t set(audio_stream_type_t streamType, 421 audio_stream_type_t streamType; member 444 (void)set(s.streamType, s.sampleRate, s.format, s.channelMask, s.frameCount, in set() 454 status_t set(audio_stream_type_t streamType, 495 audio_stream_type_t streamType() const;
|
/frameworks/av/services/audiopolicy/engine/config/src/ |
D | EngineConfig.cpp | 80 aidl2legacy_AudioStreamType_audio_stream_type_t(aidl.streamType)); in aidl2legacy_AudioHalAttributeGroup_AttributesGroup() 166 static constexpr const char *streamType = "streamType"; member 427 audio_stream_type_t streamType = AUDIO_STREAM_DEFAULT; in deserialize() local 428 std::string streamTypeXml = getXmlAttribute(child, Attributes::streamType); in deserialize() 430 ALOGV("%s: No attribute %s found", __FUNCTION__, Attributes::streamType); in deserialize() 432 ALOGV("%s: %s = %s", __FUNCTION__, Attributes::streamType, streamTypeXml.c_str()); in deserialize() 433 if (not StreamTypeConverter::fromString(streamTypeXml.c_str(), streamType)) { in deserialize() 441 attributesGroup.push_back({streamType, volumeGroup, attributesVect}); in deserialize() 718 audio_stream_type_t streamType; in deserializeLegacyVolumeCollection() local 719 if (!StreamTypeConverter::fromString(volumeMapIter.first, streamType)) { in deserializeLegacyVolumeCollection() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/ |
D | VolumeHelperTest.java | 251 for (int streamType : usedStreamTypes) { in prepareAudioServiceState() 252 final int streamVolume = (mAm.getStreamMinVolume(streamType) + mAm.getStreamMaxVolume( in prepareAudioServiceState() 253 streamType)) / 2; in prepareAudioServiceState() 255 mAudioService.setStreamVolume(streamType, streamVolume, /*flags=*/0, in prepareAudioServiceState() 263 private AudioVolumeGroup getStreamTypeVolumeGroup(int streamType) { in getStreamTypeVolumeGroup() argument 269 if (stream == streamType) { in getStreamTypeVolumeGroup() 740 private int circularNoMinMaxIncrementVolume(int streamType) throws Exception { in circularNoMinMaxIncrementVolume() argument 741 final int streamMinVolume = mAm.getStreamMinVolume(streamType) + 1; in circularNoMinMaxIncrementVolume() 742 final int streamMaxVolume = mAm.getStreamMaxVolume(streamType) - 1; in circularNoMinMaxIncrementVolume() 744 int streamVolume = mAudioService.getStreamVolume(streamType); in circularNoMinMaxIncrementVolume()
|
/frameworks/av/services/audiopolicy/common/include/ |
D | policy.h | 198 audio_stream_type_t streamType) in hasStream() argument 200 return std::find(begin(streams), end(streams), streamType) != end(streams); in hasStream()
|
/frameworks/av/media/libeffects/config/src/ |
D | EffectsConfig.cpp | 245 const char* streamType = xmlStream.Attribute("type"); in parseStream() local 246 if (streamType == nullptr) { in parseStream() 251 if (!stringToStreamType(streamType, &stream.type)) { in parseStream() 252 ALOGE("Invalid <stream|device> type %s: %s", streamType, dump(xmlStream)); in parseStream()
|
/frameworks/av/media/libaudioclient/aidl/android/media/ |
D | AudioAttributesEx.aidl | 28 AudioStreamType streamType;
|