301 lines
		
	
	
		
			6.4 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			301 lines
		
	
	
		
			6.4 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class final Lio/reactivex/internal/operators/observable/ObservableRange$RangeDisposable;
 | |
| .super Lio/reactivex/internal/observers/BasicIntQueueDisposable;
 | |
| .source "ObservableRange.java"
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation system Ldalvik/annotation/EnclosingClass;
 | |
|     value = Lio/reactivex/internal/operators/observable/ObservableRange;
 | |
| .end annotation
 | |
| 
 | |
| .annotation system Ldalvik/annotation/InnerClass;
 | |
|     accessFlags = 0x19
 | |
|     name = "RangeDisposable"
 | |
| .end annotation
 | |
| 
 | |
| .annotation system Ldalvik/annotation/Signature;
 | |
|     value = {
 | |
|         "Lio/reactivex/internal/observers/BasicIntQueueDisposable<",
 | |
|         "Ljava/lang/Integer;",
 | |
|         ">;"
 | |
|     }
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # static fields
 | |
| .field private static final serialVersionUID:J = 0x580b77479f42190L
 | |
| 
 | |
| 
 | |
| # instance fields
 | |
| .field public final downstream:Lkh/g0;
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "Lkh/g0<",
 | |
|             "-",
 | |
|             "Ljava/lang/Integer;",
 | |
|             ">;"
 | |
|         }
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field public final end:J
 | |
| 
 | |
| .field public fused:Z
 | |
| 
 | |
| .field public index:J
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public constructor <init>(Lkh/g0;JJ)V
 | |
|     .locals 0
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Lkh/g0<",
 | |
|             "-",
 | |
|             "Ljava/lang/Integer;",
 | |
|             ">;JJ)V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Lio/reactivex/internal/observers/BasicIntQueueDisposable;-><init>()V
 | |
| 
 | |
|     .line 2
 | |
|     iput-object p1, p0, Lio/reactivex/internal/operators/observable/ObservableRange$RangeDisposable;->downstream:Lkh/g0;
 | |
| 
 | |
|     .line 3
 | |
|     iput-wide p2, p0, Lio/reactivex/internal/operators/observable/ObservableRange$RangeDisposable;->index:J
 | |
| 
 | |
|     .line 4
 | |
|     iput-wide p4, p0, Lio/reactivex/internal/operators/observable/ObservableRange$RangeDisposable;->end:J
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public clear()V
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     iget-wide v0, p0, Lio/reactivex/internal/operators/observable/ObservableRange$RangeDisposable;->end:J
 | |
| 
 | |
|     iput-wide v0, p0, Lio/reactivex/internal/operators/observable/ObservableRange$RangeDisposable;->index:J
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0, v0}, Ljava/util/concurrent/atomic/AtomicInteger;->lazySet(I)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public dispose()V
 | |
|     .locals 1
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0, v0}, Ljava/util/concurrent/atomic/AtomicInteger;->set(I)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public isDisposed()Z
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public isEmpty()Z
 | |
|     .locals 4
 | |
| 
 | |
|     .line 1
 | |
|     iget-wide v0, p0, Lio/reactivex/internal/operators/observable/ObservableRange$RangeDisposable;->index:J
 | |
| 
 | |
|     iget-wide v2, p0, Lio/reactivex/internal/operators/observable/ObservableRange$RangeDisposable;->end:J
 | |
| 
 | |
|     cmp-long v0, v0, v2
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public poll()Ljava/lang/Integer;
 | |
|     .locals 4
 | |
|     .annotation system Ldalvik/annotation/Throws;
 | |
|         value = {
 | |
|             Ljava/lang/Exception;
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation build Lio/reactivex/annotations/Nullable;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 2
 | |
|     iget-wide v0, p0, Lio/reactivex/internal/operators/observable/ObservableRange$RangeDisposable;->index:J
 | |
| 
 | |
|     .line 3
 | |
|     iget-wide v2, p0, Lio/reactivex/internal/operators/observable/ObservableRange$RangeDisposable;->end:J
 | |
| 
 | |
|     cmp-long v2, v0, v2
 | |
| 
 | |
|     if-eqz v2, :cond_0
 | |
| 
 | |
|     const-wide/16 v2, 0x1
 | |
| 
 | |
|     add-long/2addr v2, v0
 | |
| 
 | |
|     .line 4
 | |
|     iput-wide v2, p0, Lio/reactivex/internal/operators/observable/ObservableRange$RangeDisposable;->index:J
 | |
| 
 | |
|     long-to-int v0, v0
 | |
| 
 | |
|     .line 5
 | |
|     invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     return-object v0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     .line 6
 | |
|     invoke-virtual {p0, v0}, Ljava/util/concurrent/atomic/AtomicInteger;->lazySet(I)V
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public bridge synthetic poll()Ljava/lang/Object;
 | |
|     .locals 1
 | |
|     .annotation system Ldalvik/annotation/Throws;
 | |
|         value = {
 | |
|             Ljava/lang/Exception;
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation build Lio/reactivex/annotations/Nullable;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Lio/reactivex/internal/operators/observable/ObservableRange$RangeDisposable;->poll()Ljava/lang/Integer;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public requestFusion(I)I
 | |
|     .locals 1
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     and-int/2addr p1, v0
 | |
| 
 | |
|     if-eqz p1, :cond_0
 | |
| 
 | |
|     .line 1
 | |
|     iput-boolean v0, p0, Lio/reactivex/internal/operators/observable/ObservableRange$RangeDisposable;->fused:Z
 | |
| 
 | |
|     return v0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 p1, 0x0
 | |
| 
 | |
|     return p1
 | |
| .end method
 | |
| 
 | |
| .method public run()V
 | |
|     .locals 7
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p0, Lio/reactivex/internal/operators/observable/ObservableRange$RangeDisposable;->fused:Z
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 2
 | |
|     :cond_0
 | |
|     iget-object v0, p0, Lio/reactivex/internal/operators/observable/ObservableRange$RangeDisposable;->downstream:Lkh/g0;
 | |
| 
 | |
|     .line 3
 | |
|     iget-wide v1, p0, Lio/reactivex/internal/operators/observable/ObservableRange$RangeDisposable;->end:J
 | |
| 
 | |
|     .line 4
 | |
|     iget-wide v3, p0, Lio/reactivex/internal/operators/observable/ObservableRange$RangeDisposable;->index:J
 | |
| 
 | |
|     :goto_0
 | |
|     cmp-long v5, v3, v1
 | |
| 
 | |
|     if-eqz v5, :cond_1
 | |
| 
 | |
|     invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I
 | |
| 
 | |
|     move-result v5
 | |
| 
 | |
|     if-nez v5, :cond_1
 | |
| 
 | |
|     long-to-int v5, v3
 | |
| 
 | |
|     .line 5
 | |
|     invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
 | |
| 
 | |
|     move-result-object v5
 | |
| 
 | |
|     invoke-interface {v0, v5}, Lkh/g0;->onNext(Ljava/lang/Object;)V
 | |
| 
 | |
|     const-wide/16 v5, 0x1
 | |
| 
 | |
|     add-long/2addr v3, v5
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 6
 | |
|     :cond_1
 | |
|     invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-nez v1, :cond_2
 | |
| 
 | |
|     const/4 v1, 0x1
 | |
| 
 | |
|     .line 7
 | |
|     invoke-virtual {p0, v1}, Ljava/util/concurrent/atomic/AtomicInteger;->lazySet(I)V
 | |
| 
 | |
|     .line 8
 | |
|     invoke-interface {v0}, Lkh/g0;->onComplete()V
 | |
| 
 | |
|     :cond_2
 | |
|     return-void
 | |
| .end method
 |