Home
last modified time | relevance | path

Searched refs:audioAttributes (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/media/java/android/media/
DFadeManagerConfiguration.java350 public long getFadeOutDurationForAudioAttributes(@NonNull AudioAttributes audioAttributes) { in getFadeOutDurationForAudioAttributes() argument
353 mAttrToFadeWrapperMap.get(audioAttributes), /* isFadeIn= */ false)); in getFadeOutDurationForAudioAttributes()
366 public long getFadeInDurationForAudioAttributes(@NonNull AudioAttributes audioAttributes) { in getFadeInDurationForAudioAttributes() argument
369 mAttrToFadeWrapperMap.get(audioAttributes), /* isFadeIn= */ true)); in getFadeInDurationForAudioAttributes()
384 @NonNull AudioAttributes audioAttributes) { in getFadeOutVolumeShaperConfigForAudioAttributes()
385 Objects.requireNonNull(audioAttributes, "Audio attributes cannot be null"); in getFadeOutVolumeShaperConfigForAudioAttributes()
387 return getVolumeShaperConfigFromWrapper(mAttrToFadeWrapperMap.get(audioAttributes), in getFadeOutVolumeShaperConfigForAudioAttributes()
403 @NonNull AudioAttributes audioAttributes) { in getFadeInVolumeShaperConfigForAudioAttributes()
404 Objects.requireNonNull(audioAttributes, "Audio attributes cannot be null"); in getFadeInVolumeShaperConfigForAudioAttributes()
406 return getVolumeShaperConfigFromWrapper(mAttrToFadeWrapperMap.get(audioAttributes), in getFadeInVolumeShaperConfigForAudioAttributes()
[all …]
DRingtoneManager.java808 AudioAttributes audioAttributes) { in getRingtone() argument
813 ringtone.setAudioAttributesField(audioAttributes); in getRingtone()
DMediaPlayer.java949 AudioAttributes audioAttributes, int audioSessionId) { in create() argument
953 final AudioAttributes aa = audioAttributes != null ? audioAttributes : in create()
1011 AudioAttributes audioAttributes, int audioSessionId) { in create() argument
1018 final AudioAttributes aa = audioAttributes != null ? audioAttributes : in create()
DAudioSystem.java1968 AudioAttributes audioAttributes); in startAudioSource() argument
/frameworks/base/media/java/android/media/audiopolicy/
DAudioVolumeGroup.java100 @NonNull AudioAttributes[] audioAttributes, in AudioVolumeGroup() argument
103 Preconditions.checkNotNull(audioAttributes, "audioAttributes must not be null"); in AudioVolumeGroup()
107 mAudioAttributes = audioAttributes; in AudioVolumeGroup()
183 AudioAttributes[] audioAttributes = new AudioAttributes[nbAttributes];
185 audioAttributes[index] = AudioAttributes.CREATOR.createFromParcel(in);
192 return new AudioVolumeGroup(name, id, audioAttributes, streamTypes);
DAudioProductStrategy.java152 @NonNull AudioAttributes audioAttributes) { in getLegacyStreamTypeForStrategyWithAudioAttributes()
153 Objects.requireNonNull(audioAttributes, "AudioAttributes must not be null"); in getLegacyStreamTypeForStrategyWithAudioAttributes()
156 if (productStrategy.supportsAudioAttributes(audioAttributes)) { in getLegacyStreamTypeForStrategyWithAudioAttributes()
158 audioAttributes); in getLegacyStreamTypeForStrategyWithAudioAttributes()
160 Log.w(TAG, "Attributes " + audioAttributes + " supported by strategy " in getLegacyStreamTypeForStrategyWithAudioAttributes()
461 @NonNull AudioAttributes[] audioAttributes) { in AudioAttributesGroup() argument
464 mAudioAttributes = audioAttributes; in AudioAttributesGroup()
/frameworks/av/media/libaudioclient/
DAudioVolumeGroup.cpp51 aidl.audioAttributes = VALUE_OR_RETURN( in legacy2aidl_AudioVolumeGroup()
67 aidl.audioAttributes, in aidl2legacy_AudioVolumeGroup()
DAudioProductStrategy.cpp43 aidl.audioAttributes = VALUE_OR_RETURN( in legacy2aidl_AudioProductStrategy()
57 aidl.audioAttributes, in aidl2legacy_AudioProductStrategy()
/frameworks/base/media/jni/soundpool/
Dandroid_media_SoundPool.cpp517 audio_attributes_t audioAttributes = AUDIO_ATTRIBUTES_INITIALIZER; in android_media_SoundPool_native_setup() local
523 audio_utils_strlcpy(audioAttributes.tags, tags); in android_media_SoundPool_native_setup()
525 audioAttributes.usage = in android_media_SoundPool_native_setup()
527 audioAttributes.content_type = in android_media_SoundPool_native_setup()
529 audioAttributes.flags = in android_media_SoundPool_native_setup()
533 maxChannels, audioAttributes, opPackageNameStr.c_str()); in android_media_SoundPool_native_setup()
/frameworks/av/media/libaudioclient/aidl/android/media/
DAudioProductStrategy.aidl28 AudioAttributesEx[] audioAttributes;
DAudioVolumeGroup.aidl29 AudioAttributes[] audioAttributes;
/frameworks/base/media/java/android/media/musicrecognition/
DRecognitionRequest.java97 public Builder setAudioAttributes(@NonNull AudioAttributes audioAttributes) { in setAudioAttributes() argument
98 mAudioAttributes = audioAttributes; in setAudioAttributes()
/frameworks/base/core/java/android/speech/tts/
DTextToSpeechService.java730 AudioAttributes audioAttributes) { in AudioOutputParams() argument
734 mAudioAttributes = audioAttributes; in AudioOutputParams()
743 AudioAttributes audioAttributes = in createFromParamsBundle() local
746 if (audioAttributes == null) { in createFromParamsBundle()
749 audioAttributes = (new AudioAttributes.Builder()) in createFromParamsBundle()
767 audioAttributes); in createFromParamsBundle()
DTextToSpeech.java1522 public int setAudioAttributes(AudioAttributes audioAttributes) {
1523 if (audioAttributes != null) {
1526 audioAttributes);
/frameworks/base/core/tests/vibrator/src/android/os/
DVibratorTest.java227 AudioAttributes audioAttributes = new AudioAttributes.Builder().setUsage( in vibrate_withAudioAttributes_createsVibrationAttributesWithSameUsage() local
230 mVibratorSpy.vibrate(effect, audioAttributes); in vibrate_withAudioAttributes_createsVibrationAttributesWithSameUsage()
/frameworks/base/core/java/android/app/
DNotificationChannel.java608 public void setSound(Uri sound, AudioAttributes audioAttributes) { in setSound() argument
610 this.mAudioAttributes = audioAttributes; in setSound()
1125 final AudioAttributes audioAttributes = safeAudioAttributes(parser); in populateFromXml() local
1126 final int usage = audioAttributes.getUsage(); in populateFromXml()
1128 audioAttributes); in populateFromXml()
DNotification.java545 public AudioAttributes audioAttributes = AUDIO_ATTRIBUTES_DEFAULT; field in Notification
2727 audioAttributes = AudioAttributes.CREATOR.createFromParcel(parcel); in readFromParcelImpl()
2836 if (this.audioAttributes != null) { in cloneInto()
2837 that.audioAttributes = new AudioAttributes.Builder(this.audioAttributes).build(); in cloneInto()
3415 if (audioAttributes != null) { in writeToParcelImpl()
3417 audioAttributes.writeToParcel(parcel, 0); in writeToParcelImpl()
5126 mN.audioAttributes = AUDIO_ATTRIBUTES_DEFAULT; in setSound()
5153 public Builder setSound(Uri sound, AudioAttributes audioAttributes) { in setSound() argument
5155 mN.audioAttributes = audioAttributes; in setSound()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationRecord.java364 if (n.audioAttributes != null) { in calculateAttributes()
366 attributes = n.audioAttributes; in calculateAttributes()
544 pw.println(prefix + "n.audioAttributes=" + notification.audioAttributes); in dump()
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DVibratorManagerServiceTest.java772 AudioAttributes audioAttributes = new AudioAttributes.Builder() in vibrate_withAudioAttributes_usesOriginalAudioUsageInAppOpsManager() local
775 new VibrationAttributes.Builder(audioAttributes).build(); in vibrate_withAudioAttributes_usesOriginalAudioUsageInAppOpsManager()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java10255 private void validateAudioAttributesUsage(@NonNull AudioAttributes audioAttributes) { in validateAudioAttributesUsage() argument
10256 @AudioAttributes.AttributeUsage int usage = audioAttributes.getSystemUsage(); in validateAudioAttributesUsage()
10259 && (audioAttributes.getAllFlags() & AudioAttributes.FLAG_CALL_REDIRECTION) != 0 in validateAudioAttributesUsage()
10272 private boolean isValidAudioAttributesUsage(@NonNull AudioAttributes audioAttributes) { in isValidAudioAttributesUsage() argument
10273 @AudioAttributes.AttributeUsage int usage = audioAttributes.getSystemUsage(); in isValidAudioAttributesUsage()
10277 && (audioAttributes.getAllFlags() in isValidAudioAttributesUsage()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationManagerServiceTest.java14450 if (notif.audioAttributes != null) {
14452 notif.audioAttributes.writeToParcel(parcel, 0);
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt4624 field public android.media.AudioAttributes audioAttributes;
/frameworks/base/core/api/
Dcurrent.txt6512 field @Deprecated public android.media.AudioAttributes audioAttributes;