514 lines
		
	
	
		
			13 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			514 lines
		
	
	
		
			13 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public final Lio/reactivex/internal/operators/observable/ObservableRefCount;
 | |
| .super Lkh/z;
 | |
| .source "ObservableRefCount.java"
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation system Ldalvik/annotation/MemberClasses;
 | |
|     value = {
 | |
|         Lio/reactivex/internal/operators/observable/ObservableRefCount$RefCountObserver;,
 | |
|         Lio/reactivex/internal/operators/observable/ObservableRefCount$RefConnection;
 | |
|     }
 | |
| .end annotation
 | |
| 
 | |
| .annotation system Ldalvik/annotation/Signature;
 | |
|     value = {
 | |
|         "<T:",
 | |
|         "Ljava/lang/Object;",
 | |
|         ">",
 | |
|         "Lkh/z<",
 | |
|         "TT;>;"
 | |
|     }
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # instance fields
 | |
| .field public final a:Luh/a;
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "Luh/a<",
 | |
|             "TT;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field public final b:I
 | |
| 
 | |
| .field public final c:J
 | |
| 
 | |
| .field public final d:Ljava/util/concurrent/TimeUnit;
 | |
| 
 | |
| .field public final e:Lkh/h0;
 | |
| 
 | |
| .field public f:Lio/reactivex/internal/operators/observable/ObservableRefCount$RefConnection;
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public constructor <init>(Luh/a;)V
 | |
|     .locals 7
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Luh/a<",
 | |
|             "TT;>;)V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     sget-object v5, Ljava/util/concurrent/TimeUnit;->NANOSECONDS:Ljava/util/concurrent/TimeUnit;
 | |
| 
 | |
|     invoke-static {}, Lli/b;->i()Lkh/h0;
 | |
| 
 | |
|     move-result-object v6
 | |
| 
 | |
|     const/4 v2, 0x1
 | |
| 
 | |
|     const-wide/16 v3, 0x0
 | |
| 
 | |
|     move-object v0, p0
 | |
| 
 | |
|     move-object v1, p1
 | |
| 
 | |
|     invoke-direct/range {v0 .. v6}, Lio/reactivex/internal/operators/observable/ObservableRefCount;-><init>(Luh/a;IJLjava/util/concurrent/TimeUnit;Lkh/h0;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public constructor <init>(Luh/a;IJLjava/util/concurrent/TimeUnit;Lkh/h0;)V
 | |
|     .locals 0
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Luh/a<",
 | |
|             "TT;>;IJ",
 | |
|             "Ljava/util/concurrent/TimeUnit;",
 | |
|             "Lkh/h0;",
 | |
|             ")V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 2
 | |
|     invoke-direct {p0}, Lkh/z;-><init>()V
 | |
| 
 | |
|     .line 3
 | |
|     iput-object p1, p0, Lio/reactivex/internal/operators/observable/ObservableRefCount;->a:Luh/a;
 | |
| 
 | |
|     .line 4
 | |
|     iput p2, p0, Lio/reactivex/internal/operators/observable/ObservableRefCount;->b:I
 | |
| 
 | |
|     .line 5
 | |
|     iput-wide p3, p0, Lio/reactivex/internal/operators/observable/ObservableRefCount;->c:J
 | |
| 
 | |
|     .line 6
 | |
|     iput-object p5, p0, Lio/reactivex/internal/operators/observable/ObservableRefCount;->d:Ljava/util/concurrent/TimeUnit;
 | |
| 
 | |
|     .line 7
 | |
|     iput-object p6, p0, Lio/reactivex/internal/operators/observable/ObservableRefCount;->e:Lkh/h0;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public b(Lio/reactivex/internal/operators/observable/ObservableRefCount$RefConnection;)V
 | |
|     .locals 5
 | |
| 
 | |
|     .line 1
 | |
|     monitor-enter p0
 | |
| 
 | |
|     .line 2
 | |
|     :try_start_0
 | |
|     iget-object v0, p0, Lio/reactivex/internal/operators/observable/ObservableRefCount;->f:Lio/reactivex/internal/operators/observable/ObservableRefCount$RefConnection;
 | |
| 
 | |
|     if-eqz v0, :cond_4
 | |
| 
 | |
|     if-eq v0, p1, :cond_0
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     .line 3
 | |
|     :cond_0
 | |
|     iget-wide v0, p1, Lio/reactivex/internal/operators/observable/ObservableRefCount$RefConnection;->subscriberCount:J
 | |
| 
 | |
|     const-wide/16 v2, 0x1
 | |
| 
 | |
|     sub-long/2addr v0, v2
 | |
| 
 | |
|     .line 4
 | |
|     iput-wide v0, p1, Lio/reactivex/internal/operators/observable/ObservableRefCount$RefConnection;->subscriberCount:J
 | |
| 
 | |
|     const-wide/16 v2, 0x0
 | |
| 
 | |
|     cmp-long v0, v0, v2
 | |
| 
 | |
|     if-nez v0, :cond_3
 | |
| 
 | |
|     .line 5
 | |
|     iget-boolean v0, p1, Lio/reactivex/internal/operators/observable/ObservableRefCount$RefConnection;->connected:Z
 | |
| 
 | |
|     if-nez v0, :cond_1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 6
 | |
|     :cond_1
 | |
|     iget-wide v0, p0, Lio/reactivex/internal/operators/observable/ObservableRefCount;->c:J
 | |
| 
 | |
|     cmp-long v0, v0, v2
 | |
| 
 | |
|     if-nez v0, :cond_2
 | |
| 
 | |
|     .line 7
 | |
|     invoke-virtual {p0, p1}, Lio/reactivex/internal/operators/observable/ObservableRefCount;->d(Lio/reactivex/internal/operators/observable/ObservableRefCount$RefConnection;)V
 | |
| 
 | |
|     .line 8
 | |
|     monitor-exit p0
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 9
 | |
|     :cond_2
 | |
|     new-instance v0, Lio/reactivex/internal/disposables/SequentialDisposable;
 | |
| 
 | |
|     invoke-direct {v0}, Lio/reactivex/internal/disposables/SequentialDisposable;-><init>()V
 | |
| 
 | |
|     .line 10
 | |
|     iput-object v0, p1, Lio/reactivex/internal/operators/observable/ObservableRefCount$RefConnection;->timer:Lio/reactivex/disposables/b;
 | |
| 
 | |
|     .line 11
 | |
|     monitor-exit p0
 | |
|     :try_end_0
 | |
|     .catchall {:try_start_0 .. :try_end_0} :catchall_0
 | |
| 
 | |
|     .line 12
 | |
|     iget-object v1, p0, Lio/reactivex/internal/operators/observable/ObservableRefCount;->e:Lkh/h0;
 | |
| 
 | |
|     iget-wide v2, p0, Lio/reactivex/internal/operators/observable/ObservableRefCount;->c:J
 | |
| 
 | |
|     iget-object v4, p0, Lio/reactivex/internal/operators/observable/ObservableRefCount;->d:Ljava/util/concurrent/TimeUnit;
 | |
| 
 | |
|     invoke-virtual {v1, p1, v2, v3, v4}, Lkh/h0;->f(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Lio/reactivex/disposables/b;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Lio/reactivex/internal/disposables/SequentialDisposable;->replace(Lio/reactivex/disposables/b;)Z
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 13
 | |
|     :cond_3
 | |
|     :goto_0
 | |
|     :try_start_1
 | |
|     monitor-exit p0
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 14
 | |
|     :cond_4
 | |
|     :goto_1
 | |
|     monitor-exit p0
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     :catchall_0
 | |
|     move-exception p1
 | |
| 
 | |
|     .line 15
 | |
|     monitor-exit p0
 | |
|     :try_end_1
 | |
|     .catchall {:try_start_1 .. :try_end_1} :catchall_0
 | |
| 
 | |
|     throw p1
 | |
| .end method
 | |
| 
 | |
| .method public c(Lio/reactivex/internal/operators/observable/ObservableRefCount$RefConnection;)V
 | |
|     .locals 4
 | |
| 
 | |
|     .line 1
 | |
|     monitor-enter p0
 | |
| 
 | |
|     .line 2
 | |
|     :try_start_0
 | |
|     iget-object v0, p0, Lio/reactivex/internal/operators/observable/ObservableRefCount;->f:Lio/reactivex/internal/operators/observable/ObservableRefCount$RefConnection;
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     if-ne v0, p1, :cond_0
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 3
 | |
|     iput-object v0, p0, Lio/reactivex/internal/operators/observable/ObservableRefCount;->f:Lio/reactivex/internal/operators/observable/ObservableRefCount$RefConnection;
 | |
| 
 | |
|     .line 4
 | |
|     iget-object v0, p1, Lio/reactivex/internal/operators/observable/ObservableRefCount$RefConnection;->timer:Lio/reactivex/disposables/b;
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 5
 | |
|     invoke-interface {v0}, Lio/reactivex/disposables/b;->dispose()V
 | |
| 
 | |
|     .line 6
 | |
|     :cond_0
 | |
|     iget-wide v0, p1, Lio/reactivex/internal/operators/observable/ObservableRefCount$RefConnection;->subscriberCount:J
 | |
| 
 | |
|     const-wide/16 v2, 0x1
 | |
| 
 | |
|     sub-long/2addr v0, v2
 | |
| 
 | |
|     iput-wide v0, p1, Lio/reactivex/internal/operators/observable/ObservableRefCount$RefConnection;->subscriberCount:J
 | |
| 
 | |
|     const-wide/16 v2, 0x0
 | |
| 
 | |
|     cmp-long v0, v0, v2
 | |
| 
 | |
|     if-nez v0, :cond_2
 | |
| 
 | |
|     .line 7
 | |
|     iget-object v0, p0, Lio/reactivex/internal/operators/observable/ObservableRefCount;->a:Luh/a;
 | |
| 
 | |
|     instance-of v1, v0, Lio/reactivex/disposables/b;
 | |
| 
 | |
|     if-eqz v1, :cond_1
 | |
| 
 | |
|     .line 8
 | |
|     check-cast v0, Lio/reactivex/disposables/b;
 | |
| 
 | |
|     invoke-interface {v0}, Lio/reactivex/disposables/b;->dispose()V
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 9
 | |
|     :cond_1
 | |
|     instance-of v1, v0, Lqh/c;
 | |
| 
 | |
|     if-eqz v1, :cond_2
 | |
| 
 | |
|     .line 10
 | |
|     check-cast v0, Lqh/c;
 | |
| 
 | |
|     invoke-virtual {p1}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     check-cast p1, Lio/reactivex/disposables/b;
 | |
| 
 | |
|     invoke-interface {v0, p1}, Lqh/c;->a(Lio/reactivex/disposables/b;)V
 | |
| 
 | |
|     .line 11
 | |
|     :cond_2
 | |
|     :goto_0
 | |
|     monitor-exit p0
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     :catchall_0
 | |
|     move-exception p1
 | |
| 
 | |
|     monitor-exit p0
 | |
|     :try_end_0
 | |
|     .catchall {:try_start_0 .. :try_end_0} :catchall_0
 | |
| 
 | |
|     throw p1
 | |
| .end method
 | |
| 
 | |
| .method public d(Lio/reactivex/internal/operators/observable/ObservableRefCount$RefConnection;)V
 | |
|     .locals 4
 | |
| 
 | |
|     .line 1
 | |
|     monitor-enter p0
 | |
| 
 | |
|     .line 2
 | |
|     :try_start_0
 | |
|     iget-wide v0, p1, Lio/reactivex/internal/operators/observable/ObservableRefCount$RefConnection;->subscriberCount:J
 | |
| 
 | |
|     const-wide/16 v2, 0x0
 | |
| 
 | |
|     cmp-long v0, v0, v2
 | |
| 
 | |
|     if-nez v0, :cond_2
 | |
| 
 | |
|     iget-object v0, p0, Lio/reactivex/internal/operators/observable/ObservableRefCount;->f:Lio/reactivex/internal/operators/observable/ObservableRefCount$RefConnection;
 | |
| 
 | |
|     if-ne p1, v0, :cond_2
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 3
 | |
|     iput-object v0, p0, Lio/reactivex/internal/operators/observable/ObservableRefCount;->f:Lio/reactivex/internal/operators/observable/ObservableRefCount$RefConnection;
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p1}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     check-cast v0, Lio/reactivex/disposables/b;
 | |
| 
 | |
|     .line 5
 | |
|     invoke-static {p1}, Lio/reactivex/internal/disposables/DisposableHelper;->dispose(Ljava/util/concurrent/atomic/AtomicReference;)Z
 | |
| 
 | |
|     .line 6
 | |
|     iget-object v1, p0, Lio/reactivex/internal/operators/observable/ObservableRefCount;->a:Luh/a;
 | |
| 
 | |
|     instance-of v2, v1, Lio/reactivex/disposables/b;
 | |
| 
 | |
|     if-eqz v2, :cond_0
 | |
| 
 | |
|     .line 7
 | |
|     check-cast v1, Lio/reactivex/disposables/b;
 | |
| 
 | |
|     invoke-interface {v1}, Lio/reactivex/disposables/b;->dispose()V
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 8
 | |
|     :cond_0
 | |
|     instance-of v2, v1, Lqh/c;
 | |
| 
 | |
|     if-eqz v2, :cond_2
 | |
| 
 | |
|     if-nez v0, :cond_1
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     .line 9
 | |
|     iput-boolean v0, p1, Lio/reactivex/internal/operators/observable/ObservableRefCount$RefConnection;->disconnectedEarly:Z
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 10
 | |
|     :cond_1
 | |
|     check-cast v1, Lqh/c;
 | |
| 
 | |
|     invoke-interface {v1, v0}, Lqh/c;->a(Lio/reactivex/disposables/b;)V
 | |
| 
 | |
|     .line 11
 | |
|     :cond_2
 | |
|     :goto_0
 | |
|     monitor-exit p0
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     :catchall_0
 | |
|     move-exception p1
 | |
| 
 | |
|     monitor-exit p0
 | |
|     :try_end_0
 | |
|     .catchall {:try_start_0 .. :try_end_0} :catchall_0
 | |
| 
 | |
|     throw p1
 | |
| .end method
 | |
| 
 | |
| .method public subscribeActual(Lkh/g0;)V
 | |
|     .locals 7
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Lkh/g0<",
 | |
|             "-TT;>;)V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     monitor-enter p0
 | |
| 
 | |
|     .line 2
 | |
|     :try_start_0
 | |
|     iget-object v0, p0, Lio/reactivex/internal/operators/observable/ObservableRefCount;->f:Lio/reactivex/internal/operators/observable/ObservableRefCount$RefConnection;
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     .line 3
 | |
|     new-instance v0, Lio/reactivex/internal/operators/observable/ObservableRefCount$RefConnection;
 | |
| 
 | |
|     invoke-direct {v0, p0}, Lio/reactivex/internal/operators/observable/ObservableRefCount$RefConnection;-><init>(Lio/reactivex/internal/operators/observable/ObservableRefCount;)V
 | |
| 
 | |
|     .line 4
 | |
|     iput-object v0, p0, Lio/reactivex/internal/operators/observable/ObservableRefCount;->f:Lio/reactivex/internal/operators/observable/ObservableRefCount$RefConnection;
 | |
| 
 | |
|     .line 5
 | |
|     :cond_0
 | |
|     iget-wide v1, v0, Lio/reactivex/internal/operators/observable/ObservableRefCount$RefConnection;->subscriberCount:J
 | |
| 
 | |
|     const-wide/16 v3, 0x0
 | |
| 
 | |
|     cmp-long v3, v1, v3
 | |
| 
 | |
|     if-nez v3, :cond_1
 | |
| 
 | |
|     .line 6
 | |
|     iget-object v3, v0, Lio/reactivex/internal/operators/observable/ObservableRefCount$RefConnection;->timer:Lio/reactivex/disposables/b;
 | |
| 
 | |
|     if-eqz v3, :cond_1
 | |
| 
 | |
|     .line 7
 | |
|     invoke-interface {v3}, Lio/reactivex/disposables/b;->dispose()V
 | |
| 
 | |
|     :cond_1
 | |
|     const-wide/16 v3, 0x1
 | |
| 
 | |
|     add-long/2addr v1, v3
 | |
| 
 | |
|     .line 8
 | |
|     iput-wide v1, v0, Lio/reactivex/internal/operators/observable/ObservableRefCount$RefConnection;->subscriberCount:J
 | |
| 
 | |
|     .line 9
 | |
|     iget-boolean v3, v0, Lio/reactivex/internal/operators/observable/ObservableRefCount$RefConnection;->connected:Z
 | |
| 
 | |
|     const/4 v4, 0x1
 | |
| 
 | |
|     if-nez v3, :cond_2
 | |
| 
 | |
|     iget v3, p0, Lio/reactivex/internal/operators/observable/ObservableRefCount;->b:I
 | |
| 
 | |
|     int-to-long v5, v3
 | |
| 
 | |
|     cmp-long v1, v1, v5
 | |
| 
 | |
|     if-nez v1, :cond_2
 | |
| 
 | |
|     .line 10
 | |
|     iput-boolean v4, v0, Lio/reactivex/internal/operators/observable/ObservableRefCount$RefConnection;->connected:Z
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_2
 | |
|     const/4 v4, 0x0
 | |
| 
 | |
|     .line 11
 | |
|     :goto_0
 | |
|     monitor-exit p0
 | |
|     :try_end_0
 | |
|     .catchall {:try_start_0 .. :try_end_0} :catchall_0
 | |
| 
 | |
|     .line 12
 | |
|     iget-object v1, p0, Lio/reactivex/internal/operators/observable/ObservableRefCount;->a:Luh/a;
 | |
| 
 | |
|     new-instance v2, Lio/reactivex/internal/operators/observable/ObservableRefCount$RefCountObserver;
 | |
| 
 | |
|     invoke-direct {v2, p1, p0, v0}, Lio/reactivex/internal/operators/observable/ObservableRefCount$RefCountObserver;-><init>(Lkh/g0;Lio/reactivex/internal/operators/observable/ObservableRefCount;Lio/reactivex/internal/operators/observable/ObservableRefCount$RefConnection;)V
 | |
| 
 | |
|     invoke-virtual {v1, v2}, Lkh/z;->subscribe(Lkh/g0;)V
 | |
| 
 | |
|     if-eqz v4, :cond_3
 | |
| 
 | |
|     .line 13
 | |
|     iget-object p1, p0, Lio/reactivex/internal/operators/observable/ObservableRefCount;->a:Luh/a;
 | |
| 
 | |
|     invoke-virtual {p1, v0}, Luh/a;->f(Lph/g;)V
 | |
| 
 | |
|     :cond_3
 | |
|     return-void
 | |
| 
 | |
|     :catchall_0
 | |
|     move-exception p1
 | |
| 
 | |
|     .line 14
 | |
|     :try_start_1
 | |
|     monitor-exit p0
 | |
|     :try_end_1
 | |
|     .catchall {:try_start_1 .. :try_end_1} :catchall_0
 | |
| 
 | |
|     throw p1
 | |
| .end method
 |