366 lines
		
	
	
		
			11 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			366 lines
		
	
	
		
			11 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public final Lkotlinx/coroutines/internal/n0;
 | |
| .super Ljava/lang/Object;
 | |
| .source "ThreadContext.kt"
 | |
| 
 | |
| # interfaces
 | |
| .implements Lkotlinx/coroutines/b3;
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation system Ldalvik/annotation/Signature;
 | |
|     value = {
 | |
|         "<T:",
 | |
|         "Ljava/lang/Object;",
 | |
|         ">",
 | |
|         "Ljava/lang/Object;",
 | |
|         "Lkotlinx/coroutines/b3<",
 | |
|         "TT;>;"
 | |
|     }
 | |
| .end annotation
 | |
| 
 | |
| .annotation runtime Lkotlin/Metadata;
 | |
|     bv = {}
 | |
|     d1 = {
 | |
|         "\u0000:\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0004\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0010\u000e\n\u0002\u0008\u0008\n\u0002\u0018\u0002\n\u0002\u0008\u0006\u0008\u0000\u0018\u0000*\u0004\u0008\u0000\u0010\u00012\u0008\u0012\u0004\u0012\u00028\u00000\u0002B\u001d\u0012\u0006\u0010\u001a\u001a\u00028\u0000\u0012\u000c\u0010\u001e\u001a\u0008\u0012\u0004\u0012\u00028\u00000\u001b\u00a2\u0006\u0004\u0008\u001f\u0010 J\u0017\u0010\u0005\u001a\u00028\u00002\u0006\u0010\u0004\u001a\u00020\u0003H\u0016\u00a2\u0006\u0004\u0008\u0005\u0010\u0006J\u001f\u0010\t\u001a\u00020\u00082\u0006\u0010\u0004\u001a\u00020\u00032\u0006\u0010\u0007\u001a\u00028\u0000H\u0016\u00a2\u0006\u0004\u0008\t\u0010\nJ\u0014\u0010\r\u001a\u00020\u00032\n\u0010\u000c\u001a\u0006\u0012\u0002\u0008\u00030\u000bH\u0016J*\u0010\u0010\u001a\u0004\u0018\u00018\u0001\"\u0008\u0008\u0001\u0010\u000f*\u00020\u000e2\u000c\u0010\u000c\u001a\u0008\u0012\u0004\u0012\u00028\u00010\u000bH\u0096\u0002\u00a2\u0006\u0004\u0008\u0010\u0010\u0011J\u0008\u0010\u0013\u001a\u00020\u0012H\u0016R\u001e\u0010\u000c\u001a\u0006\u0012\u0002\u0008\u00030\u000b8\u0016X\u0096\u0004\u00a2\u0006\u000c\n\u0004\u0008\u0014\u0010\u0015\u001a\u0004\u0008\u0016\u0010\u0017R\u0014\u0010\u001a\u001a\u00028\u00008\u0002X\u0082\u0004\u00a2\u0006\u0006\n\u0004\u0008\u0018\u0010\u0019R\u001a\u0010\u001e\u001a\u0008\u0012\u0004\u0012\u00028\u00000\u001b8\u0002X\u0082\u0004\u00a2\u0006\u0006\n\u0004\u0008\u001c\u0010\u001d\u00a8\u0006!"
 | |
|     }
 | |
|     d2 = {
 | |
|         "Lkotlinx/coroutines/internal/n0;",
 | |
|         "T",
 | |
|         "Lkotlinx/coroutines/b3;",
 | |
|         "Lkotlin/coroutines/CoroutineContext;",
 | |
|         "context",
 | |
|         "B1",
 | |
|         "(Lkotlin/coroutines/CoroutineContext;)Ljava/lang/Object;",
 | |
|         "oldState",
 | |
|         "Lkotlin/d1;",
 | |
|         "a0",
 | |
|         "(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Object;)V",
 | |
|         "Lkotlin/coroutines/CoroutineContext$b;",
 | |
|         "key",
 | |
|         "minusKey",
 | |
|         "Lkotlin/coroutines/CoroutineContext$a;",
 | |
|         "E",
 | |
|         "get",
 | |
|         "(Lkotlin/coroutines/CoroutineContext$b;)Lkotlin/coroutines/CoroutineContext$a;",
 | |
|         "",
 | |
|         "toString",
 | |
|         "a",
 | |
|         "Lkotlin/coroutines/CoroutineContext$b;",
 | |
|         "getKey",
 | |
|         "()Lkotlin/coroutines/CoroutineContext$b;",
 | |
|         "b",
 | |
|         "Ljava/lang/Object;",
 | |
|         "value",
 | |
|         "Ljava/lang/ThreadLocal;",
 | |
|         "c",
 | |
|         "Ljava/lang/ThreadLocal;",
 | |
|         "threadLocal",
 | |
|         "<init>",
 | |
|         "(Ljava/lang/Object;Ljava/lang/ThreadLocal;)V",
 | |
|         "kotlinx-coroutines-core"
 | |
|     }
 | |
|     k = 0x1
 | |
|     mv = {
 | |
|         0x1,
 | |
|         0x4,
 | |
|         0x0
 | |
|     }
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # instance fields
 | |
| .field public final a:Lkotlin/coroutines/CoroutineContext$b;
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "Lkotlin/coroutines/CoroutineContext$b<",
 | |
|             "*>;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field public final b:Ljava/lang/Object;
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "TT;"
 | |
|         }
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field public final c:Ljava/lang/ThreadLocal;
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "Ljava/lang/ThreadLocal<",
 | |
|             "TT;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public constructor <init>(Ljava/lang/Object;Ljava/lang/ThreadLocal;)V
 | |
|     .locals 0
 | |
|     .param p2    # Ljava/lang/ThreadLocal;
 | |
|         .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(TT;",
 | |
|             "Ljava/lang/ThreadLocal<",
 | |
|             "TT;>;)V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Ljava/lang/Object;-><init>()V
 | |
| 
 | |
|     iput-object p1, p0, Lkotlinx/coroutines/internal/n0;->b:Ljava/lang/Object;
 | |
| 
 | |
|     iput-object p2, p0, Lkotlinx/coroutines/internal/n0;->c:Ljava/lang/ThreadLocal;
 | |
| 
 | |
|     .line 2
 | |
|     new-instance p1, Lkotlinx/coroutines/internal/o0;
 | |
| 
 | |
|     invoke-direct {p1, p2}, Lkotlinx/coroutines/internal/o0;-><init>(Ljava/lang/ThreadLocal;)V
 | |
| 
 | |
|     iput-object p1, p0, Lkotlinx/coroutines/internal/n0;->a:Lkotlin/coroutines/CoroutineContext$b;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public B1(Lkotlin/coroutines/CoroutineContext;)Ljava/lang/Object;
 | |
|     .locals 2
 | |
|     .param p1    # Lkotlin/coroutines/CoroutineContext;
 | |
|         .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Lkotlin/coroutines/CoroutineContext;",
 | |
|             ")TT;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object p1, p0, Lkotlinx/coroutines/internal/n0;->c:Ljava/lang/ThreadLocal;
 | |
| 
 | |
|     invoke-virtual {p1}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v0, p0, Lkotlinx/coroutines/internal/n0;->c:Ljava/lang/ThreadLocal;
 | |
| 
 | |
|     iget-object v1, p0, Lkotlinx/coroutines/internal/n0;->b:Ljava/lang/Object;
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Ljava/lang/ThreadLocal;->set(Ljava/lang/Object;)V
 | |
| 
 | |
|     return-object p1
 | |
| .end method
 | |
| 
 | |
| .method public a0(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Object;)V
 | |
|     .locals 0
 | |
|     .param p1    # Lkotlin/coroutines/CoroutineContext;
 | |
|         .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Lkotlin/coroutines/CoroutineContext;",
 | |
|             "TT;)V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object p1, p0, Lkotlinx/coroutines/internal/n0;->c:Ljava/lang/ThreadLocal;
 | |
| 
 | |
|     invoke-virtual {p1, p2}, Ljava/lang/ThreadLocal;->set(Ljava/lang/Object;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public fold(Ljava/lang/Object;Lej/p;)Ljava/lang/Object;
 | |
|     .locals 0
 | |
|     .param p2    # Lej/p;
 | |
|         .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "<R:",
 | |
|             "Ljava/lang/Object;",
 | |
|             ">(TR;",
 | |
|             "Lej/p<",
 | |
|             "-TR;-",
 | |
|             "Lkotlin/coroutines/CoroutineContext$a;",
 | |
|             "+TR;>;)TR;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p0, p1, p2}, Lkotlinx/coroutines/b3$a;->a(Lkotlinx/coroutines/b3;Ljava/lang/Object;Lej/p;)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     return-object p1
 | |
| .end method
 | |
| 
 | |
| .method public get(Lkotlin/coroutines/CoroutineContext$b;)Lkotlin/coroutines/CoroutineContext$a;
 | |
|     .locals 1
 | |
|     .param p1    # Lkotlin/coroutines/CoroutineContext$b;
 | |
|         .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "<E::",
 | |
|             "Lkotlin/coroutines/CoroutineContext$a;",
 | |
|             ">(",
 | |
|             "Lkotlin/coroutines/CoroutineContext$b<",
 | |
|             "TE;>;)TE;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation build Lorg/jetbrains/annotations/Nullable;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Lkotlinx/coroutines/internal/n0;->getKey()Lkotlin/coroutines/CoroutineContext$b;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-static {v0, p1}, Lkotlin/jvm/internal/f0;->g(Ljava/lang/Object;Ljava/lang/Object;)Z
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     if-eqz p1, :cond_0
 | |
| 
 | |
|     move-object p1, p0
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 p1, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     return-object p1
 | |
| .end method
 | |
| 
 | |
| .method public getKey()Lkotlin/coroutines/CoroutineContext$b;
 | |
|     .locals 1
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "()",
 | |
|             "Lkotlin/coroutines/CoroutineContext$b<",
 | |
|             "*>;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lkotlinx/coroutines/internal/n0;->a:Lkotlin/coroutines/CoroutineContext$b;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public minusKey(Lkotlin/coroutines/CoroutineContext$b;)Lkotlin/coroutines/CoroutineContext;
 | |
|     .locals 1
 | |
|     .param p1    # Lkotlin/coroutines/CoroutineContext$b;
 | |
|         .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Lkotlin/coroutines/CoroutineContext$b<",
 | |
|             "*>;)",
 | |
|             "Lkotlin/coroutines/CoroutineContext;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Lkotlinx/coroutines/internal/n0;->getKey()Lkotlin/coroutines/CoroutineContext$b;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-static {v0, p1}, Lkotlin/jvm/internal/f0;->g(Ljava/lang/Object;Ljava/lang/Object;)Z
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     if-eqz p1, :cond_0
 | |
| 
 | |
|     sget-object p1, Lkotlin/coroutines/EmptyCoroutineContext;->INSTANCE:Lkotlin/coroutines/EmptyCoroutineContext;
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     move-object p1, p0
 | |
| 
 | |
|     :goto_0
 | |
|     return-object p1
 | |
| .end method
 | |
| 
 | |
| .method public plus(Lkotlin/coroutines/CoroutineContext;)Lkotlin/coroutines/CoroutineContext;
 | |
|     .locals 0
 | |
|     .param p1    # Lkotlin/coroutines/CoroutineContext;
 | |
|         .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p0, p1}, Lkotlinx/coroutines/b3$a;->d(Lkotlinx/coroutines/b3;Lkotlin/coroutines/CoroutineContext;)Lkotlin/coroutines/CoroutineContext;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     return-object p1
 | |
| .end method
 | |
| 
 | |
| .method public toString()Ljava/lang/String;
 | |
|     .locals 2
 | |
|     .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|     .end annotation
 | |
| 
 | |
|     const-string v0, "ThreadLocal(value="
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {v0}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     iget-object v1, p0, Lkotlinx/coroutines/internal/n0;->b:Ljava/lang/Object;
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
 | |
| 
 | |
|     const-string v1, ", threadLocal = "
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
 | |
| 
 | |
|     iget-object v1, p0, Lkotlinx/coroutines/internal/n0;->c:Ljava/lang/ThreadLocal;
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
 | |
| 
 | |
|     const/16 v1, 0x29
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
 | |
| 
 | |
|     invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 |