132 lines
		
	
	
		
			4.5 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			132 lines
		
	
	
		
			4.5 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public final Lcom/google/android/exoplayer2/trackselection/AdaptiveTrackSelection$Factory;
 | |
| .super Ljava/lang/Object;
 | |
| .source "AdaptiveTrackSelection.java"
 | |
| 
 | |
| # interfaces
 | |
| .implements Lcom/google/android/exoplayer2/trackselection/TrackSelection$Factory;
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation system Ldalvik/annotation/EnclosingClass;
 | |
|     value = Lcom/google/android/exoplayer2/trackselection/AdaptiveTrackSelection;
 | |
| .end annotation
 | |
| 
 | |
| .annotation system Ldalvik/annotation/InnerClass;
 | |
|     accessFlags = 0x19
 | |
|     name = "Factory"
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # instance fields
 | |
| .field private final bandwidthFraction:F
 | |
| 
 | |
| .field private final bandwidthMeter:Lcom/google/android/exoplayer2/upstream/BandwidthMeter;
 | |
| 
 | |
| .field private final maxDurationForQualityDecreaseMs:I
 | |
| 
 | |
| .field private final maxInitialBitrate:I
 | |
| 
 | |
| .field private final minDurationForQualityIncreaseMs:I
 | |
| 
 | |
| .field private final minDurationToRetainAfterDiscardMs:I
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public constructor <init>(Lcom/google/android/exoplayer2/upstream/BandwidthMeter;)V
 | |
|     .locals 7
 | |
| 
 | |
|     const v2, 0xc3500
 | |
| 
 | |
|     const/16 v3, 0x2710
 | |
| 
 | |
|     const/16 v4, 0x61a8
 | |
| 
 | |
|     const/16 v5, 0x61a8
 | |
| 
 | |
|     const/high16 v6, 0x3f400000    # 0.75f
 | |
| 
 | |
|     move-object v0, p0
 | |
| 
 | |
|     move-object v1, p1
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct/range {v0 .. v6}, Lcom/google/android/exoplayer2/trackselection/AdaptiveTrackSelection$Factory;-><init>(Lcom/google/android/exoplayer2/upstream/BandwidthMeter;IIIIF)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public constructor <init>(Lcom/google/android/exoplayer2/upstream/BandwidthMeter;IIIIF)V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-direct {p0}, Ljava/lang/Object;-><init>()V
 | |
| 
 | |
|     .line 3
 | |
|     iput-object p1, p0, Lcom/google/android/exoplayer2/trackselection/AdaptiveTrackSelection$Factory;->bandwidthMeter:Lcom/google/android/exoplayer2/upstream/BandwidthMeter;
 | |
| 
 | |
|     .line 4
 | |
|     iput p2, p0, Lcom/google/android/exoplayer2/trackselection/AdaptiveTrackSelection$Factory;->maxInitialBitrate:I
 | |
| 
 | |
|     .line 5
 | |
|     iput p3, p0, Lcom/google/android/exoplayer2/trackselection/AdaptiveTrackSelection$Factory;->minDurationForQualityIncreaseMs:I
 | |
| 
 | |
|     .line 6
 | |
|     iput p4, p0, Lcom/google/android/exoplayer2/trackselection/AdaptiveTrackSelection$Factory;->maxDurationForQualityDecreaseMs:I
 | |
| 
 | |
|     .line 7
 | |
|     iput p5, p0, Lcom/google/android/exoplayer2/trackselection/AdaptiveTrackSelection$Factory;->minDurationToRetainAfterDiscardMs:I
 | |
| 
 | |
|     .line 8
 | |
|     iput p6, p0, Lcom/google/android/exoplayer2/trackselection/AdaptiveTrackSelection$Factory;->bandwidthFraction:F
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public varargs createTrackSelection(Lcom/google/android/exoplayer2/source/TrackGroup;[I)Lcom/google/android/exoplayer2/trackselection/AdaptiveTrackSelection;
 | |
|     .locals 13
 | |
| 
 | |
|     .line 2
 | |
|     new-instance v12, Lcom/google/android/exoplayer2/trackselection/AdaptiveTrackSelection;
 | |
| 
 | |
|     iget-object v3, p0, Lcom/google/android/exoplayer2/trackselection/AdaptiveTrackSelection$Factory;->bandwidthMeter:Lcom/google/android/exoplayer2/upstream/BandwidthMeter;
 | |
| 
 | |
|     iget v4, p0, Lcom/google/android/exoplayer2/trackselection/AdaptiveTrackSelection$Factory;->maxInitialBitrate:I
 | |
| 
 | |
|     iget v0, p0, Lcom/google/android/exoplayer2/trackselection/AdaptiveTrackSelection$Factory;->minDurationForQualityIncreaseMs:I
 | |
| 
 | |
|     int-to-long v5, v0
 | |
| 
 | |
|     iget v0, p0, Lcom/google/android/exoplayer2/trackselection/AdaptiveTrackSelection$Factory;->maxDurationForQualityDecreaseMs:I
 | |
| 
 | |
|     int-to-long v7, v0
 | |
| 
 | |
|     iget v0, p0, Lcom/google/android/exoplayer2/trackselection/AdaptiveTrackSelection$Factory;->minDurationToRetainAfterDiscardMs:I
 | |
| 
 | |
|     int-to-long v9, v0
 | |
| 
 | |
|     iget v11, p0, Lcom/google/android/exoplayer2/trackselection/AdaptiveTrackSelection$Factory;->bandwidthFraction:F
 | |
| 
 | |
|     move-object v0, v12
 | |
| 
 | |
|     move-object v1, p1
 | |
| 
 | |
|     move-object v2, p2
 | |
| 
 | |
|     invoke-direct/range {v0 .. v11}, Lcom/google/android/exoplayer2/trackselection/AdaptiveTrackSelection;-><init>(Lcom/google/android/exoplayer2/source/TrackGroup;[ILcom/google/android/exoplayer2/upstream/BandwidthMeter;IJJJF)V
 | |
| 
 | |
|     return-object v12
 | |
| .end method
 | |
| 
 | |
| .method public bridge synthetic createTrackSelection(Lcom/google/android/exoplayer2/source/TrackGroup;[I)Lcom/google/android/exoplayer2/trackselection/TrackSelection;
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0, p1, p2}, Lcom/google/android/exoplayer2/trackselection/AdaptiveTrackSelection$Factory;->createTrackSelection(Lcom/google/android/exoplayer2/source/TrackGroup;[I)Lcom/google/android/exoplayer2/trackselection/AdaptiveTrackSelection;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     return-object p1
 | |
| .end method
 |