@Test public void testSetParameterWithSameParametersDoesNotNotifyInvalidationListenerAgain() throws Exception { ParametersBuilder builder = Parameters.DEFAULT.buildUpon().setPreferredAudioLanguage("eng"); trackSelector.setParameters(builder.build()); trackSelector.setParameters(builder.build()); verify(invalidationListener, times(1)).onTrackSelectionsInvalidated(); }
public void setParameters(Parameters parameters) { Assertions.checkNotNull(parameters); if (!parametersReference.getAndSet(parameters).equals(parameters)) { invalidate(); } }
DefaultTrackSelector extends MappingTrackSelector { public void setParameters(Parameters parameters) { Assertions.checkNotNull(parameters); if (!parametersReference.getAndSet(parameters).equals(parameters)) { invalidate(); } } }
DefaultTrackSelector extends MappingTrackSelector { public void setParameters(Parameters parameters) { Assertions.checkNotNull(parameters); if (!parametersReference.getAndSet(parameters).equals(parameters)) { invalidate(); } } DefaultTrackSelector(); @Deprecated @SuppressWarnings("deprecation")  DefaultTrackSelector(BandwidthMeter bandwidthMeter);  DefaultTrackSelector(TrackSelection.Factory trackSelectionFactory); }
DefaultTrackSelector extends MappingTrackSelector { public void setParameters(Parameters parameters) { Assertions.checkNotNull(parameters); if (!parametersReference.getAndSet(parameters).equals(parameters)) { invalidate(); } } DefaultTrackSelector(); @Deprecated @SuppressWarnings("deprecation")  DefaultTrackSelector(BandwidthMeter bandwidthMeter);  DefaultTrackSelector(TrackSelection.Factory trackSelectionFactory); void setParameters(Parameters parameters); void setParameters(ParametersBuilder parametersBuilder); Parameters getParameters(); ParametersBuilder buildUponParameters(); @Deprecated final void setRendererDisabled(int rendererIndex, boolean disabled); @Deprecated final boolean getRendererDisabled(int rendererIndex); @Deprecated final void setSelectionOverride(
      int rendererIndex, TrackGroupArray groups, SelectionOverride override); @Deprecated final boolean hasSelectionOverride(int rendererIndex, TrackGroupArray groups); @Deprecated @Nullable final SelectionOverride getSelectionOverride(int rendererIndex, TrackGroupArray groups); @Deprecated final void clearSelectionOverride(int rendererIndex, TrackGroupArray groups); @Deprecated final void clearSelectionOverrides(int rendererIndex); @Deprecated final void clearSelectionOverrides(); @Deprecated void setTunnelingAudioSessionId(int tunnelingAudioSessionId); void experimental_allowMultipleAdaptiveSelections(); }
DefaultTrackSelector extends MappingTrackSelector { public void setParameters(Parameters parameters) { Assertions.checkNotNull(parameters); if (!parametersReference.getAndSet(parameters).equals(parameters)) { invalidate(); } } DefaultTrackSelector(); @Deprecated @SuppressWarnings("deprecation")  DefaultTrackSelector(BandwidthMeter bandwidthMeter);  DefaultTrackSelector(TrackSelection.Factory trackSelectionFactory); void setParameters(Parameters parameters); void setParameters(ParametersBuilder parametersBuilder); Parameters getParameters(); ParametersBuilder buildUponParameters(); @Deprecated final void setRendererDisabled(int rendererIndex, boolean disabled); @Deprecated final boolean getRendererDisabled(int rendererIndex); @Deprecated final void setSelectionOverride(
      int rendererIndex, TrackGroupArray groups, SelectionOverride override); @Deprecated final boolean hasSelectionOverride(int rendererIndex, TrackGroupArray groups); @Deprecated @Nullable final SelectionOverride getSelectionOverride(int rendererIndex, TrackGroupArray groups); @Deprecated final void clearSelectionOverride(int rendererIndex, TrackGroupArray groups); @Deprecated final void clearSelectionOverrides(int rendererIndex); @Deprecated final void clearSelectionOverrides(); @Deprecated void setTunnelingAudioSessionId(int tunnelingAudioSessionId); void experimental_allowMultipleAdaptiveSelections();  }