/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationChannelExtractorTest.java | 172 assertThat(r.getAudioAttributes().getUsage()).isEqualTo(USAGE_NOTIFICATION_RINGTONE); in testAudioAttributes_callStyleCanUseCallUsage() 192 assertThat(r.getAudioAttributes().getUsage()).isEqualTo(USAGE_NOTIFICATION); in testAudioAttributes_nonCallStyleCannotUseCallUsage() 195 assertThat(channel.getAudioAttributes().getUsage()).isEqualTo(USAGE_NOTIFICATION_RINGTONE); in testAudioAttributes_nonCallStyleCannotUseCallUsage() 213 assertThat(r.getAudioAttributes().getUsage()).isEqualTo(USAGE_ALARM); in testAudioAttributes_alarmCategoryCanUseAlarmUsage() 233 assertThat(r.getAudioAttributes().getUsage()).isEqualTo(USAGE_NOTIFICATION); in testAudioAttributes_nonAlarmCategoryCannotUseAlarmUsage() 236 assertThat(channel.getAudioAttributes().getUsage()).isEqualTo(USAGE_ALARM); in testAudioAttributes_nonAlarmCategoryCannotUseAlarmUsage() 254 assertThat(r.getAudioAttributes().getUsage()).isEqualTo(USAGE_NOTIFICATION); in testAudioAttributes_noMediaUsage() 257 assertThat(channel.getAudioAttributes().getUsage()).isEqualTo(USAGE_MEDIA); in testAudioAttributes_noMediaUsage() 275 assertThat(r.getAudioAttributes().getUsage()).isEqualTo(USAGE_NOTIFICATION); in testAudioAttributes_noUnknownUsage() 278 assertThat(channel.getAudioAttributes().getUsage()).isEqualTo(USAGE_UNKNOWN); in testAudioAttributes_noUnknownUsage()
|
/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/ |
D | AudioVolumesTestRule.java | 55 if (avg.getAudioAttributes().isEmpty()) { in storeAllVolumes() 61 for (final AudioAttributes aa : avg.getAudioAttributes()) { in storeAllVolumes() 85 assertTrue(!avg.getAudioAttributes().isEmpty()); in restoreAllVolumes() 87 for (final AudioAttributes aa : avg.getAudioAttributes()) { in restoreAllVolumes()
|
D | AudioManagerTest.java | 79 AudioAttributes attributes = audioProductStrategy.getAudioAttributes(); in testGetAndValidateProductStrategies() 106 for (final AudioAttributes aa : audioVolumeGroup.getAudioAttributes()) { in testGetAndValidateProductStrategies() 144 List<AudioAttributes> avgAttributes = audioVolumeGroup.getAudioAttributes(); in testGetAndValidateVolumeGroups() 300 List<AudioAttributes> avgAttributes = audioVolumeGroup.getAudioAttributes(); in testVolumeGroupCallback()
|
D | AudioVolumeGroupChangeHandlerTest.java | 121 List<AudioAttributes> avgAttributes = audioVolumeGroup.getAudioAttributes(); in testCallbackReceived() 176 List<AudioAttributes> avgAttributes = audioVolumeGroup.getAudioAttributes(); in testMultipleCallbackReceived()
|
D | AudioVolumeGroupTest.java | 91 List<AudioAttributes> avgAttributes = avg.getAudioAttributes(); in testGetVolumeGroups()
|
/frameworks/base/core/tests/vibrator/src/android/os/ |
D | ExternalVibrationTest.java | 49 assertThat(restored.getAudioAttributes()).isEqualTo(original.getAudioAttributes()); in testSerialization()
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | FadeOutManager.java | 142 if (requester.getAudioAttributes().getContentType() == AudioAttributes.CONTENT_TYPE_SPEECH) in canCauseFadeOut() 165 return mFadeConfigurations.isFadeable(apc.getAudioAttributes(), apc.getClientUid(), in canBeFadedOut() 201 mFadeConfigurations.getFadeOutVolumeShaperConfig(apc.getAudioAttributes()); in fadeOutUid() 232 .getFadeInVolumeShaperConfig(apc.getAudioAttributes()); in unfadeOutUid() 250 mFadeConfigurations.getFadeOutVolumeShaperConfig(apc.getAudioAttributes()); in checkFade()
|
D | PlaybackActivityMonitor.java | 320 if ((apc.getAudioAttributes().getAllFlags() & FLAGS_FOR_SILENCE_OVERRIDE) in checkVolumeForPrivilegedAlarm() 322 apc.getAudioAttributes().getUsage() == AudioAttributes.USAGE_ALARM && in checkVolumeForPrivilegedAlarm() 606 AudioAttributes attr = apc.getAudioAttributes(); in updateAllowedCapturePolicy() 611 new AudioAttributes.Builder(apc.getAudioAttributes()) in updateAllowedCapturePolicy() 647 if (apc.getAudioAttributes().getUsage() == AudioAttributes.USAGE_MEDIA in hasActiveMediaPlaybackOnSubmixWithAddress() 833 if (!forceDuck && (apc.getAudioAttributes().getContentType() == in duckPlayers() 864 final int reqUsage = requester.getAudioAttributes().getUsage(); in reqCausesStrongDuck() 897 final int playerUsage = apc.getAudioAttributes().getUsage(); in mutePlayersForCall() 986 + " attr:" + apc.getAudioAttributes()); in fadeOutPlayers() 1402 mPlayerAttr = apc.getAudioAttributes(); in NewPlayerEvent() [all …]
|
D | FocusRequester.java | 196 @NonNull AudioAttributes getAudioAttributes() { in getAudioAttributes() method in FocusRequester 500 this.getAudioAttributes())); in frameworkHandleFocusLoss() 557 this.getAudioAttributes())); in dispatchFocusChangeWithFadeLocked()
|
/frameworks/base/core/java/android/app/ |
D | NotificationChannel.java | 850 public AudioAttributes getAudioAttributes() { in getAudioAttributes() method in NotificationChannel 1316 if (getAudioAttributes() != null) { in writeXml() 1317 out.attributeInt(null, ATT_USAGE, getAudioAttributes().getUsage()); in writeXml() 1318 out.attributeInt(null, ATT_CONTENT_TYPE, getAudioAttributes().getContentType()); in writeXml() 1319 out.attributeInt(null, ATT_FLAGS, getAudioAttributes().getFlags()); in writeXml() 1404 if (getAudioAttributes() != null) { in toJson() 1405 record.put(ATT_USAGE, Integer.toString(getAudioAttributes().getUsage())); in toJson() 1407 Integer.toString(getAudioAttributes().getContentType())); in toJson() 1408 record.put(ATT_FLAGS, Integer.toString(getAudioAttributes().getFlags())); in toJson() 1547 && Objects.equals(getAudioAttributes(), that.getAudioAttributes()) in equals() [all …]
|
/frameworks/base/media/java/android/media/ |
D | AudioPlaybackCaptureConfiguration.java | 96 criterion -> criterion.getAudioAttributes().getUsage()); in getMatchingUsages() 109 criterion -> criterion.getAudioAttributes().getUsage()); in getExcludeUsages()
|
/frameworks/base/core/jni/ |
D | android_media_AudioVolumeGroups.cpp | 88 numAttributes = group.getAudioAttributes().size(); in convertAudioVolumeGroupsFromNative() 95 auto attributes = group.getAudioAttributes()[j]; in convertAudioVolumeGroupsFromNative()
|
/frameworks/base/media/java/android/media/audiopolicy/ |
D | AudioProductStrategy.java | 265 public @NonNull AudioAttributes getAudioAttributes() { in getAudioAttributes() method in AudioProductStrategy 268 : mAudioAttributesGroups[0].getAudioAttributes(); in getAudioAttributes() 280 return aag.getAudioAttributes(); in getAudioAttributesForLegacyStreamType() 493 public @NonNull AudioAttributes getAudioAttributes() { in getAudioAttributes() method in AudioProductStrategy.AudioAttributesGroup
|
/frameworks/native/libs/vibrator/include/vibrator/ |
D | ExternalVibration.h | 46 audio_attributes_t getAudioAttributes() const { return mAttrs; } in getAudioAttributes() function
|
/frameworks/av/media/libaudioclient/include/media/ |
D | AudioVolumeGroup.h | 41 AttributesVector getAudioAttributes() const { return mAudioAttributes; } in getAudioAttributes() function
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationAttentionHelper.java | 417 AudioAttributes.toLegacyStreamType(record.getAudioAttributes())) == 0) { in buzzBeepBlinkLocked() 634 if (playingRecord.getAudioAttributes().getUsage() == USAGE_NOTIFICATION_RINGTONE in isLoopingRingtoneNotification() 646 shouldPlay = mAudioManager.shouldNotificationSoundPlay(record.getAudioAttributes()); in playSound() 654 AudioAttributes.toLegacyStreamType(record.getAudioAttributes())) != 0); in playSound() 668 + record.getAudioAttributes()); in playSound() 671 record.getAudioAttributes(), getSoundVolume(record)); in playSound() 737 record.getAudioAttributes()); in playVibration() 777 mVibratorHelper.vibrate(effect, record.getAudioAttributes(), reason); in vibrate() 944 if (record != null && record.getAudioAttributes() != null) { in disableNotificationEffects() 946 if (record.getAudioAttributes().getUsage() in disableNotificationEffects() [all …]
|
D | NotificationChannelExtractor.java | 81 AudioAttributes attributes = record.getChannel().getAudioAttributes(); in process()
|
/frameworks/av/media/libaudioclient/ |
D | AudioVolumeGroup.cpp | 53 legacy.getAudioAttributes(), in legacy2aidl_AudioVolumeGroup()
|
/frameworks/av/services/audioflinger/afutils/ |
D | Vibrator.cpp | 48 if (externalVibration->getAudioAttributes().flags & AUDIO_FLAG_MUTE_HAPTIC) { in onExternalVibrationStart()
|
/frameworks/av/services/audiopolicy/engine/common/include/ |
D | ProductStrategy.h | 56 AttributesVector getAudioAttributes() const;
|
/frameworks/native/libs/vibrator/fuzzer/ |
D | vibrator_fuzzer.cpp | 114 extVibration->getAudioAttributes(); in LLVMFuzzerTestOneInput()
|
/frameworks/av/services/audiopolicy/engine/common/src/ |
D | ProductStrategy.cpp | 53 AttributesVector ProductStrategy::getAudioAttributes() const in getAudioAttributes() function in android::ProductStrategy 201 return at(strategy)->getAudioAttributes()[0]; in getAttributesForProductStrategy()
|
/frameworks/base/media/java/android/media/musicrecognition/ |
D | RecognitionRequest.java | 55 public AudioAttributes getAudioAttributes() { in getAudioAttributes() method in RecognitionRequest
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/volume/ |
D | Util.java | 83 info.getCurrentVolume(), info.getMaxVolume(), type, vc, info.getAudioAttributes()); in playbackInfoToString()
|
/frameworks/base/core/java/android/os/ |
D | ExternalVibration.java | 105 public AudioAttributes getAudioAttributes() { in getAudioAttributes() method in ExternalVibration
|