Home
last modified time | relevance | path

Searched refs:AudioAttributes (Results 1 – 25 of 60) sorted by relevance

123

/frameworks/support/v4/api21/android/support/v4/media/session/
DMediaControllerCompatApi21.java21 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 …]
DMediaSessionCompatApi21.java22 import android.media.AudioAttributes;
70 AudioAttributes.Builder bob = new AudioAttributes.Builder(); in setPlaybackToLocal()
/frameworks/base/media/java/android/media/
DAudioAttributes.java66 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 …]
DRingtone.java69 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()
DAudioFocusInfo.java32 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
DIRingtonePlayer.aidl19 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()
DSoundPool.java134 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()
DIAudioService.aidl22 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()
DAudioRecord.java193 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()
DFocusRequester.java62 private final AudioAttributes mAttributes;
77 FocusRequester(AudioAttributes aa, int focusRequest, int grantFlags, in FocusRequester()
134 AudioAttributes getAudioAttributes() { in getAudioAttributes()
DAudioAttributes.aidl18 parcelable AudioAttributes;
/frameworks/base/core/java/android/os/
DVibrator.java21 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()
DSystemVibrator.java20 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()
DNullVibrator.java19 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/
DAudioMixingRule.java20 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()
DAudioPolicy.java24 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/
DParcelableVolumeInfo.java18 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()
DISession.aidl20 import android.media.AudioAttributes;
50 void setPlaybackToLocal(in AudioAttributes attributes); in setPlaybackToLocal()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DNotificationPlayer.java20 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()
DRingtonePlayer.java21 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/
DSearchPanelView.java27 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/
DPowerNotificationWarnings.java30 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/
DShutdownThread.java27 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/
DZenModeHelper.java19 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/
DMediaSessionRecord.java41 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()

123