Home
last modified time | relevance | path

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

123

/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/
DAudioVolumesTestBase.java59 if (avg.getAudioAttributes().isEmpty()) { in storeAllVolumes()
65 for (final AudioAttributes aa : avg.getAudioAttributes()) { in storeAllVolumes()
89 assertTrue(!avg.getAudioAttributes().isEmpty()); in restoreAllVolumes()
91 for (final AudioAttributes aa : avg.getAudioAttributes()) { in restoreAllVolumes()
DAudioManagerTest.java50 AudioAttributes attributes = audioProductStrategy.getAudioAttributes(); in testGetAndValidateProductStrategies()
77 for (final AudioAttributes aa : audioVolumeGroup.getAudioAttributes()) { in testGetAndValidateProductStrategies()
115 List<AudioAttributes> avgAttributes = audioVolumeGroup.getAudioAttributes(); in testGetAndValidateVolumeGroups()
266 List<AudioAttributes> avgAttributes = audioVolumeGroup.getAudioAttributes(); in testVolumeGroupCallback()
DAudioVolumeGroupChangeHandlerTest.java91 List<AudioAttributes> avgAttributes = audioVolumeGroup.getAudioAttributes(); in testCallbackReceived()
145 List<AudioAttributes> avgAttributes = audioVolumeGroup.getAudioAttributes(); in testMultipleCallbackReceived()
DAudioVolumeGroupTest.java61 List<AudioAttributes> avgAttributes = avg.getAudioAttributes(); in testGetVolumeGroups()
DAudioProductStrategyTest.java46 AudioAttributes aa = aps.getAudioAttributes(); in testGetProductStrategies()
/frameworks/base/core/java/android/app/
DNotificationChannel.java552 public AudioAttributes getAudioAttributes() { in getAudioAttributes() method in NotificationChannel
818 if (getAudioAttributes() != null) { in writeXml()
819 out.attribute(null, ATT_USAGE, Integer.toString(getAudioAttributes().getUsage())); in writeXml()
821 Integer.toString(getAudioAttributes().getContentType())); in writeXml()
822 out.attribute(null, ATT_FLAGS, Integer.toString(getAudioAttributes().getFlags())); in writeXml()
886 if (getAudioAttributes() != null) { in toJson()
887 record.put(ATT_USAGE, Integer.toString(getAudioAttributes().getUsage())); in toJson()
889 Integer.toString(getAudioAttributes().getContentType())); in toJson()
890 record.put(ATT_FLAGS, Integer.toString(getAudioAttributes().getFlags())); in toJson()
1010 && Objects.equals(getAudioAttributes(), that.getAudioAttributes()) in equals()
[all …]
/frameworks/base/media/java/android/media/audiopolicy/
DAudioProductStrategy.java182 public @NonNull AudioAttributes getAudioAttributes() { in getAudioAttributes() method in AudioProductStrategy
185 : mAudioAttributesGroups[0].getAudioAttributes(); in getAudioAttributes()
197 return aag.getAudioAttributes(); in getAudioAttributesForLegacyStreamType()
381 public @NonNull AudioAttributes getAudioAttributes() { in getAudioAttributes() method in AudioProductStrategy.AudioAttributesGroup
DAudioVolumeGroup.java123 public @NonNull List<AudioAttributes> getAudioAttributes() { in getAudioAttributes() method in AudioVolumeGroup
/frameworks/base/media/java/android/media/
DAudioPlaybackCaptureConfiguration.java96 criterion -> criterion.getAudioAttributes().getUsage()); in getMatchingUsages()
109 criterion -> criterion.getAudioAttributes().getUsage()); in getExcludeUsages()
DAudioFocusRequest.java287 public @NonNull AudioAttributes getAudioAttributes() { in getAudioAttributes() method in AudioFocusRequest
/frameworks/base/core/jni/
Dandroid_media_AudioVolumeGroups.cpp88 numAttributes = group.getAudioAttributes().size(); in convertAudioVolumeGroupsFromNative()
95 auto attributes = group.getAudioAttributes()[j]; in convertAudioVolumeGroupsFromNative()
/frameworks/base/services/core/java/com/android/server/audio/
DPlaybackActivityMonitor.java207 if ((apc.getAudioAttributes().getAllFlags() & FLAGS_FOR_SILENCE_OVERRIDE) in checkVolumeForPrivilegedAlarm()
209 apc.getAudioAttributes().getUsage() == AudioAttributes.USAGE_ALARM && in checkVolumeForPrivilegedAlarm()
354 AudioAttributes attr = apc.getAudioAttributes(); in updateAllowedCapturePolicy()
359 new AudioAttributes.Builder(apc.getAudioAttributes()) in updateAllowedCapturePolicy()
531 if (!forceDuck && (apc.getAudioAttributes().getContentType() == in duckPlayers()
583 final int playerUsage = apc.getAudioAttributes().getUsage(); in mutePlayersForCall()
899 mPlayerAttr = apc.getAudioAttributes(); in NewPlayerEvent()
/frameworks/av/media/libaudioclient/include/media/
DAudioVolumeGroup.h39 AttributesVector getAudioAttributes() const { return mAudioAttributes; } in getAudioAttributes() function
DAudioProductStrategy.h37 std::vector<AudioAttributes> getAudioAttributes() const { return mAudioAttributes; } in getAudioAttributes() function
/frameworks/native/libs/vibrator/include/vibrator/
DExternalVibration.h45 audio_attributes_t getAudioAttributes() const { return mAttrs; } in getAudioAttributes() function
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenModeFilteringTest.java93 when(c.getAudioAttributes()).thenReturn(new AudioAttributes.Builder() in testIsAlarm()
114 when(c.getAudioAttributes()).thenReturn(new AudioAttributes.Builder() in testIsAlarm_wrongUsage()
DNotificationRecordTest.java211 assertEquals(Notification.AUDIO_ATTRIBUTES_DEFAULT, record.getAudioAttributes()); in testSound_default_preUpgradeUsesNotification()
224 assertEquals(CUSTOM_ATTRIBUTES, record.getAudioAttributes()); in testSound_custom_preUpgradeUsesNotification()
238 assertEquals(CUSTOM_ATTRIBUTES, record.getAudioAttributes()); in testSound_default_userLocked_preUpgrade()
250 assertEquals(Notification.AUDIO_ATTRIBUTES_DEFAULT, record.getAudioAttributes()); in testSound_noSound_preUpgrade()
263 assertEquals(CUSTOM_ATTRIBUTES, record.getAudioAttributes()); in testSound_default_upgradeUsesChannel()
/frameworks/av/services/audiopolicy/engine/common/src/
DProductStrategy.cpp53 AttributesVector ProductStrategy::getAudioAttributes() const in getAudioAttributes() function in android::ProductStrategy
233 return at(strategy)->getAudioAttributes()[0]; in getAttributesForProductStrategy()
DEngineBase.cpp229 for (const auto &attributes : strategy.second->getAudioAttributes()) { in getOrderedProductStrategies()
264 mProductStrategies.at(ps)->getAudioAttributes() : AttributesVector(); in getAllAttributesForProductStrategy()
/frameworks/av/services/audiopolicy/engine/common/include/
DProductStrategy.h59 AttributesVector getAudioAttributes() const;
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeFiltering.java253 AudioAttributes aa = record.getAudioAttributes(); in isMedia()
259 AudioAttributes aa = record.getAudioAttributes(); in isSystem()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
DChannelsTest.java87 legacyChannel.getAudioAttributes()); in testInheritFromLegacy_keepsUserLockedLegacySettings()
/frameworks/base/core/java/android/os/
DExternalVibration.java83 public AudioAttributes getAudioAttributes() { in getAudioAttributes() method in ExternalVibration
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/volume/
DUtil.java83 info.getCurrentVolume(), info.getMaxVolume(), type, vc, info.getAudioAttributes()); in playbackInfoToString()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DNotificationChannels.java126 screenshotChannel.setSound(legacySS.getSound(), legacySS.getAudioAttributes()); in createScreenshotChannel()

123