Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/app/
DNotificationChannel.java486 public AudioAttributes getAudioAttributes() { in getAudioAttributes() method in NotificationChannel
693 if (getAudioAttributes() != null) { in writeXml()
694 out.attribute(null, ATT_USAGE, Integer.toString(getAudioAttributes().getUsage())); in writeXml()
696 Integer.toString(getAudioAttributes().getContentType())); in writeXml()
697 out.attribute(null, ATT_FLAGS, Integer.toString(getAudioAttributes().getFlags())); in writeXml()
752 if (getAudioAttributes() != null) { in toJson()
753 record.put(ATT_USAGE, Integer.toString(getAudioAttributes().getUsage())); in toJson()
755 Integer.toString(getAudioAttributes().getContentType())); in toJson()
756 record.put(ATT_FLAGS, Integer.toString(getAudioAttributes().getFlags())); in toJson()
882 return getAudioAttributes() != null ? getAudioAttributes().equals(that.getAudioAttributes()) in equals()
[all …]
/frameworks/base/services/tests/notification/src/com/android/server/notification/
DNotificationRecordTest.java194 assertEquals(Notification.AUDIO_ATTRIBUTES_DEFAULT, record.getAudioAttributes()); in testSound_default_preUpgradeUsesNotification()
207 assertEquals(CUSTOM_ATTRIBUTES, record.getAudioAttributes()); in testSound_custom_preUpgradeUsesNotification()
221 assertEquals(CUSTOM_ATTRIBUTES, record.getAudioAttributes()); in testSound_default_userLocked_preUpgrade()
233 assertEquals(Notification.AUDIO_ATTRIBUTES_DEFAULT, record.getAudioAttributes()); in testSound_noSound_preUpgrade()
246 assertEquals(CUSTOM_ATTRIBUTES, record.getAudioAttributes()); in testSound_default_upgradeUsesChannel()
DRankingHelperTest.java262 assertEquals(expected.getAudioAttributes(), actual.getAudioAttributes()); in compareChannels()
/frameworks/support/media-compat/api21/android/support/v4/media/session/
DMediaControllerCompatApi21.java195 public static AudioAttributes getAudioAttributes(Object volumeInfoObj) { in getAudioAttributes() method in MediaControllerCompatApi21.PlaybackInfo
196 return ((MediaController.PlaybackInfo) volumeInfoObj).getAudioAttributes(); in getAudioAttributes()
200 AudioAttributes attrs = getAudioAttributes(volumeInfoObj); in getLegacyAudioStream()
/frameworks/base/services/core/java/com/android/server/audio/
DPlaybackActivityMonitor.java194 if ((apc.getAudioAttributes().getAllFlags() & FLAGS_FOR_SILENCE_OVERRIDE) in checkVolumeForPrivilegedAlarm()
196 apc.getAudioAttributes().getUsage() == AudioAttributes.USAGE_ALARM && in checkVolumeForPrivilegedAlarm()
444 if (apc.getAudioAttributes().getContentType() == in duckPlayers()
496 final int playerUsage = apc.getAudioAttributes().getUsage(); in mutePlayersForCall()
812 mPlayerAttr = apc.getAudioAttributes(); in NewPlayerEvent()
DFocusRequester.java173 AudioAttributes getAudioAttributes() { in getAudioAttributes() method in FocusRequester
/frameworks/base/media/java/android/media/
DAudioFocusRequest.java281 public @NonNull AudioAttributes getAudioAttributes() { in getAudioAttributes() method in AudioFocusRequest
DAudioPlaybackConfiguration.java251 public AudioAttributes getAudioAttributes() { in getAudioAttributes() method in AudioPlaybackConfiguration
DRingtone.java144 public AudioAttributes getAudioAttributes() { in getAudioAttributes() method in Ringtone
DAudioManager.java2357 focusRequest.getAudioAttributes()); in abandonAudioFocusRequest()
2516 status = service.requestAudioFocus(afr.getAudioAttributes(), in requestAudioFocus()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationRecord.java259 AudioAttributes attributes = getChannel().getAudioAttributes(); in calculateAttributes()
373 if (getAudioAttributes() != null) { in dump()
374 proto.write(NotificationRecordProto.SOUND_USAGE, getAudioAttributes().getUsage()); in dump()
866 public AudioAttributes getAudioAttributes() { in getAudioAttributes() method in NotificationRecord
DNotificationManagerService.java4061 AudioAttributes.toLegacyStreamType(record.getAudioAttributes())) == 0) {
4169 AudioAttributes.toLegacyStreamType(record.getAudioAttributes())) != 0)) {
4175 + " with attributes " + record.getAudioAttributes());
4177 record.getAudioAttributes());
4210 record.getAudioAttributes());
4216 effect, record.getAudioAttributes());
4220 effect, record.getAudioAttributes());
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DUtil.java90 info.getCurrentVolume(), info.getMaxVolume(), type, vc, info.getAudioAttributes()); in playbackInfoToString()
/frameworks/base/core/java/android/preference/
DSeekBarVolumizer.java208 .getAudioAttributes()) in onStartSample()
/frameworks/base/media/java/android/media/session/
DMediaController.java952 public AudioAttributes getAudioAttributes() { in getAudioAttributes() method in MediaController.PlaybackInfo
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionRecord.java356 public AudioAttributes getAudioAttributes() { in getAudioAttributes() method in MediaSessionRecord
/frameworks/base/api/
Dcurrent.txt5549 method public android.media.AudioAttributes getAudioAttributes();
21066 method public android.media.AudioAttributes getAudioAttributes();
21332 method public android.media.AudioAttributes getAudioAttributes();
23461 method public android.media.AudioAttributes getAudioAttributes();
24360 method public android.media.AudioAttributes getAudioAttributes();
Dtest-current.txt5562 method public android.media.AudioAttributes getAudioAttributes();
21222 method public android.media.AudioAttributes getAudioAttributes();
21488 method public android.media.AudioAttributes getAudioAttributes();
23617 method public android.media.AudioAttributes getAudioAttributes();
24516 method public android.media.AudioAttributes getAudioAttributes();
Dsystem-current.txt5749 method public android.media.AudioAttributes getAudioAttributes();
22909 method public android.media.AudioAttributes getAudioAttributes();
23188 method public android.media.AudioAttributes getAudioAttributes();
25349 method public android.media.AudioAttributes getAudioAttributes();
26323 method public android.media.AudioAttributes getAudioAttributes();
/frameworks/base/config/
Dboot-image-profile.txt854 HPLandroid/app/NotificationChannel;->getAudioAttributes()Landroid/media/AudioAttributes;
3512 HPLandroid/media/AudioFocusRequest;->getAudioAttributes()Landroid/media/AudioAttributes;
3620 HPLandroid/media/AudioPlaybackConfiguration;->getAudioAttributes()Landroid/media/AudioAttributes;
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt15611 method public android.media.AudioAttributes getAudioAttributes();
16298 method public android.media.AudioAttributes getAudioAttributes();