/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 | 66 public final class AudioAttributes implements Parcelable { class 223 private AudioAttributes() { in AudioAttributes() method in AudioAttributes 323 public Builder(AudioAttributes aa) { in Builder() 336 public AudioAttributes build() { in build() 337 AudioAttributes aa = new AudioAttributes(); in build() 424 flags &= AudioAttributes.FLAG_ALL; in setFlags() 579 private AudioAttributes(Parcel in) { in AudioAttributes() method in AudioAttributes 598 public static final Parcelable.Creator<AudioAttributes> CREATOR 599 = new Parcelable.Creator<AudioAttributes>() { 605 public AudioAttributes createFromParcel(Parcel p) { [all …]
|
D | Ringtone.java | 69 private AudioAttributes mAudioAttributes = new AudioAttributes.Builder() 70 .setUsage(AudioAttributes.USAGE_NOTIFICATION_RINGTONE) 71 .setContentType(AudioAttributes.CONTENT_TYPE_SONIFICATION) 91 setAudioAttributes(new AudioAttributes.Builder() in setStreamType() 105 return AudioAttributes.toLegacyStreamType(mAudioAttributes); in getStreamType() 112 public void setAudioAttributes(AudioAttributes attributes) in setAudioAttributes() 128 public AudioAttributes getAudioAttributes() { in getAudioAttributes() 249 AudioAttributes.toLegacyStreamType(mAudioAttributes)) != 0) { in play() 313 if (mAudioManager.getStreamVolume(AudioAttributes.toLegacyStreamType(mAudioAttributes)) in playFallbackRingtone()
|
D | AudioFocusInfo.java | 32 private AudioAttributes mAttributes; 49 AudioFocusInfo(AudioAttributes aa, String clientId, String packageName, in AudioFocusInfo() 51 mAttributes = aa == null ? new AudioAttributes.Builder().build() : aa; in AudioFocusInfo() 65 public AudioAttributes getAttributes() { return mAttributes; } in getAttributes() 162 AudioAttributes.CREATOR.createFromParcel(in), //AudioAttributes aa
|
D | IRingtonePlayer.aidl | 19 import android.media.AudioAttributes; 28 void play(IBinder token, in Uri uri, in AudioAttributes aa); in play() 33 void playAsync(in Uri uri, in UserHandle user, boolean looping, in AudioAttributes aa); in playAsync()
|
D | SoundPool.java | 134 new AudioAttributes.Builder().setInternalLegacyStreamType(streamType).build()); in SoundPool() 137 private SoundPool(int maxStreams, AudioAttributes attributes) { in SoundPool() 150 private AudioAttributes mAudioAttributes; 183 public Builder setAudioAttributes(AudioAttributes attributes) in setAudioAttributes() 194 mAudioAttributes = new AudioAttributes.Builder() in build() 195 .setUsage(AudioAttributes.USAGE_MEDIA).build(); in build() 523 private final AudioAttributes mAttributes; 531 public SoundPoolImpl(SoundPool proxy, int maxStreams, AudioAttributes attr) { in SoundPoolImpl()
|
D | IAudioService.aidl | 22 import android.media.AudioAttributes; 125 int requestAudioFocus(in AudioAttributes aa, int durationHint, IBinder cb, in requestAudioFocus() 129 int abandonAudioFocus(IAudioFocusDispatcher fd, String clientId, in AudioAttributes aa); in abandonAudioFocus()
|
D | AudioRecord.java | 193 private AudioAttributes mAudioAttributes; 226 this((new AudioAttributes.Builder()) in AudioRecord() 260 public AudioRecord(AudioAttributes attributes, AudioFormat format, int bufferSizeInBytes, in AudioRecord() 278 final AudioAttributes.Builder filteredAttr = new AudioAttributes.Builder(); in AudioRecord()
|
D | FocusRequester.java | 62 private final AudioAttributes mAttributes; 77 FocusRequester(AudioAttributes aa, int focusRequest, int grantFlags, in FocusRequester() 134 AudioAttributes getAudioAttributes() { in getAudioAttributes()
|
D | AudioAttributes.aidl | 18 parcelable AudioAttributes;
|
/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() 54 AudioAttributes attributes) { in vibrate()
|
/frameworks/base/media/java/android/media/audiopolicy/ |
D | AudioMixingRule.java | 20 import android.media.AudioAttributes; 75 AudioAttributes mAttr; 79 AttributeMatchCriterion(AudioAttributes attributes, int rule) { in AttributeMatchCriterion() 163 public Builder addRule(AudioAttributes attrToMatch, int rule) in addRule() 191 public Builder excludeRule(AudioAttributes attrToMatch, int rule) in excludeRule() 210 Builder addRuleInt(AudioAttributes attrToMatch, int rule) in addRuleInt() 272 AudioAttributes attr; in addRuleFromParcel() 275 attr = new AudioAttributes.Builder() in addRuleFromParcel() 280 attr = new AudioAttributes.Builder() in addRuleFromParcel()
|
D | AudioPolicy.java | 24 import android.media.AudioAttributes; 338 new AudioAttributes.Builder() in createAudioRecordSink() 371 new AudioAttributes.Builder() in createAudioTrackSource() 372 .setUsage(AudioAttributes.USAGE_VIRTUAL_SOURCE) in createAudioTrackSource()
|
/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; 49 AudioAttributes attributes; 95 AudioAttributes.toLegacyStreamType(mCmd.attributes), in run() 99 AudioAttributes.toLegacyStreamType(mCmd.attributes), in run() 296 cmd.attributes = new AudioAttributes.Builder().setInternalLegacyStreamType(stream).build(); in play() 316 public void play(Context context, Uri uri, boolean looping, AudioAttributes attributes) { in play()
|
D | RingtonePlayer.java | 21 import android.media.AudioAttributes; 75 public Client(IBinder token, Uri uri, UserHandle user, AudioAttributes aa) { in Client() 95 public void play(IBinder token, Uri uri, AudioAttributes aa) throws RemoteException { 141 public void playAsync(Uri uri, UserHandle user, boolean looping, AudioAttributes aa) {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | SearchPanelView.java | 27 import android.media.AudioAttributes; 51 private static final AudioAttributes VIBRATION_ATTRIBUTES = new AudioAttributes.Builder() 52 .setContentType(AudioAttributes.CONTENT_TYPE_SONIFICATION) 53 .setUsage(AudioAttributes.USAGE_ASSISTANCE_SONIFICATION)
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/ |
D | PowerNotificationWarnings.java | 30 import android.media.AudioAttributes; 71 private static final AudioAttributes AUDIO_ATTRIBUTES = new AudioAttributes.Builder() 72 .setContentType(AudioAttributes.CONTENT_TYPE_SONIFICATION) 73 .setUsage(AudioAttributes.USAGE_ASSISTANCE_SONIFICATION)
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | ShutdownThread.java | 27 import android.media.AudioAttributes; 82 private static final AudioAttributes VIBRATION_ATTRIBUTES = new AudioAttributes.Builder() 83 .setContentType(AudioAttributes.CONTENT_TYPE_SONIFICATION) 84 .setUsage(AudioAttributes.USAGE_ASSISTANCE_SONIFICATION)
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ZenModeHelper.java | 19 import static android.media.AudioAttributes.USAGE_ALARM; 20 import static android.media.AudioAttributes.USAGE_NOTIFICATION; 21 import static android.media.AudioAttributes.USAGE_NOTIFICATION_RINGTONE; 31 import android.media.AudioAttributes; 427 || record.isAudioAttributesUsage(AudioAttributes.USAGE_ALARM); in isAlarm()
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | MediaSessionRecord.java | 41 import android.media.AudioAttributes; 116 private AudioAttributes mAudioAttrs; 143 mAudioAttrs = new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA).build(); in MediaSessionRecord() 273 int stream = AudioAttributes.toLegacyStreamType(mAudioAttrs); in adjustVolume() 344 int stream = AudioAttributes.toLegacyStreamType(mAudioAttrs); in setVolumeTo() 416 public AudioAttributes getAudioAttributes() { in getAudioAttributes() 844 public void setPlaybackToLocal(AudioAttributes attributes) { in setPlaybackToLocal() 1103 int stream = AudioAttributes.toLegacyStreamType(mAudioAttrs); in getVolumeAttributes()
|