170 lines
		
	
	
		
			4.3 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			170 lines
		
	
	
		
			4.3 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public final Lvj/b;
 | |
| .super Ljava/lang/Object;
 | |
| .source "TestCoroutineContext.kt"
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation system Ldalvik/annotation/SourceDebugExtension;
 | |
|     value = "SMAP\nTestCoroutineContext.kt\nKotlin\n*S Kotlin\n*F\n+ 1 TestCoroutineContext.kt\nkotlinx/coroutines/test/TestCoroutineContextKt\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,297:1\n1670#2,3:298\n*E\n*S KotlinDebug\n*F\n+ 1 TestCoroutineContext.kt\nkotlinx/coroutines/test/TestCoroutineContextKt\n*L\n292#1,3:298\n*E\n"
 | |
| .end annotation
 | |
| 
 | |
| .annotation runtime Lkotlin/Metadata;
 | |
|     bv = {}
 | |
|     d1 = {
 | |
|         "\u0000\u0016\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0003\u001a+\u0010\u0006\u001a\u00020\u00032\u0008\u0008\u0002\u0010\u0001\u001a\u00020\u00002\u0017\u0010\u0005\u001a\u0013\u0012\u0004\u0012\u00020\u0000\u0012\u0004\u0012\u00020\u00030\u0002\u00a2\u0006\u0002\u0008\u0004H\u0007\u00a8\u0006\u0007"
 | |
|     }
 | |
|     d2 = {
 | |
|         "Lvj/a;",
 | |
|         "testContext",
 | |
|         "Lkotlin/Function1;",
 | |
|         "Lkotlin/d1;",
 | |
|         "Lkotlin/ExtensionFunctionType;",
 | |
|         "testBody",
 | |
|         "a",
 | |
|         "kotlinx-coroutines-core"
 | |
|     }
 | |
|     k = 0x2
 | |
|     mv = {
 | |
|         0x1,
 | |
|         0x4,
 | |
|         0x0
 | |
|     }
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public static final a(Lvj/a;Lej/l;)V
 | |
|     .locals 2
 | |
|     .param p0    # Lvj/a;
 | |
|         .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p1    # Lej/l;
 | |
|         .annotation build Lorg/jetbrains/annotations/NotNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Lvj/a;",
 | |
|             "Lej/l<",
 | |
|             "-",
 | |
|             "Lvj/a;",
 | |
|             "Lkotlin/d1;",
 | |
|             ">;)V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation runtime Lkotlin/Deprecated;
 | |
|         level = .enum Lkotlin/DeprecationLevel;->WARNING:Lkotlin/DeprecationLevel;
 | |
|         message = "This API has been deprecated to integrate with Structured Concurrency."
 | |
|         replaceWith = .subannotation Lkotlin/ReplaceWith;
 | |
|             expression = "testContext.runBlockingTest(testBody)"
 | |
|             imports = {
 | |
|                 "kotlin.coroutines.test"
 | |
|             }
 | |
|         .end subannotation
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-interface {p1, p0}, Lej/l;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0}, Lvj/a;->A()Ljava/util/List;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     .line 3
 | |
|     instance-of v0, p1, Ljava/util/Collection;
 | |
| 
 | |
|     const/4 v1, 0x1
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     invoke-interface {p1}, Ljava/util/Collection;->isEmpty()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 4
 | |
|     :cond_0
 | |
|     invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     :cond_1
 | |
|     invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_2
 | |
| 
 | |
|     invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     check-cast v0, Ljava/lang/Throwable;
 | |
| 
 | |
|     .line 5
 | |
|     instance-of v0, v0, Ljava/util/concurrent/CancellationException;
 | |
| 
 | |
|     if-nez v0, :cond_1
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     :cond_2
 | |
|     :goto_0
 | |
|     if-eqz v1, :cond_3
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 6
 | |
|     :cond_3
 | |
|     new-instance p1, Ljava/lang/AssertionError;
 | |
| 
 | |
|     const-string v0, "Coroutine encountered unhandled exceptions:\n"
 | |
| 
 | |
|     invoke-static {v0}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {p0}, Lvj/a;->A()Ljava/util/List;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
 | |
| 
 | |
|     invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     invoke-direct {p1, p0}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
 | |
| 
 | |
|     throw p1
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic b(Lvj/a;Lej/l;ILjava/lang/Object;)V
 | |
|     .locals 0
 | |
| 
 | |
|     const/4 p3, 0x1
 | |
| 
 | |
|     and-int/2addr p2, p3
 | |
| 
 | |
|     if-eqz p2, :cond_0
 | |
| 
 | |
|     .line 1
 | |
|     new-instance p0, Lvj/a;
 | |
| 
 | |
|     const/4 p2, 0x0
 | |
| 
 | |
|     invoke-direct {p0, p2, p3, p2}, Lvj/a;-><init>(Ljava/lang/String;ILkotlin/jvm/internal/u;)V
 | |
| 
 | |
|     :cond_0
 | |
|     invoke-static {p0, p1}, Lvj/b;->a(Lvj/a;Lej/l;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 |