180 lines
		
	
	
		
			5.4 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			180 lines
		
	
	
		
			5.4 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public final Lcom/google/common/util/concurrent/Callables;
 | |
| .super Ljava/lang/Object;
 | |
| .source "Callables.java"
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation build Lcom/google/common/annotations/GwtCompatible;
 | |
|     emulated = true
 | |
| .end annotation
 | |
| 
 | |
| .annotation runtime Lcom/google/common/util/concurrent/ElementTypesAreNonnullByDefault;
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method private constructor <init>()V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Ljava/lang/Object;-><init>()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic access$000(Ljava/lang/String;Ljava/lang/Thread;)Z
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p0, p1}, Lcom/google/common/util/concurrent/Callables;->trySetName(Ljava/lang/String;Ljava/lang/Thread;)Z
 | |
| 
 | |
|     move-result p0
 | |
| 
 | |
|     return p0
 | |
| .end method
 | |
| 
 | |
| .method public static asAsyncCallable(Ljava/util/concurrent/Callable;Lcom/google/common/util/concurrent/ListeningExecutorService;)Lcom/google/common/util/concurrent/AsyncCallable;
 | |
|     .locals 1
 | |
|     .annotation build Lcom/google/common/annotations/Beta;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation build Lcom/google/common/annotations/GwtIncompatible;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "<T:",
 | |
|             "Ljava/lang/Object;",
 | |
|             ">(",
 | |
|             "Ljava/util/concurrent/Callable<",
 | |
|             "TT;>;",
 | |
|             "Lcom/google/common/util/concurrent/ListeningExecutorService;",
 | |
|             ")",
 | |
|             "Lcom/google/common/util/concurrent/AsyncCallable<",
 | |
|             "TT;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
 | |
| 
 | |
|     .line 2
 | |
|     invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
 | |
| 
 | |
|     .line 3
 | |
|     new-instance v0, Lcom/google/common/util/concurrent/Callables$2;
 | |
| 
 | |
|     invoke-direct {v0, p1, p0}, Lcom/google/common/util/concurrent/Callables$2;-><init>(Lcom/google/common/util/concurrent/ListeningExecutorService;Ljava/util/concurrent/Callable;)V
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static returning(Ljava/lang/Object;)Ljava/util/concurrent/Callable;
 | |
|     .locals 1
 | |
|     .param p0    # Ljava/lang/Object;
 | |
|         .annotation runtime Lcom/google/common/util/concurrent/ParametricNullness;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "<T:",
 | |
|             "Ljava/lang/Object;",
 | |
|             ">(TT;)",
 | |
|             "Ljava/util/concurrent/Callable<",
 | |
|             "TT;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Lcom/google/common/util/concurrent/Callables$1;
 | |
| 
 | |
|     invoke-direct {v0, p0}, Lcom/google/common/util/concurrent/Callables$1;-><init>(Ljava/lang/Object;)V
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static threadRenaming(Ljava/lang/Runnable;Lcom/google/common/base/Supplier;)Ljava/lang/Runnable;
 | |
|     .locals 1
 | |
|     .annotation build Lcom/google/common/annotations/GwtIncompatible;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Ljava/lang/Runnable;",
 | |
|             "Lcom/google/common/base/Supplier<",
 | |
|             "Ljava/lang/String;",
 | |
|             ">;)",
 | |
|             "Ljava/lang/Runnable;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 4
 | |
|     invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
 | |
| 
 | |
|     .line 5
 | |
|     invoke-static {p0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
 | |
| 
 | |
|     .line 6
 | |
|     new-instance v0, Lcom/google/common/util/concurrent/Callables$4;
 | |
| 
 | |
|     invoke-direct {v0, p1, p0}, Lcom/google/common/util/concurrent/Callables$4;-><init>(Lcom/google/common/base/Supplier;Ljava/lang/Runnable;)V
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static threadRenaming(Ljava/util/concurrent/Callable;Lcom/google/common/base/Supplier;)Ljava/util/concurrent/Callable;
 | |
|     .locals 1
 | |
|     .annotation build Lcom/google/common/annotations/GwtIncompatible;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "<T:",
 | |
|             "Ljava/lang/Object;",
 | |
|             ">(",
 | |
|             "Ljava/util/concurrent/Callable<",
 | |
|             "TT;>;",
 | |
|             "Lcom/google/common/base/Supplier<",
 | |
|             "Ljava/lang/String;",
 | |
|             ">;)",
 | |
|             "Ljava/util/concurrent/Callable<",
 | |
|             "TT;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
 | |
| 
 | |
|     .line 2
 | |
|     invoke-static {p0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
 | |
| 
 | |
|     .line 3
 | |
|     new-instance v0, Lcom/google/common/util/concurrent/Callables$3;
 | |
| 
 | |
|     invoke-direct {v0, p1, p0}, Lcom/google/common/util/concurrent/Callables$3;-><init>(Lcom/google/common/base/Supplier;Ljava/util/concurrent/Callable;)V
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method private static trySetName(Ljava/lang/String;Ljava/lang/Thread;)Z
 | |
|     .locals 0
 | |
|     .annotation build Lcom/google/common/annotations/GwtIncompatible;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     :try_start_0
 | |
|     invoke-virtual {p1, p0}, Ljava/lang/Thread;->setName(Ljava/lang/String;)V
 | |
|     :try_end_0
 | |
|     .catch Ljava/lang/SecurityException; {:try_start_0 .. :try_end_0} :catch_0
 | |
| 
 | |
|     const/4 p0, 0x1
 | |
| 
 | |
|     return p0
 | |
| 
 | |
|     :catch_0
 | |
|     const/4 p0, 0x0
 | |
| 
 | |
|     return p0
 | |
| .end method
 |