@Test @SuppressWarnings("deprecation") public void defaultInitialBitrateEstimate_withoutContext_isReasonable() { DefaultBandwidthMeter bandwidthMeterWithBuilder = new DefaultBandwidthMeter.Builder( null).build(); long initialEstimateWithBuilder = bandwidthMeterWithBuilder.getBitrateEstimate(); DefaultBandwidthMeter bandwidthMeterWithoutBuilder = new DefaultBandwidthMeter(); long initialEstimateWithoutBuilder = bandwidthMeterWithoutBuilder.getBitrateEstimate(); assertThat(initialEstimateWithBuilder).isGreaterThan(100_000L); assertThat(initialEstimateWithBuilder).isLessThan(50_000_000L); assertThat(initialEstimateWithoutBuilder).isGreaterThan(100_000L); assertThat(initialEstimateWithoutBuilder).isLessThan(50_000_000L); }
@Override public synchronized long getBitrateEstimate() { return bitrateEstimate; }
DefaultBandwidthMeter implements BandwidthMeter, TransferListener { @Override public synchronized long getBitrateEstimate() { return bitrateEstimate; } }
DefaultBandwidthMeter implements BandwidthMeter, TransferListener { @Override public synchronized long getBitrateEstimate() { return bitrateEstimate; } @Deprecated  DefaultBandwidthMeter(); private  DefaultBandwidthMeter(
      @Nullable Context context,
      SparseArray<Long> initialBitrateEstimates,
      int maxWeight,
      Clock clock,
      boolean resetOnNetworkTypeChange); }
DefaultBandwidthMeter implements BandwidthMeter, TransferListener { @Override public synchronized long getBitrateEstimate() { return bitrateEstimate; } @Deprecated  DefaultBandwidthMeter(); private  DefaultBandwidthMeter(
      @Nullable Context context,
      SparseArray<Long> initialBitrateEstimates,
      int maxWeight,
      Clock clock,
      boolean resetOnNetworkTypeChange); synchronized void setNetworkTypeOverride(@C.NetworkType int networkType); @Override synchronized long getBitrateEstimate(); @Override @Nullable TransferListener getTransferListener(); @Override void addEventListener(Handler eventHandler, EventListener eventListener); @Override void removeEventListener(EventListener eventListener); @Override void onTransferInitializing(DataSource source, DataSpec dataSpec, boolean isNetwork); @Override synchronized void onTransferStart(
      DataSource source, DataSpec dataSpec, boolean isNetwork); @Override synchronized void onBytesTransferred(
      DataSource source, DataSpec dataSpec, boolean isNetwork, int bytes); @Override synchronized void onTransferEnd(DataSource source, DataSpec dataSpec, boolean isNetwork); }
DefaultBandwidthMeter implements BandwidthMeter, TransferListener { @Override public synchronized long getBitrateEstimate() { return bitrateEstimate; } @Deprecated  DefaultBandwidthMeter(); private  DefaultBandwidthMeter(
      @Nullable Context context,
      SparseArray<Long> initialBitrateEstimates,
      int maxWeight,
      Clock clock,
      boolean resetOnNetworkTypeChange); synchronized void setNetworkTypeOverride(@C.NetworkType int networkType); @Override synchronized long getBitrateEstimate(); @Override @Nullable TransferListener getTransferListener(); @Override void addEventListener(Handler eventHandler, EventListener eventListener); @Override void removeEventListener(EventListener eventListener); @Override void onTransferInitializing(DataSource source, DataSpec dataSpec, boolean isNetwork); @Override synchronized void onTransferStart(
      DataSource source, DataSpec dataSpec, boolean isNetwork); @Override synchronized void onBytesTransferred(
      DataSource source, DataSpec dataSpec, boolean isNetwork, int bytes); @Override synchronized void onTransferEnd(DataSource source, DataSpec dataSpec, boolean isNetwork); static final Map<String, int[]> DEFAULT_INITIAL_BITRATE_COUNTRY_GROUPS; static final long[] DEFAULT_INITIAL_BITRATE_ESTIMATES_WIFI; static final long[] DEFAULT_INITIAL_BITRATE_ESTIMATES_2G; static final long[] DEFAULT_INITIAL_BITRATE_ESTIMATES_3G; static final long[] DEFAULT_INITIAL_BITRATE_ESTIMATES_4G; static final long DEFAULT_INITIAL_BITRATE_ESTIMATE; static final int DEFAULT_SLIDING_WINDOW_MAX_WEIGHT; }