/frameworks/support/v4/api21/android/support/v4/media/session/ |
D | MediaControllerCompatApi21.java | 21 import android.media.AudioAttributes; 180 public static AudioAttributes getAudioAttributes(Object volumeInfoObj) { in getAudioAttributes() 185 AudioAttributes attrs = getAudioAttributes(volumeInfoObj); in getLegacyAudioStream() 207 private static int toLegacyStreamType(AudioAttributes aa) { in toLegacyStreamType() 209 if ((aa.getFlags() & AudioAttributes.FLAG_AUDIBILITY_ENFORCED) in toLegacyStreamType() 210 == AudioAttributes.FLAG_AUDIBILITY_ENFORCED) { in toLegacyStreamType() 219 case AudioAttributes.USAGE_MEDIA: in toLegacyStreamType() 220 case AudioAttributes.USAGE_GAME: in toLegacyStreamType() 221 case AudioAttributes.USAGE_ASSISTANCE_ACCESSIBILITY: in toLegacyStreamType() 222 case AudioAttributes.USAGE_ASSISTANCE_NAVIGATION_GUIDANCE: in toLegacyStreamType() [all …]
|
D | MediaSessionCompatApi21.java | 22 import android.media.AudioAttributes; 70 AudioAttributes.Builder bob = new AudioAttributes.Builder(); in setPlaybackToLocal()
|
/frameworks/base/media/java/android/media/ |
D | AudioAttributes.java | 67 public final class AudioAttributes implements Parcelable { class 259 private AudioAttributes() { in AudioAttributes() method in AudioAttributes 375 public Builder(AudioAttributes aa) { in Builder() 388 public AudioAttributes build() { in build() 389 AudioAttributes aa = new AudioAttributes(); in build() 480 flags &= AudioAttributes.FLAG_ALL; in setFlags() 667 private AudioAttributes(Parcel in) { in AudioAttributes() method in AudioAttributes 696 public static final Parcelable.Creator<AudioAttributes> CREATOR 697 = new Parcelable.Creator<AudioAttributes>() { 703 public AudioAttributes createFromParcel(Parcel p) { [all …]
|
D | Ringtone.java | 79 private AudioAttributes mAudioAttributes = new AudioAttributes.Builder() 80 .setUsage(AudioAttributes.USAGE_NOTIFICATION_RINGTONE) 81 .setContentType(AudioAttributes.CONTENT_TYPE_SONIFICATION) 105 setAudioAttributes(new AudioAttributes.Builder() in setStreamType() 119 return AudioAttributes.toLegacyStreamType(mAudioAttributes); in getStreamType() 126 public void setAudioAttributes(AudioAttributes attributes) in setAudioAttributes() 142 public AudioAttributes getAudioAttributes() { in getAudioAttributes() 329 AudioAttributes.toLegacyStreamType(mAudioAttributes)) != 0) { in play() 413 if (mAudioManager.getStreamVolume(AudioAttributes.toLegacyStreamType(mAudioAttributes)) in playFallbackRingtone()
|
D | AudioFocusInfo.java | 32 private AudioAttributes mAttributes; 50 public AudioFocusInfo(AudioAttributes aa, String clientId, String packageName, in AudioFocusInfo() 52 mAttributes = aa == null ? new AudioAttributes.Builder().build() : aa; in AudioFocusInfo() 66 public AudioAttributes getAttributes() { return mAttributes; } in getAttributes() 163 AudioAttributes.CREATOR.createFromParcel(in), //AudioAttributes aa
|
D | SoundPool.java | 132 private final AudioAttributes mAttributes; 155 new AudioAttributes.Builder().setInternalLegacyStreamType(streamType).build()); in SoundPool() 158 private SoundPool(int maxStreams, AudioAttributes attributes) { in SoundPool() 518 ((mAttributes.getAllFlags() & AudioAttributes.FLAG_AUDIBILITY_ENFORCED) != 0) in isRestricted() 525 if ((mAttributes.getAllFlags() & AudioAttributes.FLAG_BYPASS_INTERRUPTION_POLICY) != 0) { in isRestricted() 593 private AudioAttributes mAudioAttributes; 626 public Builder setAudioAttributes(AudioAttributes attributes) in setAudioAttributes() 637 mAudioAttributes = new AudioAttributes.Builder() in build() 638 .setUsage(AudioAttributes.USAGE_MEDIA).build(); in build()
|
D | IRingtonePlayer.aidl | 19 import android.media.AudioAttributes; 29 void play(IBinder token, in Uri uri, in AudioAttributes aa, float volume, boolean looping); in play() 35 void playAsync(in Uri uri, in UserHandle user, boolean looping, in AudioAttributes aa); in playAsync()
|
D | PlayerBase.java | 43 protected AudioAttributes mAttributes; 59 PlayerBase(@NonNull AudioAttributes attr) { in PlayerBase() 91 void baseUpdateAudioAttributes(@NonNull AudioAttributes attr) { in baseUpdateAudioAttributes() 184 if ((mAttributes.getAllFlags() & AudioAttributes.FLAG_BYPASS_INTERRUPTION_POLICY) != 0) { in isRestricted_sync()
|
D | MediaActionSound.java | 121 .setAudioAttributes(new AudioAttributes.Builder() in MediaActionSound() 122 .setUsage(AudioAttributes.USAGE_ASSISTANCE_SONIFICATION) in MediaActionSound() 123 .setFlags(AudioAttributes.FLAG_AUDIBILITY_ENFORCED) in MediaActionSound() 124 .setContentType(AudioAttributes.CONTENT_TYPE_SONIFICATION) in MediaActionSound()
|
D | IAudioService.aidl | 22 import android.media.AudioAttributes; 111 int requestAudioFocus(in AudioAttributes aa, int durationHint, IBinder cb, in requestAudioFocus() 115 int abandonAudioFocus(IAudioFocusDispatcher fd, String clientId, in AudioAttributes aa); in abandonAudioFocus()
|
D | AudioRecord.java | 242 private AudioAttributes mAudioAttributes; 278 this((new AudioAttributes.Builder()) in AudioRecord() 312 public AudioRecord(AudioAttributes attributes, AudioFormat format, int bufferSizeInBytes, in AudioRecord() 330 final AudioAttributes.Builder filteredAttr = new AudioAttributes.Builder(); in AudioRecord() 479 private AudioAttributes mAttributes; 501 mAttributes = new AudioAttributes.Builder() in setAudioSource() 516 public Builder setAudioAttributes(@NonNull AudioAttributes attributes) in setAudioAttributes() 610 mAttributes = new AudioAttributes.Builder() in build()
|
D | AsyncPlayer.java | 42 AudioAttributes attributes; 171 new AudioAttributes.Builder().setInternalLegacyStreamType(stream).build()); in play() 192 @NonNull AudioAttributes attributes) throws IllegalArgumentException { in play()
|
/frameworks/base/media/java/android/media/audiopolicy/ |
D | AudioMixingRule.java | 20 import android.media.AudioAttributes; 95 final AudioAttributes mAttr; 100 AudioMixMatchCriterion(AudioAttributes attributes, int rule) { in AudioMixMatchCriterion() 230 public Builder addRule(AudioAttributes attrToMatch, int rule) in addRule() 259 public Builder excludeRule(AudioAttributes attrToMatch, int rule) in excludeRule() 336 if (!(property instanceof AudioAttributes)) { in checkAddRuleObjInternal() 339 return addRuleInternal((AudioAttributes) property, null, rule); in checkAddRuleObjInternal() 365 private Builder addRuleInternal(AudioAttributes attrToMatch, Integer intProp, int rule) in addRuleInternal() 449 AudioAttributes attr = null; in addRuleFromParcel() 454 attr = new AudioAttributes.Builder() in addRuleFromParcel() [all …]
|
D | AudioPolicy.java | 24 import android.media.AudioAttributes; 344 new AudioAttributes.Builder() in createAudioRecordSink() 377 new AudioAttributes.Builder() in createAudioTrackSource() 378 .setUsage(AudioAttributes.USAGE_VIRTUAL_SOURCE) in createAudioTrackSource()
|
/frameworks/base/core/java/android/os/ |
D | Vibrator.java | 21 import android.media.AudioAttributes; 79 public void vibrate(long milliseconds, AudioAttributes attributes) { in vibrate() 131 public void vibrate(long[] pattern, int repeat, AudioAttributes attributes) { in vibrate() 141 AudioAttributes attributes); in vibrate() 149 AudioAttributes attributes); in vibrate()
|
D | SystemVibrator.java | 20 import android.media.AudioAttributes; 62 public void vibrate(int uid, String opPkg, long milliseconds, AudioAttributes attributes) { in vibrate() 79 AudioAttributes attributes) { in vibrate() 99 private static int usageForAttributes(AudioAttributes attributes) { in usageForAttributes() 100 return attributes != null ? attributes.getUsage() : AudioAttributes.USAGE_UNKNOWN; in usageForAttributes()
|
D | NullVibrator.java | 19 import android.media.AudioAttributes; 45 public void vibrate(int uid, String opPkg, long milliseconds, AudioAttributes attributes) { in vibrate() 53 AudioAttributes attributes) { in vibrate()
|
/frameworks/base/media/java/android/media/session/ |
D | ParcelableVolumeInfo.java | 18 import android.media.AudioAttributes; 30 public AudioAttributes audioAttrs; 35 public ParcelableVolumeInfo(int volumeType, AudioAttributes audioAttrs, int controlType, in ParcelableVolumeInfo() 50 audioAttrs = AudioAttributes.CREATOR.createFromParcel(from); in ParcelableVolumeInfo()
|
D | ISession.aidl | 20 import android.media.AudioAttributes; 50 void setPlaybackToLocal(in AudioAttributes attributes); in setPlaybackToLocal()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
D | NotificationPlayer.java | 20 import android.media.AudioAttributes; 50 AudioAttributes attributes; 96 AudioAttributes.toLegacyStreamType(mCmd.attributes), in run() 100 AudioAttributes.toLegacyStreamType(mCmd.attributes), in run() 305 cmd.attributes = new AudioAttributes.Builder().setInternalLegacyStreamType(stream).build(); in play() 325 public void play(Context context, Uri uri, boolean looping, AudioAttributes attributes) { in play()
|
D | RingtonePlayer.java | 23 import android.media.AudioAttributes; 82 public Client(IBinder token, Uri uri, UserHandle user, AudioAttributes aa) { in Client() 102 public void play(IBinder token, Uri uri, AudioAttributes aa, float volume, boolean looping) 164 public void playAsync(Uri uri, UserHandle user, boolean looping, AudioAttributes aa) {
|
/frameworks/base/services/tests/servicestests/src/com/android/server/notification/ |
D | BuzzBeepBlinkTest.java | 22 import android.media.AudioAttributes; 167 anyBoolean(), (AudioAttributes) anyObject()); in verifyNeverBeep() 172 eq(true), (AudioAttributes) anyObject()); in verifyBeep() 177 eq(false), (AudioAttributes) anyObject()); in verifyBeepLooped() 190 anyInt(), (AudioAttributes) anyObject()); in verifyNeverVibrate() 195 eq(-1), (AudioAttributes) anyObject()); in verifyVibrate() 200 eq(0), (AudioAttributes) anyObject()); in verifyVibrateLooped()
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | FocusRequester.java | 20 import android.media.AudioAttributes; 67 private final AudioAttributes mAttributes; 82 FocusRequester(AudioAttributes aa, int focusRequest, int grantFlags, in FocusRequester() 139 AudioAttributes getAudioAttributes() { in getAudioAttributes()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/ |
D | PowerNotificationWarnings.java | 30 import android.media.AudioAttributes; 68 private static final AudioAttributes AUDIO_ATTRIBUTES = new AudioAttributes.Builder() 69 .setContentType(AudioAttributes.CONTENT_TYPE_SONIFICATION) 70 .setUsage(AudioAttributes.USAGE_ASSISTANCE_SONIFICATION)
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | MediaSessionRecord.java | 39 import android.media.AudioAttributes; 114 private AudioAttributes mAudioAttrs; 144 mAudioAttrs = new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA).build(); in MediaSessionRecord() 250 int stream = AudioAttributes.toLegacyStreamType(mAudioAttrs); in adjustVolume() 285 int stream = AudioAttributes.toLegacyStreamType(mAudioAttrs); in setVolumeTo() 357 public AudioAttributes getAudioAttributes() { in getAudioAttributes() 837 public void setPlaybackToLocal(AudioAttributes attributes) { in setPlaybackToLocal() 1136 AudioAttributes attributes; in getVolumeAttributes() 1146 int stream = AudioAttributes.toLegacyStreamType(attributes); in getVolumeAttributes()
|