Home
last modified time | relevance | path

Searched refs:audioAttributes (Results 1 – 15 of 15) sorted by relevance

/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/
DAudioFocusManager.java101 @Nullable private AudioAttributes audioAttributes; field in AudioFocusManager
139 public void setAudioAttributes(@Nullable AudioAttributes audioAttributes) { in setAudioAttributes() argument
140 if (!Util.areEqual(this.audioAttributes, audioAttributes)) { in setAudioAttributes()
141 this.audioAttributes = audioAttributes; in setAudioAttributes()
142 focusGain = convertAudioAttributesToFocusGain(audioAttributes); in setAudioAttributes()
215 Util.getStreamTypeForAudioUsage(Assertions.checkNotNull(audioAttributes).usage), in requestAudioFocusDefault()
230 .setAudioAttributes(Assertions.checkNotNull(audioAttributes).getAudioAttributesV21()) in requestAudioFocusV26()
252 return audioAttributes != null && audioAttributes.contentType == C.CONTENT_TYPE_SPEECH; in willPauseWhenDucked()
264 private static int convertAudioAttributesToFocusGain(@Nullable AudioAttributes audioAttributes) { in convertAudioAttributesToFocusGain() argument
265 if (audioAttributes == null) { in convertAudioAttributesToFocusGain()
[all …]
DSimpleExoPlayer.java376 private AudioAttributes audioAttributes; field in SimpleExoPlayer
455 audioAttributes = AudioAttributes.DEFAULT; in SimpleExoPlayer()
691 public void setAudioAttributes(AudioAttributes audioAttributes) { in setAudioAttributes() argument
692 setAudioAttributes(audioAttributes, /* handleAudioFocus= */ false); in setAudioAttributes()
696 public void setAudioAttributes(AudioAttributes audioAttributes, boolean handleAudioFocus) { in setAudioAttributes() argument
701 if (!Util.areEqual(this.audioAttributes, audioAttributes)) { in setAudioAttributes()
702 this.audioAttributes = audioAttributes; in setAudioAttributes()
708 .setPayload(audioAttributes) in setAudioAttributes()
712 streamVolumeManager.setStreamType(Util.getStreamTypeForAudioUsage(audioAttributes.usage)); in setAudioAttributes()
714 audioListener.onAudioAttributesChanged(audioAttributes); in setAudioAttributes()
[all …]
DPlayer.java102 void setAudioAttributes(AudioAttributes audioAttributes); in setAudioAttributes() argument
125 void setAudioAttributes(AudioAttributes audioAttributes, boolean handleAudioFocus); in setAudioAttributes() argument
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/audio/
DDefaultAudioSink.java276 private AudioAttributes audioAttributes; field in DefaultAudioSink
375 audioAttributes = AudioAttributes.DEFAULT; in DefaultAudioSink()
537 .buildAudioTrack(tunneling, audioAttributes, audioSessionId); in initialize()
899 public void setAudioAttributes(AudioAttributes audioAttributes) { in setAudioAttributes() argument
900 if (this.audioAttributes.equals(audioAttributes)) { in setAudioAttributes()
903 this.audioAttributes = audioAttributes; in setAudioAttributes()
1491 boolean tunneling, AudioAttributes audioAttributes, int audioSessionId) in buildAudioTrack() argument
1495 audioTrack = createAudioTrackV21(tunneling, audioAttributes, audioSessionId); in buildAudioTrack()
1497 int streamType = Util.getStreamTypeForAudioUsage(audioAttributes.usage); in buildAudioTrack()
1536 boolean tunneling, AudioAttributes audioAttributes, int audioSessionId) { in createAudioTrackV21() argument
[all …]
DForwardingAudioSink.java138 public void setAudioAttributes(AudioAttributes audioAttributes) { in setAudioAttributes() argument
139 sink.setAudioAttributes(audioAttributes); in setAudioAttributes()
DAudioListener.java33 default void onAudioAttributesChanged(AudioAttributes audioAttributes) {} in onAudioAttributesChanged() argument
DAudioSink.java305 void setAudioAttributes(AudioAttributes audioAttributes); in setAudioAttributes() argument
DDecoderAudioRenderer.java562 AudioAttributes audioAttributes = (AudioAttributes) message; in handleMessage() local
563 audioSink.setAudioAttributes(audioAttributes); in handleMessage()
DMediaCodecAudioRenderer.java669 AudioAttributes audioAttributes = (AudioAttributes) message; in handleMessage() local
670 audioSink.setAudioAttributes(audioAttributes); in handleMessage()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowAudioManager.java226 public void setActivePlaybackConfigurationsFor(List<AudioAttributes> audioAttributes) { in setActivePlaybackConfigurationsFor() argument
227 activePlaybackConfigurations = new ArrayList<>(audioAttributes.size()); in setActivePlaybackConfigurationsFor()
228 for (AudioAttributes audioAttribute : audioAttributes) { in setActivePlaybackConfigurationsFor()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/util/
DEventLogger.java310 public void onAudioAttributesChanged(EventTime eventTime, AudioAttributes audioAttributes) { in onAudioAttributesChanged() argument
314 audioAttributes.contentType in onAudioAttributesChanged()
316 + audioAttributes.flags in onAudioAttributesChanged()
318 + audioAttributes.usage in onAudioAttributesChanged()
320 + audioAttributes.allowedCapturePolicy); in onAudioAttributesChanged()
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DAction.java453 private final AudioAttributes audioAttributes; field in Action.SetAudioAttributes
462 String tag, AudioAttributes audioAttributes, boolean handleAudioFocus) { in SetAudioAttributes() argument
464 this.audioAttributes = audioAttributes; in SetAudioAttributes()
471 player.setAudioAttributes(audioAttributes, handleAudioFocus); in doActionImpl()
DActionSchedule.java328 public Builder setAudioAttributes(AudioAttributes audioAttributes, boolean handleAudioFocus) { in setAudioAttributes() argument
329 return apply(new SetAudioAttributes(tag, audioAttributes, handleAudioFocus)); in setAudioAttributes()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/analytics/
DAnalyticsListener.java439 default void onAudioAttributesChanged(EventTime eventTime, AudioAttributes audioAttributes) {} in onAudioAttributesChanged() argument
DAnalyticsCollector.java215 public void onAudioAttributesChanged(AudioAttributes audioAttributes) { in onAudioAttributesChanged() argument
218 listener.onAudioAttributesChanged(eventTime, audioAttributes); in onAudioAttributesChanged()