Home
last modified time | relevance | path

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

123

/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/
DAudioVolumesTestBase.java54 if (avg.getAudioAttributes().isEmpty()) { in storeAllVolumes()
60 for (final AudioAttributes aa : avg.getAudioAttributes()) { in storeAllVolumes()
84 assertTrue(!avg.getAudioAttributes().isEmpty()); in restoreAllVolumes()
86 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()
267 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.java47 AudioAttributes aa = aps.getAudioAttributes(); in testGetProductStrategies()
/frameworks/base/services/core/java/com/android/server/audio/
DFadeOutManager.java94 if (requester.getAudioAttributes().getContentType() == AudioAttributes.CONTENT_TYPE_SPEECH) in canCauseFadeOut()
118 apc.getAudioAttributes().getContentType())) { in canBeFadedOut()
121 + apc.getAudioAttributes().getContentType()); in canBeFadedOut()
125 if (!ArrayUtils.contains(FADEABLE_USAGES, apc.getAudioAttributes().getUsage())) { in canBeFadedOut()
127 Log.i(TAG, "not fading: usage:" + apc.getAudioAttributes().getUsage()); in canBeFadedOut()
DPlaybackActivityMonitor.java287 if ((apc.getAudioAttributes().getAllFlags() & FLAGS_FOR_SILENCE_OVERRIDE) in checkVolumeForPrivilegedAlarm()
289 apc.getAudioAttributes().getUsage() == AudioAttributes.USAGE_ALARM && in checkVolumeForPrivilegedAlarm()
469 AudioAttributes attr = apc.getAudioAttributes(); in updateAllowedCapturePolicy()
474 new AudioAttributes.Builder(apc.getAudioAttributes()) in updateAllowedCapturePolicy()
658 if (!forceDuck && (apc.getAudioAttributes().getContentType() == in duckPlayers()
689 final int reqUsage = requester.getAudioAttributes().getUsage(); in reqCausesStrongDuck()
723 final int playerUsage = apc.getAudioAttributes().getUsage(); in mutePlayersForCall()
814 + " attr:" + apc.getAudioAttributes()); in fadeOutPlayers()
1145 mPlayerAttr = apc.getAudioAttributes(); in NewPlayerEvent()
1301 if (usage == apc.getAudioAttributes().getUsage()) { in maybeMutePlayerAwaitingConnection()
/frameworks/base/core/java/android/app/
DNotificationChannel.java726 public AudioAttributes getAudioAttributes() { in getAudioAttributes() method in NotificationChannel
1053 if (getAudioAttributes() != null) { in writeXml()
1054 out.attributeInt(null, ATT_USAGE, getAudioAttributes().getUsage()); in writeXml()
1055 out.attributeInt(null, ATT_CONTENT_TYPE, getAudioAttributes().getContentType()); in writeXml()
1056 out.attributeInt(null, ATT_FLAGS, getAudioAttributes().getFlags()); in writeXml()
1138 if (getAudioAttributes() != null) { in toJson()
1139 record.put(ATT_USAGE, Integer.toString(getAudioAttributes().getUsage())); in toJson()
1141 Integer.toString(getAudioAttributes().getContentType())); in toJson()
1142 record.put(ATT_FLAGS, Integer.toString(getAudioAttributes().getFlags())); in toJson()
1253 && 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()
DAudioFocusRequest.java287 public @NonNull AudioAttributes getAudioAttributes() { in getAudioAttributes() method in AudioFocusRequest
/frameworks/base/media/java/android/media/audiopolicy/
DAudioProductStrategy.java250 public @NonNull AudioAttributes getAudioAttributes() { in getAudioAttributes() method in AudioProductStrategy
253 : mAudioAttributesGroups[0].getAudioAttributes(); in getAudioAttributes()
265 return aag.getAudioAttributes(); in getAudioAttributesForLegacyStreamType()
473 public @NonNull AudioAttributes getAudioAttributes() { in getAudioAttributes() method in AudioProductStrategy.AudioAttributesGroup
DAudioVolumeGroup.java123 public @NonNull List<AudioAttributes> getAudioAttributes() { in getAudioAttributes() method in AudioVolumeGroup
/frameworks/base/core/jni/
Dandroid_media_AudioVolumeGroups.cpp88 numAttributes = group.getAudioAttributes().size(); in convertAudioVolumeGroupsFromNative()
95 auto attributes = group.getAudioAttributes()[j]; in convertAudioVolumeGroupsFromNative()
/frameworks/native/libs/vibrator/include/vibrator/
DExternalVibration.h45 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
DAudioProductStrategy.h39 std::vector<AudioAttributes> getAudioAttributes() const { return mAudioAttributes; } in getAudioAttributes() function
/frameworks/av/media/libaudioclient/
DAudioVolumeGroup.cpp54 legacy.getAudioAttributes(), in legacy2aidl_AudioVolumeGroup()
DAudioProductStrategy.cpp45 legacy.getAudioAttributes(), in legacy2aidl_AudioProductStrategy()
/frameworks/av/services/audiopolicy/engine/common/src/
DProductStrategy.cpp53 AttributesVector ProductStrategy::getAudioAttributes() const in getAudioAttributes() function in android::ProductStrategy
229 return at(strategy)->getAudioAttributes()[0]; in getAttributesForProductStrategy()
/frameworks/native/libs/vibrator/fuzzer/
Dvibrator_fuzzer.cpp114 extVibration->getAudioAttributes(); in LLVMFuzzerTestOneInput()
/frameworks/av/services/audiopolicy/engine/common/include/
DProductStrategy.h62 AttributesVector getAudioAttributes() const;
/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.java103 public AudioAttributes getAudioAttributes() { in getAudioAttributes() method in ExternalVibration
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/
DNotificationChannelController.java172 deprecatedChannel.getAudioAttributes()); in migrateCallFowardNotificationChannel()

123