Home
last modified time | relevance | path

Searched refs:getAudioAttributes (Results 1 – 25 of 63) sorted by relevance

123

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationChannelExtractorTest.java172 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/
DAudioVolumesTestRule.java55 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()
DAudioManagerTest.java79 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()
DAudioVolumeGroupChangeHandlerTest.java121 List<AudioAttributes> avgAttributes = audioVolumeGroup.getAudioAttributes(); in testCallbackReceived()
176 List<AudioAttributes> avgAttributes = audioVolumeGroup.getAudioAttributes(); in testMultipleCallbackReceived()
DAudioVolumeGroupTest.java91 List<AudioAttributes> avgAttributes = avg.getAudioAttributes(); in testGetVolumeGroups()
/frameworks/base/core/tests/vibrator/src/android/os/
DExternalVibrationTest.java49 assertThat(restored.getAudioAttributes()).isEqualTo(original.getAudioAttributes()); in testSerialization()
/frameworks/base/services/core/java/com/android/server/audio/
DFadeOutManager.java142 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()
DPlaybackActivityMonitor.java320 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 …]
DFocusRequester.java196 @NonNull AudioAttributes getAudioAttributes() { in getAudioAttributes() method in FocusRequester
500 this.getAudioAttributes())); in frameworkHandleFocusLoss()
557 this.getAudioAttributes())); in dispatchFocusChangeWithFadeLocked()
/frameworks/base/core/java/android/app/
DNotificationChannel.java850 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/
DAudioPlaybackCaptureConfiguration.java96 criterion -> criterion.getAudioAttributes().getUsage()); in getMatchingUsages()
109 criterion -> criterion.getAudioAttributes().getUsage()); in getExcludeUsages()
/frameworks/base/core/jni/
Dandroid_media_AudioVolumeGroups.cpp88 numAttributes = group.getAudioAttributes().size(); in convertAudioVolumeGroupsFromNative()
95 auto attributes = group.getAudioAttributes()[j]; in convertAudioVolumeGroupsFromNative()
/frameworks/base/media/java/android/media/audiopolicy/
DAudioProductStrategy.java265 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/
DExternalVibration.h46 audio_attributes_t getAudioAttributes() const { return mAttrs; } in getAudioAttributes() function
/frameworks/av/media/libaudioclient/include/media/
DAudioVolumeGroup.h41 AttributesVector getAudioAttributes() const { return mAudioAttributes; } in getAudioAttributes() function
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationAttentionHelper.java417 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 …]
DNotificationChannelExtractor.java81 AudioAttributes attributes = record.getChannel().getAudioAttributes(); in process()
/frameworks/av/media/libaudioclient/
DAudioVolumeGroup.cpp53 legacy.getAudioAttributes(), in legacy2aidl_AudioVolumeGroup()
/frameworks/av/services/audioflinger/afutils/
DVibrator.cpp48 if (externalVibration->getAudioAttributes().flags & AUDIO_FLAG_MUTE_HAPTIC) { in onExternalVibrationStart()
/frameworks/av/services/audiopolicy/engine/common/include/
DProductStrategy.h56 AttributesVector getAudioAttributes() const;
/frameworks/native/libs/vibrator/fuzzer/
Dvibrator_fuzzer.cpp114 extVibration->getAudioAttributes(); in LLVMFuzzerTestOneInput()
/frameworks/av/services/audiopolicy/engine/common/src/
DProductStrategy.cpp53 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/
DRecognitionRequest.java55 public AudioAttributes getAudioAttributes() { in getAudioAttributes() method in RecognitionRequest
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/volume/
DUtil.java83 info.getCurrentVolume(), info.getMaxVolume(), type, vc, info.getAudioAttributes()); in playbackInfoToString()
/frameworks/base/core/java/android/os/
DExternalVibration.java105 public AudioAttributes getAudioAttributes() { in getAudioAttributes() method in ExternalVibration

123