Home
last modified time | relevance | path

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

12

/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/
DC.java19 import android.media.AudioAttributes;
312 public static final int CONTENT_TYPE_MOVIE = android.media.AudioAttributes.CONTENT_TYPE_MOVIE;
316 public static final int CONTENT_TYPE_MUSIC = android.media.AudioAttributes.CONTENT_TYPE_MUSIC;
321 android.media.AudioAttributes.CONTENT_TYPE_SONIFICATION;
326 android.media.AudioAttributes.CONTENT_TYPE_SPEECH;
331 android.media.AudioAttributes.CONTENT_TYPE_UNKNOWN;
349 android.media.AudioAttributes.FLAG_AUDIBILITY_ENFORCED;
385 public static final int USAGE_ALARM = android.media.AudioAttributes.USAGE_ALARM;
388 android.media.AudioAttributes.USAGE_ASSISTANCE_ACCESSIBILITY;
393 android.media.AudioAttributes.USAGE_ASSISTANCE_NAVIGATION_GUIDANCE;
[all …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/audio/
DAudioAttributes.java34 public final class AudioAttributes { class
36 public static final AudioAttributes DEFAULT = new Builder().build();
92 public AudioAttributes build() { in build()
93 return new AudioAttributes(contentType, flags, usage, allowedCapturePolicy); in build()
103 @Nullable private android.media.AudioAttributes audioAttributesV21;
105 private AudioAttributes( in AudioAttributes() method in AudioAttributes
122 public android.media.AudioAttributes getAudioAttributesV21() { in getAudioAttributesV21()
124 android.media.AudioAttributes.Builder builder = in getAudioAttributesV21()
125 new android.media.AudioAttributes.Builder() in getAudioAttributesV21()
145 AudioAttributes other = (AudioAttributes) obj; in equals()
DDefaultAudioSink.java276 private AudioAttributes audioAttributes;
375 audioAttributes = AudioAttributes.DEFAULT; in DefaultAudioSink()
899 public void setAudioAttributes(AudioAttributes audioAttributes) { in setAudioAttributes()
1491 boolean tunneling, AudioAttributes audioAttributes, int audioSessionId) in buildAudioTrack()
1536 boolean tunneling, AudioAttributes audioAttributes, int audioSessionId) { in createAudioTrackV21()
1537 android.media.AudioAttributes attributes; in createAudioTrackV21()
1540 new android.media.AudioAttributes.Builder() in createAudioTrackV21()
1541 .setContentType(android.media.AudioAttributes.CONTENT_TYPE_MOVIE) in createAudioTrackV21()
1542 .setFlags(android.media.AudioAttributes.FLAG_HW_AV_SYNC) in createAudioTrackV21()
1543 .setUsage(android.media.AudioAttributes.USAGE_MEDIA) in createAudioTrackV21()
DAudioListener.java33 default void onAudioAttributesChanged(AudioAttributes audioAttributes) {} in onAudioAttributesChanged()
DAudioSink.java305 void setAudioAttributes(AudioAttributes audioAttributes); in setAudioAttributes()
DForwardingAudioSink.java138 public void setAudioAttributes(AudioAttributes audioAttributes) { in setAudioAttributes()
DDecoderAudioRenderer.java562 AudioAttributes audioAttributes = (AudioAttributes) message; in handleMessage()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/
DAudioFocusManagerTest.java33 import com.google.android.exoplayer2.audio.AudioAttributes;
86 audioFocusManager.setAudioAttributes(AudioAttributes.DEFAULT); in setAudioAttributes_withNullUsage_abandonsAudioFocus()
109 audioFocusManager.setAudioAttributes(AudioAttributes.DEFAULT); in setAudioAttributes_withNullUsage_abandonsAudioFocus_v26()
129 AudioAttributes alarm = new AudioAttributes.Builder().setUsage(C.USAGE_ALARM).build(); in setAudioAttributes_withUsageAlarm_throwsIllegalArgumentException()
143 AudioAttributes mediaAudioAttributes = in setAudioAttributes_withUsageMedia_usesAudioFocusGain()
144 new AudioAttributes.Builder().setUsage(C.USAGE_MEDIA).build(); in setAudioAttributes_withUsageMedia_usesAudioFocusGain()
159 audioFocusManager.setAudioAttributes(AudioAttributes.DEFAULT); in setAudioAttributes_inEndedState_requestsAudioFocus()
172 audioFocusManager.setAudioAttributes(AudioAttributes.DEFAULT); in updateAudioFocus_idleToBuffering_setsPlayerCommandPlayWhenReady()
188 audioFocusManager.setAudioAttributes(AudioAttributes.DEFAULT); in updateAudioFocus_pausedToPlaying_setsPlayerCommandPlayWhenReady()
207 audioFocusManager.setAudioAttributes(AudioAttributes.DEFAULT); in updateAudioFocus_pausedToPlaying_withTransientLoss_setsPlayerCommandPlayWhenReady()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowAudioManagerTest.java8 import android.media.AudioAttributes;
55 AudioAttributes atts = new AudioAttributes.Builder().build(); in requestAudioFocus2_shouldRecordArgumentsOfMostRecentCall()
269 AudioAttributes movieAttribute = in getActivePlaybackConfigurations()
270 new AudioAttributes.Builder().setContentType(AudioAttributes.CONTENT_TYPE_MOVIE).build(); in getActivePlaybackConfigurations()
271 AudioAttributes musicAttribute = in getActivePlaybackConfigurations()
272 new AudioAttributes.Builder().setContentType(AudioAttributes.CONTENT_TYPE_MUSIC).build(); in getActivePlaybackConfigurations()
276 new AudioAttributes[] { in getActivePlaybackConfigurations()
DShadowAppOpsManagerTest.java26 import android.media.AudioAttributes;
240 OP_VIBRATE, AudioAttributes.USAGE_NOTIFICATION, MODE_ERRORED, new String[] {PACKAGE_NAME1}); in setRestrictions()
243 shadowOf(appOps).getRestriction(OP_VIBRATE, AudioAttributes.USAGE_NOTIFICATION); in setRestrictions()
/external/oboe/apps/OboeTester/app/src/main/java/com/mobileer/miditools/synth/
DSimpleAudioOutput.java20 import android.media.AudioAttributes;
137 AudioAttributes.Builder attributesBuilder = new AudioAttributes.Builder() in createAudioTrack()
138 .setContentType(AudioAttributes.CONTENT_TYPE_MUSIC); in createAudioTrack()
145 AudioAttributes attributes = attributesBuilder.build(); in createAudioTrack()
DAudioLatencyTuner.java19 import android.media.AudioAttributes;
70 Field field = AudioAttributes.class.getField("FLAG_LOW_LATENCY"); in reflectAdvancedMethods()
71 mFlagLowLatency = field.getInt(AudioAttributes.class); in reflectAdvancedMethods()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowSystemVibrator.java12 import android.media.AudioAttributes;
54 …protected void vibrate(int uid, String opPkg, long[] pattern, int repeat, AudioAttributes attribut… in vibrate()
69 protected void vibrate(int uid, String opPkg, long milliseconds, AudioAttributes attributes) { in vibrate()
74 …protected void vibrate(int uid, String opPkg, VibrationEffect effect, AudioAttributes attributes) { in vibrate()
80 String reason, AudioAttributes attributes) { in vibrate()
DShadowAudioManager.java6 import android.media.AudioAttributes;
226 public void setActivePlaybackConfigurationsFor(List<AudioAttributes> audioAttributes) { in setActivePlaybackConfigurationsFor()
228 for (AudioAttributes audioAttribute : audioAttributes) { in setActivePlaybackConfigurationsFor()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/
DAudioFocusManager.java26 import com.google.android.exoplayer2.audio.AudioAttributes;
101 @Nullable private AudioAttributes audioAttributes;
139 public void setAudioAttributes(@Nullable AudioAttributes audioAttributes) { in setAudioAttributes()
264 private static int convertAudioAttributesToFocusGain(@Nullable AudioAttributes audioAttributes) { in convertAudioAttributesToFocusGain()
DPlayer.java27 import com.google.android.exoplayer2.audio.AudioAttributes;
102 void setAudioAttributes(AudioAttributes audioAttributes); in setAudioAttributes()
125 void setAudioAttributes(AudioAttributes audioAttributes, boolean handleAudioFocus); in setAudioAttributes()
128 AudioAttributes getAudioAttributes(); in getAudioAttributes()
DSimpleExoPlayer.java34 import com.google.android.exoplayer2.audio.AudioAttributes;
376 private AudioAttributes audioAttributes;
455 audioAttributes = AudioAttributes.DEFAULT; in SimpleExoPlayer()
691 public void setAudioAttributes(AudioAttributes audioAttributes) { in setAudioAttributes()
696 public void setAudioAttributes(AudioAttributes audioAttributes, boolean handleAudioFocus) { in setAudioAttributes()
727 public AudioAttributes getAudioAttributes() { in getAudioAttributes()
835 AudioAttributes audioAttributes = in setAudioStreamType()
836 new AudioAttributes.Builder().setUsage(usage).setContentType(contentType).build(); in setAudioStreamType()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/bluetooth/media/
DBluetoothMediaPlayback.java19 import android.media.AudioAttributes;
106 private AudioAttributes createAudioAttributes(int contentType, int usage) { in createAudioAttributes()
107 AudioAttributes.Builder builder = new AudioAttributes.Builder(); in createAudioAttributes()
/external/webrtc/sdk/android/src/java/org/webrtc/audio/
DWebRtcAudioTrack.java15 import android.media.AudioAttributes;
54 return AudioAttributes.USAGE_VOICE_COMMUNICATION; in getDefaultUsageAttribute()
398 return new AudioTrack(new AudioAttributes.Builder() in createAudioTrackOnLollipopOrHigher()
400 .setContentType(AudioAttributes.CONTENT_TYPE_SPEECH) in createAudioTrackOnLollipopOrHigher()
/external/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/
DWebRtcAudioTrack.java15 import android.media.AudioAttributes;
65 return AudioAttributes.USAGE_VOICE_COMMUNICATION; in getDefaultUsageAttribute()
407 new AudioAttributes.Builder() in createAudioTrackOnLollipopOrHigher()
409 .setContentType(AudioAttributes.CONTENT_TYPE_SPEECH) in createAudioTrackOnLollipopOrHigher()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/analytics/
DAnalyticsListener.java29 import com.google.android.exoplayer2.audio.AudioAttributes;
439 default void onAudioAttributesChanged(EventTime eventTime, AudioAttributes audioAttributes) {} in onAudioAttributesChanged()
/external/oboe/docs/
DFAQ.md14 …r API 24 or 25 use [`AudioAttributes.FLAG_LOW_LATENCY`](https://developer.android.com/reference/ko…
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DAction.java30 import com.google.android.exoplayer2.audio.AudioAttributes;
453 private final AudioAttributes audioAttributes;
462 String tag, AudioAttributes audioAttributes, boolean handleAudioFocus) { in SetAudioAttributes()
DActionSchedule.java28 import com.google.android.exoplayer2.audio.AudioAttributes;
328 public Builder setAudioAttributes(AudioAttributes audioAttributes, boolean handleAudioFocus) { in setAudioAttributes()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/util/
DEventLogger.java32 import com.google.android.exoplayer2.audio.AudioAttributes;
310 public void onAudioAttributesChanged(EventTime eventTime, AudioAttributes audioAttributes) { in onAudioAttributesChanged()

12