/aosp14/frameworks/base/services/core/java/com/android/server/hdmi/ |
H A D | DefaultAudioManagerWrapper.java | 51 public void setStreamVolume(int streamType, int index, in setStreamVolume() argument 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() 72 public boolean isStreamMute(int streamType) { in isStreamMute() argument 73 return mAudioManager.isStreamMute(streamType); in isStreamMute() 77 public void setStreamMute(int streamType, boolean state) { in setStreamMute() argument [all …]
|
H A 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
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/ |
H A D | FakeAudioFramework.java | 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 105 public int getStreamMinVolume(int streamType) { in getStreamMinVolume() argument 110 public int getStreamMaxVolume(int streamType) { in getStreamMaxVolume() argument 115 public boolean isStreamMute(int streamType) { in isStreamMute() argument 120 public void setStreamMute(int streamType, boolean state) { in setStreamMute() argument 121 mStreamMuteStatuses.put(streamType, state); in setStreamMute() [all …]
|
/aosp14/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/ |
H A 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 …]
|
H A D | AudioVolumesTestRule.java | 113 for (int streamType : AudioManager.getPublicStreamTypes()) { in setUp() 114 mOriginalStreamVolumes.put(streamType, mAudioManager.getStreamVolume(streamType)); in setUp()
|
/aosp14/frameworks/base/media/java/android/media/audiopolicy/ |
H A D | AudioProductStrategy.java | 124 int streamType) { in getAudioAttributesForStrategyWithLegacyStreamType() argument 149 if (streamType == AudioSystem.STREAM_DEFAULT) { in getLegacyStreamTypeForStrategyWithAudioAttributes() 155 if (streamType < AudioSystem.getNumStreamTypes()) { in getLegacyStreamTypeForStrategyWithAudioAttributes() 156 return streamType; in getLegacyStreamTypeForStrategyWithAudioAttributes() 269 if (aag.supportsStreamType(streamType)) { in getAudioAttributesForLegacyStreamType() 319 if (aag.supportsStreamType(streamType)) { in getVolumeGroupIdForLegacyStreamType() 450 AudioAttributesGroup(int volumeGroupId, int streamType, in AudioAttributesGroup() argument 453 mLegacyStreamType = streamType; in AudioAttributesGroup() 503 public boolean supportsStreamType(int streamType) { in supportsStreamType() argument 504 return mLegacyStreamType == streamType; in supportsStreamType() [all …]
|
H A D | AudioVolumeGroup.java | 162 for (int streamType : mLegacyStreamTypes) { in writeToParcel() 163 dest.writeInt(streamType); in writeToParcel()
|
/aosp14/frameworks/base/core/java/android/preference/ |
H A D | SeekBarVolumizer.java | 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 632 updateVolumeSlider(streamType, streamValue); in onReceive() 649 int streamVolume = mAudioManager.getStreamVolume(streamType); in onReceive() 650 updateVolumeSlider(streamType, streamVolume); in onReceive() 657 int streamVolume = mAudioManager.getStreamVolume(streamType); in onReceive() 659 updateVolumeSlider(streamType, streamVolume); in onReceive() 678 private void updateVolumeSlider(int streamType, int streamValue) { in updateVolumeSlider() argument [all …]
|
H A D | VolumePreference.java | 73 public void setStreamType(int streamType) { in setStreamType() argument 74 mStreamType = streamType; in setStreamType()
|
/aosp14/frameworks/base/services/core/java/com/android/server/audio/ |
H A D | AudioService.java | 1073 for (int streamType = numStreamTypes - 1; streamType >= 0; streamType--) { in AudioService() 1272 for (int streamType = numStreamTypes - 1; streamType >= 0; streamType--) { in initVolumeStreamStates() 1845 for (int streamType = numStreamTypes - 1; streamType >= 0; streamType--) { in onReinitVolumes() 2004 for (int streamType = 0; streamType < numStreamTypes; streamType++) { in checkAllAliasStreamVolumes() 2082 for (int streamType = 0; streamType < numStreamTypes; streamType++) { in onUpdateVolumeStatesForAudioDevice() 2134 for (int streamType = 0; streamType < numStreamTypes; streamType++) { in checkAllFixedVolumeDevices() 4762 streamType = mStreamVolumeAlias[streamType]; in sendVolumeUpdate() 5489 for (int streamType = numStreamTypes - 1; streamType >= 0; streamType--) { in muteRingerModeStreams() 6227 for (int streamType = 0; streamType < numStreamTypes; streamType++) { in readAudioSettings() 9078 for (int streamType = numStreamTypes - 1; streamType >= 0; streamType--) { in setDeviceVolume() [all …]
|
H A D | SoundDoseHelper.java | 614 /*package*/ boolean checkSafeMediaVolume(int streamType, int index, int device) { in checkSafeMediaVolume() argument 617 result = checkSafeMediaVolume_l(streamType, index, device); in checkSafeMediaVolume() 623 private boolean checkSafeMediaVolume_l(int streamType, int index, int device) { in checkSafeMediaVolume_l() argument 625 && (AudioService.mStreamVolumeAlias[streamType] == AudioSystem.STREAM_MUSIC) in checkSafeMediaVolume_l() 633 if (checkSafeMediaVolume_l(streamType, index, device)) { in willDisplayWarningAfterCheckVolume() 636 streamType, index, flags, device); in willDisplayWarningAfterCheckVolume() 739 if (!checkSafeMediaVolume(streamType, index, device)) { in raiseVolumeDisplaySafeMediaVolume() 838 private void updateDoseAttenuation(int newIndex, int device, int streamType, in updateDoseAttenuation() argument 858 if (AudioService.mStreamVolumeAlias[streamType] == AudioSystem.STREAM_MUSIC in updateDoseAttenuation() 1256 StreamVolumeCommand(int streamType, int index, int flags, int device) { in StreamVolumeCommand() argument [all …]
|
H A D | AudioDeviceBroker.java | 793 BleVolumeInfo(int index, int maxIndex, int streamType) { in BleVolumeInfo() argument 796 mStreamType = streamType; in BleVolumeInfo() 1193 /*package*/ void postSetHearingAidVolumeIndex(int index, int streamType) { in postSetHearingAidVolumeIndex() argument 1198 BleVolumeInfo info = new BleVolumeInfo(index, maxIndex, streamType); in postSetLeAudioVolumeIndex() 1343 /*package*/ int getVssVolumeForDevice(int streamType, int device) { in getVssVolumeForDevice() argument 1344 return mAudioService.getVssVolumeForDevice(streamType, device); in getVssVolumeForDevice() 1347 /*package*/ int getMaxVssVolumeForStream(int streamType) { in getMaxVssVolumeForStream() argument 1348 return mAudioService.getMaxVssVolumeForStream(streamType); in getMaxVssVolumeForStream() 1351 /*package*/ int getDeviceForStream(int streamType) { in getDeviceForStream() argument 1352 return mAudioService.getDeviceForStream(streamType); in getDeviceForStream() [all …]
|
H A D | AudioServiceEvents.java | 180 DeviceVolumeEvent(int streamType, int index, @NonNull AudioDeviceAttributes device, in DeviceVolumeEvent() argument 182 mStream = streamType; in DeviceVolumeEvent() 575 StreamMuteEvent(int streamType, boolean muted, String source) { in StreamMuteEvent() argument 576 mStreamType = streamType; in StreamMuteEvent() 601 StreamUnmuteErrorEvent(int streamType, int ringerZenMutedStreams) { in StreamUnmuteErrorEvent() argument 602 mStreamType = streamType; in StreamUnmuteErrorEvent()
|
H A D | AudioDeviceInventory.java | 530 int streamType) { in onSetBtActiveDevice() argument 554 AudioSystem.streamToString(streamType)) in onSetBtActiveDevice() 598 streamType, "onSetBtActiveDevice"); in onSetBtActiveDevice() 2028 String address, String name, int streamType, String eventSource) { 2029 final int hearingAidVolIndex = mDeviceBroker.getVssVolumeForDevice(streamType, 2031 mDeviceBroker.postSetHearingAidVolumeIndex(hearingAidVolIndex, streamType); 2041 mDeviceBroker.postApplyVolumeOnDevice(streamType, 2051 AudioSystem.streamToString(streamType)) 2158 if (streamType == AudioSystem.STREAM_DEFAULT) { 2164 ? mDeviceBroker.getVssVolumeForDevice(streamType, device) [all …]
|
/aosp14/frameworks/base/media/java/android/media/ |
H A D | IAudioService.aidl | 107 void setStreamVolumeWithAttribution(int streamType, int index, int flags, in setStreamVolumeWithAttribution() argument 121 boolean isStreamMute(int streamType); in isStreamMute() argument 132 int getStreamVolume(int streamType); in getStreamVolume() argument 134 int getStreamMinVolume(int streamType); in getStreamMinVolume() argument 137 int getStreamMaxVolume(int streamType); in getStreamMaxVolume() argument 163 int getLastAudibleStreamVolume(int streamType); in getLastAudibleStreamVolume() argument 261 void forceVolumeControlStream(int streamType, IBinder cb); in forceVolumeControlStream() argument 271 int getStreamTypeAlias(int streamType); in getStreamTypeAlias() argument 296 boolean isStreamAffectedByRingerMode(int streamType); in isStreamAffectedByRingerMode() argument 298 boolean isStreamAffectedByMute(int streamType); in isStreamAffectedByMute() argument [all …]
|
H A 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()
|
H A 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
|
H A D | AudioManager.java | 1189 public int getStreamMaxVolume(int streamType) { in getStreamMaxVolume() argument 1207 public int getStreamMinVolume(int streamType) { in getStreamMinVolume() argument 1208 if (!isPublicStreamType(streamType)) { in getStreamMinVolume() 1211 return getStreamMinVolumeInt(streamType); in getStreamMinVolume() 1239 public int getStreamVolume(int streamType) { in getStreamVolume() argument 1280 if (!isPublicStreamType(streamType)) { in getStreamVolumeDb() 1283 if (index > getStreamMaxVolume(streamType) || index < getStreamMinVolume(streamType)) { in getStreamVolumeDb() 1305 switch (streamType) { in isPublicStreamType() 1762 public boolean isStreamMute(int streamType) { in isStreamMute() argument 6091 switch (streamType) { in getDevicesForStream() [all …]
|
H A D | AudioAttributes.java | 1145 public Builder setLegacyStreamType(int streamType) { in setLegacyStreamType() argument 1146 if (streamType == AudioManager.STREAM_ACCESSIBILITY) { in setLegacyStreamType() 1150 setInternalLegacyStreamType(streamType); in setLegacyStreamType() 1161 public Builder setInternalLegacyStreamType(int streamType) { in setInternalLegacyStreamType() argument 1167 streamType); in setInternalLegacyStreamType() 1181 switch (streamType) { in setInternalLegacyStreamType() 1221 Log.e(TAG, "Invalid stream type " + streamType + " for AudioAttributes"); in setInternalLegacyStreamType() 1225 mUsage = usageForStreamType(streamType); in setInternalLegacyStreamType() 1633 private static int usageForStreamType(int streamType) { in usageForStreamType() argument 1634 switch(streamType) { in usageForStreamType()
|
H A D | Ringtone.java | 116 public void setStreamType(int streamType) { in setStreamType() argument 117 PlayerBase.deprecateStreamTypeForPlayback(streamType, "Ringtone", "setStreamType()"); in setStreamType() 119 .setInternalLegacyStreamType(streamType) in setStreamType() 603 int streamType = AudioAttributes.toLegacyStreamType(mAudioAttributes); in playFallbackRingtone() local 604 if (mAudioManager.getStreamVolume(streamType) == 0) { in playFallbackRingtone()
|
H A D | IVolumeController.aidl | 28 void volumeChanged(int streamType, int flags); in volumeChanged() argument
|
H A D | SoundPool.java | 151 public SoundPool(int maxStreams, int streamType, int srcQuality) { in SoundPool() argument 153 new AudioAttributes.Builder().setInternalLegacyStreamType(streamType).build(), in SoundPool() 155 PlayerBase.deprecateStreamTypeForPlayback(streamType, "SoundPool", "SoundPool()"); in SoundPool()
|
/aosp14/frameworks/base/core/jni/ |
H A 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()
|
H A D | android_media_ToneGenerator.cpp | 93 static void android_media_ToneGenerator_native_setup(JNIEnv *env, jobject thiz, jint streamType, in android_media_ToneGenerator_native_setup() argument 97 sp<ToneGenerator> lpToneGen = sp<ToneGenerator>::make((audio_stream_type_t)streamType, in android_media_ToneGenerator_native_setup()
|
/aosp14/frameworks/base/media/java/android/media/metrics/ |
H A D | PlaybackMetrics.java | 179 int streamType, in PlaybackMetrics() argument 196 this.mStreamType = streamType; in PlaybackMetrics() 447 int streamType = in.readInt(); in PlaybackMetrics() local 467 this.mStreamType = streamType; in PlaybackMetrics()
|