* Decompile and recreate Soul Browser v1.4.85 with APK CI builds Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix CI build: include bundled google.jks and remove PR trigger The apktool build failed in CI because app/unknown/.../google.jks was excluded by the *.jks gitignore rule. Whitelist app-bundled JKS files and commit the missing resource. Also remove the redundant pull_request workflow trigger. Co-authored-by: KaKi87 <KaKi87@pm.me> * Change package ID to com.github.kaki87.soulbrowser Rename the application ID so the rebuilt APK can be installed alongside the original Soul Browser from Google Play. - Update AndroidManifest package, permissions, providers, and actions - Update R class references in smali (com/github/kaki87/soulbrowser/R) - Update shortcuts.xml targetPackage - Rename app label to "Soul Rebuild" for easy identification Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix install compatibility: remove split APK metadata and bundle native libs The rebuilt APK still declared requiredSplitTypes and Play Store split metadata, causing Android to reject standalone installs as incompatible. - Remove requiredSplitTypes and split-related manifest meta-data - Merge native libs from all ABI splits with uncompressed storage - Page-align before signing for extractNativeLibs=false - Add .so to apktool doNotCompress list Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix install failure: use apksigner v2/v3 and bundle arm64 native libs Target SDK 36 requires APK Signature Scheme v2+, but jarsigner only produces v1 signatures, causing Android to reject the install. - Sign with apksigner (v1+v2+v3) instead of jarsigner - Add arm64-v8a native libraries from universal Soul Browser 1.4.79 - Set extractNativeLibs=true for reliable sideload installs - Commit stable debug keystore for consistent signatures across builds Co-authored-by: KaKi87 <KaKi87@pm.me> * Add committed debug keystore for consistent APK signatures Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix startup crash: use original classes2.dex desugar libraries Apktool recompiles smali_classes2 into a broken classes2.dex, causing ClassNotFoundException for j$.com.android.tools.r8.a at ML Kit init. Inject the original classes2.dex (Java 8+ desugar libs) after apktool build instead of using the recompiled version. Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix missing drawable resources from density split APKs The base APK is an app bundle module; density-specific drawables like seek_thumb_nor_b live in config.xhdpi.apk and were missing after rebuild, causing Resources$NotFoundException at runtime. - Merge non-9-patch resources from split APKs before apktool build - Sync public.xml IDs from R smali only when backing files exist - Add 713 density-specific resource IDs to public.xml Co-authored-by: KaKi87 <KaKi87@pm.me> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
3192 lines
71 KiB
Smali
3192 lines
71 KiB
Smali
.class public abstract Lcom/google/common/util/concurrent/AbstractFuture;
|
|
.super Lcom/google/common/util/concurrent/AbstractFutureState;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation build Lcom/google/common/annotations/GwtCompatible;
|
|
.end annotation
|
|
|
|
.annotation build Lcom/google/j2objc/annotations/ReflectionSupport;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/google/common/util/concurrent/AbstractFuture$DelegatingToFuture;,
|
|
Lcom/google/common/util/concurrent/AbstractFuture$Cancellation;,
|
|
Lcom/google/common/util/concurrent/AbstractFuture$Failure;,
|
|
Lcom/google/common/util/concurrent/AbstractFuture$Trusted;,
|
|
Lcom/google/common/util/concurrent/AbstractFuture$Listener;,
|
|
Lcom/google/common/util/concurrent/AbstractFuture$TrustedFuture;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<V:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Lcom/google/common/util/concurrent/AbstractFutureState<",
|
|
"TV;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public static f(Lcom/google/common/util/concurrent/AbstractFuture;Z)V
|
|
.locals 6
|
|
|
|
.line 1
|
|
const/4 v0, 0x0
|
|
|
|
.line 2
|
|
move-object v1, v0
|
|
|
|
.line 3
|
|
:goto_0
|
|
sget-object v2, Lcom/google/common/util/concurrent/AbstractFutureState;->k:Lcom/google/common/util/concurrent/AbstractFutureState$AtomicHelper;
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {v2, p0}, Lcom/google/common/util/concurrent/AbstractFutureState$AtomicHelper;->e(Lcom/google/common/util/concurrent/AbstractFuture;)Lcom/google/common/util/concurrent/AbstractFutureState$Waiter;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object v2
|
|
|
|
.line 9
|
|
:goto_1
|
|
if-eqz v2, :cond_1
|
|
|
|
.line 10
|
|
.line 11
|
|
iget-object v3, v2, Lcom/google/common/util/concurrent/AbstractFutureState$Waiter;->a:Ljava/lang/Thread;
|
|
|
|
.line 12
|
|
.line 13
|
|
if-eqz v3, :cond_0
|
|
|
|
.line 14
|
|
.line 15
|
|
iput-object v0, v2, Lcom/google/common/util/concurrent/AbstractFutureState$Waiter;->a:Ljava/lang/Thread;
|
|
|
|
.line 16
|
|
.line 17
|
|
invoke-static {v3}, Ljava/util/concurrent/locks/LockSupport;->unpark(Ljava/lang/Thread;)V
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
:cond_0
|
|
iget-object v2, v2, Lcom/google/common/util/concurrent/AbstractFutureState$Waiter;->b:Lcom/google/common/util/concurrent/AbstractFutureState$Waiter;
|
|
|
|
.line 21
|
|
.line 22
|
|
goto :goto_1
|
|
|
|
.line 23
|
|
:cond_1
|
|
if-eqz p1, :cond_2
|
|
|
|
.line 24
|
|
.line 25
|
|
invoke-virtual {p0}, Lcom/google/common/util/concurrent/AbstractFuture;->j()V
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
const/4 p1, 0x0
|
|
|
|
.line 29
|
|
:cond_2
|
|
invoke-virtual {p0}, Lcom/google/common/util/concurrent/AbstractFuture;->d()V
|
|
|
|
.line 30
|
|
.line 31
|
|
.line 32
|
|
sget-object v2, Lcom/google/common/util/concurrent/AbstractFutureState;->k:Lcom/google/common/util/concurrent/AbstractFutureState$AtomicHelper;
|
|
|
|
.line 33
|
|
.line 34
|
|
invoke-virtual {v2, p0}, Lcom/google/common/util/concurrent/AbstractFutureState$AtomicHelper;->d(Lcom/google/common/util/concurrent/AbstractFuture;)Lcom/google/common/util/concurrent/AbstractFuture$Listener;
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
move-result-object p0
|
|
|
|
.line 38
|
|
move-object v5, v1
|
|
|
|
.line 39
|
|
move-object v1, p0
|
|
|
|
.line 40
|
|
move-object p0, v5
|
|
|
|
.line 41
|
|
:goto_2
|
|
if-eqz v1, :cond_3
|
|
|
|
.line 42
|
|
.line 43
|
|
iget-object v2, v1, Lcom/google/common/util/concurrent/AbstractFuture$Listener;->c:Lcom/google/common/util/concurrent/AbstractFuture$Listener;
|
|
|
|
.line 44
|
|
.line 45
|
|
iput-object p0, v1, Lcom/google/common/util/concurrent/AbstractFuture$Listener;->c:Lcom/google/common/util/concurrent/AbstractFuture$Listener;
|
|
|
|
.line 46
|
|
.line 47
|
|
move-object p0, v1
|
|
|
|
.line 48
|
|
move-object v1, v2
|
|
|
|
.line 49
|
|
goto :goto_2
|
|
|
|
.line 50
|
|
:cond_3
|
|
:goto_3
|
|
if-eqz p0, :cond_6
|
|
|
|
.line 51
|
|
.line 52
|
|
iget-object v1, p0, Lcom/google/common/util/concurrent/AbstractFuture$Listener;->c:Lcom/google/common/util/concurrent/AbstractFuture$Listener;
|
|
|
|
.line 53
|
|
.line 54
|
|
iget-object v2, p0, Lcom/google/common/util/concurrent/AbstractFuture$Listener;->a:Ljava/lang/Runnable;
|
|
|
|
.line 55
|
|
.line 56
|
|
invoke-static {v2}, Lj$/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 57
|
|
.line 58
|
|
.line 59
|
|
instance-of v3, v2, Lcom/google/common/util/concurrent/AbstractFuture$DelegatingToFuture;
|
|
|
|
.line 60
|
|
.line 61
|
|
if-eqz v3, :cond_4
|
|
|
|
.line 62
|
|
.line 63
|
|
check-cast v2, Lcom/google/common/util/concurrent/AbstractFuture$DelegatingToFuture;
|
|
|
|
.line 64
|
|
.line 65
|
|
iget-object p0, v2, Lcom/google/common/util/concurrent/AbstractFuture$DelegatingToFuture;->c:Lcom/google/common/util/concurrent/AbstractFuture;
|
|
|
|
.line 66
|
|
.line 67
|
|
iget-object v3, p0, Lcom/google/common/util/concurrent/AbstractFutureState;->c:Ljava/lang/Object;
|
|
|
|
.line 68
|
|
.line 69
|
|
if-ne v3, v2, :cond_5
|
|
|
|
.line 70
|
|
.line 71
|
|
iget-object v3, v2, Lcom/google/common/util/concurrent/AbstractFuture$DelegatingToFuture;->f:Lcom/google/common/util/concurrent/ListenableFuture;
|
|
|
|
.line 72
|
|
.line 73
|
|
invoke-static {v3}, Lcom/google/common/util/concurrent/AbstractFuture;->i(Lcom/google/common/util/concurrent/ListenableFuture;)Ljava/lang/Object;
|
|
|
|
.line 74
|
|
.line 75
|
|
.line 76
|
|
move-result-object v3
|
|
|
|
.line 77
|
|
sget-object v4, Lcom/google/common/util/concurrent/AbstractFutureState;->k:Lcom/google/common/util/concurrent/AbstractFutureState$AtomicHelper;
|
|
|
|
.line 78
|
|
.line 79
|
|
invoke-virtual {v4, p0, v2, v3}, Lcom/google/common/util/concurrent/AbstractFutureState$AtomicHelper;->b(Lcom/google/common/util/concurrent/AbstractFutureState;Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
.line 80
|
|
.line 81
|
|
.line 82
|
|
move-result v2
|
|
|
|
.line 83
|
|
if-eqz v2, :cond_5
|
|
|
|
.line 84
|
|
.line 85
|
|
goto :goto_0
|
|
|
|
.line 86
|
|
:cond_4
|
|
iget-object p0, p0, Lcom/google/common/util/concurrent/AbstractFuture$Listener;->b:Ljava/util/concurrent/Executor;
|
|
|
|
.line 87
|
|
.line 88
|
|
invoke-static {p0}, Lj$/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 89
|
|
.line 90
|
|
.line 91
|
|
invoke-static {v2, p0}, Lcom/google/common/util/concurrent/AbstractFuture;->g(Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)V
|
|
|
|
.line 92
|
|
.line 93
|
|
.line 94
|
|
:cond_5
|
|
move-object p0, v1
|
|
|
|
.line 95
|
|
goto :goto_3
|
|
|
|
.line 96
|
|
:cond_6
|
|
return-void
|
|
.end method
|
|
|
|
.method public static g(Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)V
|
|
.locals 5
|
|
|
|
.line 1
|
|
:try_start_0
|
|
invoke-interface {p1, p0}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
return-void
|
|
|
|
.line 5
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
.line 6
|
|
sget-object v1, Lcom/google/common/util/concurrent/AbstractFutureState;->i:Lcom/google/common/util/concurrent/LazyLogger;
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-virtual {v1}, Lcom/google/common/util/concurrent/LazyLogger;->a()Ljava/util/logging/Logger;
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
move-result-object v1
|
|
|
|
.line 12
|
|
sget-object v2, Ljava/util/logging/Level;->SEVERE:Ljava/util/logging/Level;
|
|
|
|
.line 13
|
|
.line 14
|
|
new-instance v3, Ljava/lang/StringBuilder;
|
|
|
|
.line 15
|
|
.line 16
|
|
const-string v4, "RuntimeException while executing runnable "
|
|
|
|
.line 17
|
|
.line 18
|
|
invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
invoke-virtual {v3, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
const-string p0, " with executor "
|
|
|
|
.line 25
|
|
.line 26
|
|
invoke-virtual {v3, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
.line 30
|
|
.line 31
|
|
.line 32
|
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 33
|
|
.line 34
|
|
.line 35
|
|
move-result-object p0
|
|
|
|
.line 36
|
|
invoke-virtual {v1, v2, p0, v0}, Ljava/util/logging/Logger;->log(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
.line 37
|
|
.line 38
|
|
.line 39
|
|
return-void
|
|
.end method
|
|
|
|
.method public static h(Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 2
|
|
|
|
.line 1
|
|
instance-of v0, p0, Lcom/google/common/util/concurrent/AbstractFuture$Cancellation;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_2
|
|
|
|
.line 4
|
|
.line 5
|
|
instance-of v0, p0, Lcom/google/common/util/concurrent/AbstractFuture$Failure;
|
|
|
|
.line 6
|
|
.line 7
|
|
if-nez v0, :cond_1
|
|
|
|
.line 8
|
|
.line 9
|
|
sget-object v0, Lcom/google/common/util/concurrent/AbstractFutureState;->h:Ljava/lang/Object;
|
|
|
|
.line 10
|
|
.line 11
|
|
if-ne p0, v0, :cond_0
|
|
|
|
.line 12
|
|
.line 13
|
|
const/4 p0, 0x0
|
|
|
|
.line 14
|
|
:cond_0
|
|
return-object p0
|
|
|
|
.line 15
|
|
:cond_1
|
|
check-cast p0, Lcom/google/common/util/concurrent/AbstractFuture$Failure;
|
|
|
|
.line 16
|
|
.line 17
|
|
iget-object p0, p0, Lcom/google/common/util/concurrent/AbstractFuture$Failure;->a:Ljava/lang/Throwable;
|
|
|
|
.line 18
|
|
.line 19
|
|
new-instance v0, Ljava/util/concurrent/ExecutionException;
|
|
|
|
.line 20
|
|
.line 21
|
|
invoke-direct {v0, p0}, Ljava/util/concurrent/ExecutionException;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
throw v0
|
|
|
|
.line 25
|
|
:cond_2
|
|
check-cast p0, Lcom/google/common/util/concurrent/AbstractFuture$Cancellation;
|
|
|
|
.line 26
|
|
.line 27
|
|
iget-object p0, p0, Lcom/google/common/util/concurrent/AbstractFuture$Cancellation;->b:Ljava/lang/Throwable;
|
|
|
|
.line 28
|
|
.line 29
|
|
new-instance v0, Ljava/util/concurrent/CancellationException;
|
|
|
|
.line 30
|
|
.line 31
|
|
const-string v1, "Task was cancelled."
|
|
|
|
.line 32
|
|
.line 33
|
|
invoke-direct {v0, v1}, Ljava/util/concurrent/CancellationException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 34
|
|
.line 35
|
|
.line 36
|
|
invoke-virtual {v0, p0}, Ljava/lang/Throwable;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
|
|
|
|
.line 37
|
|
.line 38
|
|
.line 39
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static i(Lcom/google/common/util/concurrent/ListenableFuture;)Ljava/lang/Object;
|
|
.locals 6
|
|
|
|
.line 1
|
|
const-string v0, "get() did not throw CancellationException, despite reporting isCancelled() == true: "
|
|
|
|
.line 2
|
|
.line 3
|
|
instance-of v1, p0, Lcom/google/common/util/concurrent/AbstractFuture$Trusted;
|
|
|
|
.line 4
|
|
.line 5
|
|
const/4 v2, 0x0
|
|
|
|
.line 6
|
|
if-eqz v1, :cond_2
|
|
|
|
.line 7
|
|
.line 8
|
|
check-cast p0, Lcom/google/common/util/concurrent/AbstractFuture;
|
|
|
|
.line 9
|
|
.line 10
|
|
iget-object p0, p0, Lcom/google/common/util/concurrent/AbstractFutureState;->c:Ljava/lang/Object;
|
|
|
|
.line 11
|
|
.line 12
|
|
instance-of v0, p0, Lcom/google/common/util/concurrent/AbstractFuture$Cancellation;
|
|
|
|
.line 13
|
|
.line 14
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 15
|
|
.line 16
|
|
move-object v0, p0
|
|
|
|
.line 17
|
|
check-cast v0, Lcom/google/common/util/concurrent/AbstractFuture$Cancellation;
|
|
|
|
.line 18
|
|
.line 19
|
|
iget-boolean v1, v0, Lcom/google/common/util/concurrent/AbstractFuture$Cancellation;->a:Z
|
|
|
|
.line 20
|
|
.line 21
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 22
|
|
.line 23
|
|
iget-object p0, v0, Lcom/google/common/util/concurrent/AbstractFuture$Cancellation;->b:Ljava/lang/Throwable;
|
|
|
|
.line 24
|
|
.line 25
|
|
if-eqz p0, :cond_0
|
|
|
|
.line 26
|
|
.line 27
|
|
new-instance p0, Lcom/google/common/util/concurrent/AbstractFuture$Cancellation;
|
|
|
|
.line 28
|
|
.line 29
|
|
iget-object v0, v0, Lcom/google/common/util/concurrent/AbstractFuture$Cancellation;->b:Ljava/lang/Throwable;
|
|
|
|
.line 30
|
|
.line 31
|
|
invoke-direct {p0, v0, v2}, Lcom/google/common/util/concurrent/AbstractFuture$Cancellation;-><init>(Ljava/lang/Throwable;Z)V
|
|
|
|
.line 32
|
|
.line 33
|
|
.line 34
|
|
goto :goto_0
|
|
|
|
.line 35
|
|
:cond_0
|
|
sget-object p0, Lcom/google/common/util/concurrent/AbstractFuture$Cancellation;->d:Lcom/google/common/util/concurrent/AbstractFuture$Cancellation;
|
|
|
|
.line 36
|
|
.line 37
|
|
:cond_1
|
|
:goto_0
|
|
invoke-static {p0}, Lj$/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 38
|
|
.line 39
|
|
.line 40
|
|
return-object p0
|
|
|
|
.line 41
|
|
:cond_2
|
|
instance-of v1, p0, Lcom/google/common/util/concurrent/internal/InternalFutureFailureAccess;
|
|
|
|
.line 42
|
|
.line 43
|
|
if-eqz v1, :cond_3
|
|
|
|
.line 44
|
|
.line 45
|
|
move-object v1, p0
|
|
|
|
.line 46
|
|
check-cast v1, Lcom/google/common/util/concurrent/internal/InternalFutureFailureAccess;
|
|
|
|
.line 47
|
|
.line 48
|
|
invoke-virtual {v1}, Lcom/google/common/util/concurrent/internal/InternalFutureFailureAccess;->a()Ljava/lang/Throwable;
|
|
|
|
.line 49
|
|
.line 50
|
|
.line 51
|
|
move-result-object v1
|
|
|
|
.line 52
|
|
if-eqz v1, :cond_3
|
|
|
|
.line 53
|
|
.line 54
|
|
new-instance p0, Lcom/google/common/util/concurrent/AbstractFuture$Failure;
|
|
|
|
.line 55
|
|
.line 56
|
|
invoke-direct {p0, v1}, Lcom/google/common/util/concurrent/AbstractFuture$Failure;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
.line 57
|
|
.line 58
|
|
.line 59
|
|
return-object p0
|
|
|
|
.line 60
|
|
:cond_3
|
|
invoke-interface {p0}, Ljava/util/concurrent/Future;->isCancelled()Z
|
|
|
|
.line 61
|
|
.line 62
|
|
.line 63
|
|
move-result v1
|
|
|
|
.line 64
|
|
sget-boolean v3, Lcom/google/common/util/concurrent/AbstractFutureState;->j:Z
|
|
|
|
.line 65
|
|
.line 66
|
|
const/4 v4, 0x1
|
|
|
|
.line 67
|
|
xor-int/2addr v3, v4
|
|
|
|
.line 68
|
|
and-int/2addr v3, v1
|
|
|
|
.line 69
|
|
if-eqz v3, :cond_4
|
|
|
|
.line 70
|
|
.line 71
|
|
sget-object p0, Lcom/google/common/util/concurrent/AbstractFuture$Cancellation;->d:Lcom/google/common/util/concurrent/AbstractFuture$Cancellation;
|
|
|
|
.line 72
|
|
.line 73
|
|
invoke-static {p0}, Lj$/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 74
|
|
.line 75
|
|
.line 76
|
|
return-object p0
|
|
|
|
.line 77
|
|
:cond_4
|
|
move v3, v2
|
|
|
|
.line 78
|
|
:goto_1
|
|
:try_start_0
|
|
invoke-interface {p0}, Ljava/util/concurrent/Future;->get()Ljava/lang/Object;
|
|
|
|
.line 79
|
|
.line 80
|
|
.line 81
|
|
move-result-object v4
|
|
:try_end_0
|
|
.catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_4
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 82
|
|
if-eqz v3, :cond_5
|
|
|
|
.line 83
|
|
.line 84
|
|
:try_start_1
|
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
|
|
|
.line 85
|
|
.line 86
|
|
.line 87
|
|
move-result-object v3
|
|
|
|
.line 88
|
|
invoke-virtual {v3}, Ljava/lang/Thread;->interrupt()V
|
|
:try_end_1
|
|
.catch Ljava/util/concurrent/ExecutionException; {:try_start_1 .. :try_end_1} :catch_1
|
|
.catch Ljava/util/concurrent/CancellationException; {:try_start_1 .. :try_end_1} :catch_0
|
|
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_2
|
|
.catch Ljava/lang/Error; {:try_start_1 .. :try_end_1} :catch_3
|
|
|
|
.line 89
|
|
.line 90
|
|
.line 91
|
|
:cond_5
|
|
if-eqz v1, :cond_6
|
|
|
|
.line 92
|
|
.line 93
|
|
:try_start_2
|
|
new-instance v3, Lcom/google/common/util/concurrent/AbstractFuture$Cancellation;
|
|
|
|
.line 94
|
|
.line 95
|
|
new-instance v4, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 96
|
|
.line 97
|
|
new-instance v5, Ljava/lang/StringBuilder;
|
|
|
|
.line 98
|
|
.line 99
|
|
invoke-direct {v5, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 100
|
|
.line 101
|
|
.line 102
|
|
invoke-virtual {v5, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
.line 103
|
|
.line 104
|
|
.line 105
|
|
invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 106
|
|
.line 107
|
|
.line 108
|
|
move-result-object v5
|
|
|
|
.line 109
|
|
invoke-direct {v4, v5}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 110
|
|
.line 111
|
|
.line 112
|
|
invoke-direct {v3, v4, v2}, Lcom/google/common/util/concurrent/AbstractFuture$Cancellation;-><init>(Ljava/lang/Throwable;Z)V
|
|
|
|
.line 113
|
|
.line 114
|
|
.line 115
|
|
return-object v3
|
|
|
|
.line 116
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
.line 117
|
|
goto :goto_3
|
|
|
|
.line 118
|
|
:catch_1
|
|
move-exception v3
|
|
|
|
.line 119
|
|
goto :goto_4
|
|
|
|
.line 120
|
|
:cond_6
|
|
if-nez v4, :cond_7
|
|
|
|
.line 121
|
|
.line 122
|
|
sget-object p0, Lcom/google/common/util/concurrent/AbstractFutureState;->h:Ljava/lang/Object;
|
|
:try_end_2
|
|
.catch Ljava/util/concurrent/ExecutionException; {:try_start_2 .. :try_end_2} :catch_1
|
|
.catch Ljava/util/concurrent/CancellationException; {:try_start_2 .. :try_end_2} :catch_0
|
|
.catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_2
|
|
.catch Ljava/lang/Error; {:try_start_2 .. :try_end_2} :catch_2
|
|
|
|
.line 123
|
|
.line 124
|
|
return-object p0
|
|
|
|
.line 125
|
|
:catch_2
|
|
move-exception p0
|
|
|
|
.line 126
|
|
goto :goto_2
|
|
|
|
.line 127
|
|
:cond_7
|
|
return-object v4
|
|
|
|
.line 128
|
|
:catchall_0
|
|
move-exception v4
|
|
|
|
.line 129
|
|
if-eqz v3, :cond_8
|
|
|
|
.line 130
|
|
.line 131
|
|
:try_start_3
|
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
|
|
|
.line 132
|
|
.line 133
|
|
.line 134
|
|
move-result-object v3
|
|
|
|
.line 135
|
|
invoke-virtual {v3}, Ljava/lang/Thread;->interrupt()V
|
|
|
|
.line 136
|
|
.line 137
|
|
.line 138
|
|
:cond_8
|
|
throw v4
|
|
:try_end_3
|
|
.catch Ljava/util/concurrent/ExecutionException; {:try_start_3 .. :try_end_3} :catch_1
|
|
.catch Ljava/util/concurrent/CancellationException; {:try_start_3 .. :try_end_3} :catch_0
|
|
.catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_2
|
|
.catch Ljava/lang/Error; {:try_start_3 .. :try_end_3} :catch_3
|
|
|
|
.line 139
|
|
:catch_3
|
|
move-exception p0
|
|
|
|
.line 140
|
|
:goto_2
|
|
new-instance v0, Lcom/google/common/util/concurrent/AbstractFuture$Failure;
|
|
|
|
.line 141
|
|
.line 142
|
|
invoke-direct {v0, p0}, Lcom/google/common/util/concurrent/AbstractFuture$Failure;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
.line 143
|
|
.line 144
|
|
.line 145
|
|
return-object v0
|
|
|
|
.line 146
|
|
:goto_3
|
|
if-nez v1, :cond_9
|
|
|
|
.line 147
|
|
.line 148
|
|
new-instance v1, Lcom/google/common/util/concurrent/AbstractFuture$Failure;
|
|
|
|
.line 149
|
|
.line 150
|
|
new-instance v2, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 151
|
|
.line 152
|
|
new-instance v3, Ljava/lang/StringBuilder;
|
|
|
|
.line 153
|
|
.line 154
|
|
const-string v4, "get() threw CancellationException, despite reporting isCancelled() == false: "
|
|
|
|
.line 155
|
|
.line 156
|
|
invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 157
|
|
.line 158
|
|
.line 159
|
|
invoke-virtual {v3, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
.line 160
|
|
.line 161
|
|
.line 162
|
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 163
|
|
.line 164
|
|
.line 165
|
|
move-result-object p0
|
|
|
|
.line 166
|
|
invoke-direct {v2, p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
.line 167
|
|
.line 168
|
|
.line 169
|
|
invoke-direct {v1, v2}, Lcom/google/common/util/concurrent/AbstractFuture$Failure;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
.line 170
|
|
.line 171
|
|
.line 172
|
|
return-object v1
|
|
|
|
.line 173
|
|
:cond_9
|
|
new-instance p0, Lcom/google/common/util/concurrent/AbstractFuture$Cancellation;
|
|
|
|
.line 174
|
|
.line 175
|
|
invoke-direct {p0, v0, v2}, Lcom/google/common/util/concurrent/AbstractFuture$Cancellation;-><init>(Ljava/lang/Throwable;Z)V
|
|
|
|
.line 176
|
|
.line 177
|
|
.line 178
|
|
return-object p0
|
|
|
|
.line 179
|
|
:goto_4
|
|
if-eqz v1, :cond_a
|
|
|
|
.line 180
|
|
.line 181
|
|
new-instance v1, Lcom/google/common/util/concurrent/AbstractFuture$Cancellation;
|
|
|
|
.line 182
|
|
.line 183
|
|
new-instance v4, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 184
|
|
.line 185
|
|
new-instance v5, Ljava/lang/StringBuilder;
|
|
|
|
.line 186
|
|
.line 187
|
|
invoke-direct {v5, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 188
|
|
.line 189
|
|
.line 190
|
|
invoke-virtual {v5, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
.line 191
|
|
.line 192
|
|
.line 193
|
|
invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 194
|
|
.line 195
|
|
.line 196
|
|
move-result-object p0
|
|
|
|
.line 197
|
|
invoke-direct {v4, p0, v3}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
.line 198
|
|
.line 199
|
|
.line 200
|
|
invoke-direct {v1, v4, v2}, Lcom/google/common/util/concurrent/AbstractFuture$Cancellation;-><init>(Ljava/lang/Throwable;Z)V
|
|
|
|
.line 201
|
|
.line 202
|
|
.line 203
|
|
return-object v1
|
|
|
|
.line 204
|
|
:cond_a
|
|
new-instance p0, Lcom/google/common/util/concurrent/AbstractFuture$Failure;
|
|
|
|
.line 205
|
|
.line 206
|
|
invoke-virtual {v3}, Ljava/lang/Throwable;->getCause()Ljava/lang/Throwable;
|
|
|
|
.line 207
|
|
.line 208
|
|
.line 209
|
|
move-result-object v0
|
|
|
|
.line 210
|
|
invoke-direct {p0, v0}, Lcom/google/common/util/concurrent/AbstractFuture$Failure;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
.line 211
|
|
.line 212
|
|
.line 213
|
|
return-object p0
|
|
|
|
.line 214
|
|
:catch_4
|
|
move v3, v4
|
|
|
|
.line 215
|
|
goto/16 :goto_1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a()Ljava/lang/Throwable;
|
|
.locals 2
|
|
|
|
.line 1
|
|
instance-of v0, p0, Lcom/google/common/util/concurrent/AbstractFuture$Trusted;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v0, p0, Lcom/google/common/util/concurrent/AbstractFutureState;->c:Ljava/lang/Object;
|
|
|
|
.line 6
|
|
.line 7
|
|
instance-of v1, v0, Lcom/google/common/util/concurrent/AbstractFuture$Failure;
|
|
|
|
.line 8
|
|
.line 9
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 10
|
|
.line 11
|
|
check-cast v0, Lcom/google/common/util/concurrent/AbstractFuture$Failure;
|
|
|
|
.line 12
|
|
.line 13
|
|
iget-object v0, v0, Lcom/google/common/util/concurrent/AbstractFuture$Failure;->a:Ljava/lang/Throwable;
|
|
|
|
.line 14
|
|
.line 15
|
|
return-object v0
|
|
|
|
.line 16
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 17
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final c(Ljava/lang/StringBuilder;)V
|
|
.locals 3
|
|
|
|
.line 1
|
|
const-string v0, "]"
|
|
|
|
.line 2
|
|
.line 3
|
|
const/4 v1, 0x0
|
|
|
|
.line 4
|
|
:goto_0
|
|
:try_start_0
|
|
invoke-interface {p0}, Ljava/util/concurrent/Future;->get()Ljava/lang/Object;
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
move-result-object v2
|
|
:try_end_0
|
|
.catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_3
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 8
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 9
|
|
.line 10
|
|
:try_start_1
|
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
move-result-object v1
|
|
|
|
.line 14
|
|
invoke-virtual {v1}, Ljava/lang/Thread;->interrupt()V
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
:cond_0
|
|
const-string v1, "SUCCESS, result=["
|
|
|
|
.line 18
|
|
.line 19
|
|
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
invoke-virtual {p0, p1, v2}, Lcom/google/common/util/concurrent/AbstractFuture;->e(Ljava/lang/StringBuilder;Ljava/lang/Object;)V
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
return-void
|
|
|
|
.line 29
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
.line 30
|
|
goto :goto_1
|
|
|
|
.line 31
|
|
:catch_1
|
|
move-exception v1
|
|
|
|
.line 32
|
|
goto :goto_2
|
|
|
|
.line 33
|
|
:catchall_0
|
|
move-exception v2
|
|
|
|
.line 34
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 35
|
|
.line 36
|
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
|
|
|
.line 37
|
|
.line 38
|
|
.line 39
|
|
move-result-object v1
|
|
|
|
.line 40
|
|
invoke-virtual {v1}, Ljava/lang/Thread;->interrupt()V
|
|
|
|
.line 41
|
|
.line 42
|
|
.line 43
|
|
:cond_1
|
|
throw v2
|
|
:try_end_1
|
|
.catch Ljava/util/concurrent/ExecutionException; {:try_start_1 .. :try_end_1} :catch_1
|
|
.catch Ljava/util/concurrent/CancellationException; {:try_start_1 .. :try_end_1} :catch_2
|
|
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
|
|
|
|
.line 44
|
|
:goto_1
|
|
const-string v1, "UNKNOWN, cause=["
|
|
|
|
.line 45
|
|
.line 46
|
|
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 47
|
|
.line 48
|
|
.line 49
|
|
invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 50
|
|
.line 51
|
|
.line 52
|
|
move-result-object v0
|
|
|
|
.line 53
|
|
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
.line 54
|
|
.line 55
|
|
.line 56
|
|
const-string v0, " thrown from get()]"
|
|
|
|
.line 57
|
|
.line 58
|
|
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 59
|
|
.line 60
|
|
.line 61
|
|
goto :goto_3
|
|
|
|
.line 62
|
|
:catch_2
|
|
const-string v0, "CANCELLED"
|
|
|
|
.line 63
|
|
.line 64
|
|
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 65
|
|
.line 66
|
|
.line 67
|
|
goto :goto_3
|
|
|
|
.line 68
|
|
:goto_2
|
|
const-string v2, "FAILURE, cause=["
|
|
|
|
.line 69
|
|
.line 70
|
|
invoke-virtual {p1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 71
|
|
.line 72
|
|
.line 73
|
|
invoke-virtual {v1}, Ljava/lang/Throwable;->getCause()Ljava/lang/Throwable;
|
|
|
|
.line 74
|
|
.line 75
|
|
.line 76
|
|
move-result-object v1
|
|
|
|
.line 77
|
|
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
.line 78
|
|
.line 79
|
|
.line 80
|
|
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 81
|
|
.line 82
|
|
.line 83
|
|
:goto_3
|
|
return-void
|
|
|
|
.line 84
|
|
:catch_3
|
|
const/4 v1, 0x1
|
|
|
|
.line 85
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public cancel(Z)Z
|
|
.locals 7
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/common/util/concurrent/AbstractFutureState;->c:Ljava/lang/Object;
|
|
|
|
.line 2
|
|
.line 3
|
|
const/4 v1, 0x1
|
|
|
|
.line 4
|
|
const/4 v2, 0x0
|
|
|
|
.line 5
|
|
if-nez v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
move v3, v1
|
|
|
|
.line 8
|
|
goto :goto_0
|
|
|
|
.line 9
|
|
:cond_0
|
|
move v3, v2
|
|
|
|
.line 10
|
|
:goto_0
|
|
instance-of v4, v0, Lcom/google/common/util/concurrent/AbstractFuture$DelegatingToFuture;
|
|
|
|
.line 11
|
|
.line 12
|
|
or-int/2addr v3, v4
|
|
|
|
.line 13
|
|
if-eqz v3, :cond_8
|
|
|
|
.line 14
|
|
.line 15
|
|
sget-boolean v3, Lcom/google/common/util/concurrent/AbstractFutureState;->j:Z
|
|
|
|
.line 16
|
|
.line 17
|
|
if-eqz v3, :cond_1
|
|
|
|
.line 18
|
|
.line 19
|
|
new-instance v3, Lcom/google/common/util/concurrent/AbstractFuture$Cancellation;
|
|
|
|
.line 20
|
|
.line 21
|
|
new-instance v4, Ljava/util/concurrent/CancellationException;
|
|
|
|
.line 22
|
|
.line 23
|
|
const-string v5, "Future.cancel() was called."
|
|
|
|
.line 24
|
|
.line 25
|
|
invoke-direct {v4, v5}, Ljava/util/concurrent/CancellationException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
invoke-direct {v3, v4, p1}, Lcom/google/common/util/concurrent/AbstractFuture$Cancellation;-><init>(Ljava/lang/Throwable;Z)V
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
goto :goto_2
|
|
|
|
.line 32
|
|
:cond_1
|
|
if-eqz p1, :cond_2
|
|
|
|
.line 33
|
|
.line 34
|
|
sget-object v3, Lcom/google/common/util/concurrent/AbstractFuture$Cancellation;->c:Lcom/google/common/util/concurrent/AbstractFuture$Cancellation;
|
|
|
|
.line 35
|
|
.line 36
|
|
goto :goto_1
|
|
|
|
.line 37
|
|
:cond_2
|
|
sget-object v3, Lcom/google/common/util/concurrent/AbstractFuture$Cancellation;->d:Lcom/google/common/util/concurrent/AbstractFuture$Cancellation;
|
|
|
|
.line 38
|
|
.line 39
|
|
:goto_1
|
|
invoke-static {v3}, Lj$/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 40
|
|
.line 41
|
|
.line 42
|
|
:goto_2
|
|
move-object v4, p0
|
|
|
|
.line 43
|
|
move v5, v2
|
|
|
|
.line 44
|
|
:cond_3
|
|
:goto_3
|
|
sget-object v6, Lcom/google/common/util/concurrent/AbstractFutureState;->k:Lcom/google/common/util/concurrent/AbstractFutureState$AtomicHelper;
|
|
|
|
.line 45
|
|
.line 46
|
|
invoke-virtual {v6, v4, v0, v3}, Lcom/google/common/util/concurrent/AbstractFutureState$AtomicHelper;->b(Lcom/google/common/util/concurrent/AbstractFutureState;Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
.line 47
|
|
.line 48
|
|
.line 49
|
|
move-result v6
|
|
|
|
.line 50
|
|
if-eqz v6, :cond_7
|
|
|
|
.line 51
|
|
.line 52
|
|
invoke-static {v4, p1}, Lcom/google/common/util/concurrent/AbstractFuture;->f(Lcom/google/common/util/concurrent/AbstractFuture;Z)V
|
|
|
|
.line 53
|
|
.line 54
|
|
.line 55
|
|
instance-of v4, v0, Lcom/google/common/util/concurrent/AbstractFuture$DelegatingToFuture;
|
|
|
|
.line 56
|
|
.line 57
|
|
if-eqz v4, :cond_6
|
|
|
|
.line 58
|
|
.line 59
|
|
check-cast v0, Lcom/google/common/util/concurrent/AbstractFuture$DelegatingToFuture;
|
|
|
|
.line 60
|
|
.line 61
|
|
iget-object v0, v0, Lcom/google/common/util/concurrent/AbstractFuture$DelegatingToFuture;->f:Lcom/google/common/util/concurrent/ListenableFuture;
|
|
|
|
.line 62
|
|
.line 63
|
|
instance-of v4, v0, Lcom/google/common/util/concurrent/AbstractFuture$Trusted;
|
|
|
|
.line 64
|
|
.line 65
|
|
if-eqz v4, :cond_5
|
|
|
|
.line 66
|
|
.line 67
|
|
move-object v4, v0
|
|
|
|
.line 68
|
|
check-cast v4, Lcom/google/common/util/concurrent/AbstractFuture;
|
|
|
|
.line 69
|
|
.line 70
|
|
iget-object v0, v4, Lcom/google/common/util/concurrent/AbstractFutureState;->c:Ljava/lang/Object;
|
|
|
|
.line 71
|
|
.line 72
|
|
if-nez v0, :cond_4
|
|
|
|
.line 73
|
|
.line 74
|
|
move v5, v1
|
|
|
|
.line 75
|
|
goto :goto_4
|
|
|
|
.line 76
|
|
:cond_4
|
|
move v5, v2
|
|
|
|
.line 77
|
|
:goto_4
|
|
instance-of v6, v0, Lcom/google/common/util/concurrent/AbstractFuture$DelegatingToFuture;
|
|
|
|
.line 78
|
|
.line 79
|
|
or-int/2addr v5, v6
|
|
|
|
.line 80
|
|
if-eqz v5, :cond_6
|
|
|
|
.line 81
|
|
.line 82
|
|
move v5, v1
|
|
|
|
.line 83
|
|
goto :goto_3
|
|
|
|
.line 84
|
|
:cond_5
|
|
invoke-interface {v0, p1}, Ljava/util/concurrent/Future;->cancel(Z)Z
|
|
|
|
.line 85
|
|
.line 86
|
|
.line 87
|
|
:cond_6
|
|
return v1
|
|
|
|
.line 88
|
|
:cond_7
|
|
iget-object v0, v4, Lcom/google/common/util/concurrent/AbstractFutureState;->c:Ljava/lang/Object;
|
|
|
|
.line 89
|
|
.line 90
|
|
instance-of v6, v0, Lcom/google/common/util/concurrent/AbstractFuture$DelegatingToFuture;
|
|
|
|
.line 91
|
|
.line 92
|
|
if-nez v6, :cond_3
|
|
|
|
.line 93
|
|
.line 94
|
|
return v5
|
|
|
|
.line 95
|
|
:cond_8
|
|
return v2
|
|
.end method
|
|
|
|
.method public d()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
return-void
|
|
.end method
|
|
|
|
.method public final e(Ljava/lang/StringBuilder;Ljava/lang/Object;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
if-nez p2, :cond_0
|
|
|
|
.line 2
|
|
.line 3
|
|
const-string p2, "null"
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
return-void
|
|
|
|
.line 9
|
|
:cond_0
|
|
if-ne p2, p0, :cond_1
|
|
|
|
.line 10
|
|
.line 11
|
|
const-string p2, "this future"
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
return-void
|
|
|
|
.line 17
|
|
:cond_1
|
|
invoke-virtual {p2}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
move-result-object v0
|
|
|
|
.line 21
|
|
invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
move-result-object v0
|
|
|
|
.line 25
|
|
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
const-string v0, "@"
|
|
|
|
.line 29
|
|
.line 30
|
|
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 31
|
|
.line 32
|
|
.line 33
|
|
invoke-static {p2}, Ljava/lang/System;->identityHashCode(Ljava/lang/Object;)I
|
|
|
|
.line 34
|
|
.line 35
|
|
.line 36
|
|
move-result p2
|
|
|
|
.line 37
|
|
invoke-static {p2}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;
|
|
|
|
.line 38
|
|
.line 39
|
|
.line 40
|
|
move-result-object p2
|
|
|
|
.line 41
|
|
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 42
|
|
.line 43
|
|
.line 44
|
|
return-void
|
|
.end method
|
|
|
|
.method public get()Ljava/lang/Object;
|
|
.locals 6
|
|
|
|
.line 81
|
|
sget-object v0, Lcom/google/common/util/concurrent/AbstractFutureState$Waiter;->c:Lcom/google/common/util/concurrent/AbstractFutureState$Waiter;
|
|
|
|
invoke-static {}, Ljava/lang/Thread;->interrupted()Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_8
|
|
|
|
.line 82
|
|
iget-object v1, p0, Lcom/google/common/util/concurrent/AbstractFutureState;->c:Ljava/lang/Object;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
move v4, v3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v4, v2
|
|
|
|
.line 83
|
|
:goto_0
|
|
instance-of v5, v1, Lcom/google/common/util/concurrent/AbstractFuture$DelegatingToFuture;
|
|
|
|
xor-int/2addr v5, v3
|
|
|
|
and-int/2addr v4, v5
|
|
|
|
if-eqz v4, :cond_1
|
|
|
|
.line 84
|
|
invoke-static {v1}, Lcom/google/common/util/concurrent/AbstractFuture;->h(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
|
|
.line 85
|
|
:cond_1
|
|
iget-object v1, p0, Lcom/google/common/util/concurrent/AbstractFutureState;->g:Lcom/google/common/util/concurrent/AbstractFutureState$Waiter;
|
|
|
|
if-eq v1, v0, :cond_7
|
|
|
|
.line 86
|
|
new-instance v4, Lcom/google/common/util/concurrent/AbstractFutureState$Waiter;
|
|
|
|
invoke-direct {v4}, Lcom/google/common/util/concurrent/AbstractFutureState$Waiter;-><init>()V
|
|
|
|
.line 87
|
|
:cond_2
|
|
sget-object v5, Lcom/google/common/util/concurrent/AbstractFutureState;->k:Lcom/google/common/util/concurrent/AbstractFutureState$AtomicHelper;
|
|
|
|
invoke-virtual {v5, v4, v1}, Lcom/google/common/util/concurrent/AbstractFutureState$AtomicHelper;->f(Lcom/google/common/util/concurrent/AbstractFutureState$Waiter;Lcom/google/common/util/concurrent/AbstractFutureState$Waiter;)V
|
|
|
|
.line 88
|
|
invoke-virtual {v5, p0, v1, v4}, Lcom/google/common/util/concurrent/AbstractFutureState$AtomicHelper;->c(Lcom/google/common/util/concurrent/AbstractFutureState;Lcom/google/common/util/concurrent/AbstractFutureState$Waiter;Lcom/google/common/util/concurrent/AbstractFutureState$Waiter;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_6
|
|
|
|
.line 89
|
|
:cond_3
|
|
invoke-static {p0}, Ljava/util/concurrent/locks/LockSupport;->park(Ljava/lang/Object;)V
|
|
|
|
.line 90
|
|
invoke-static {}, Ljava/lang/Thread;->interrupted()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_5
|
|
|
|
.line 91
|
|
iget-object v0, p0, Lcom/google/common/util/concurrent/AbstractFutureState;->c:Ljava/lang/Object;
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
move v1, v3
|
|
|
|
goto :goto_1
|
|
|
|
:cond_4
|
|
move v1, v2
|
|
|
|
.line 92
|
|
:goto_1
|
|
instance-of v5, v0, Lcom/google/common/util/concurrent/AbstractFuture$DelegatingToFuture;
|
|
|
|
xor-int/2addr v5, v3
|
|
|
|
and-int/2addr v1, v5
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
.line 93
|
|
invoke-static {v0}, Lcom/google/common/util/concurrent/AbstractFuture;->h(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
|
|
.line 94
|
|
:cond_5
|
|
invoke-virtual {p0, v4}, Lcom/google/common/util/concurrent/AbstractFutureState;->b(Lcom/google/common/util/concurrent/AbstractFutureState$Waiter;)V
|
|
|
|
.line 95
|
|
new-instance v0, Ljava/lang/InterruptedException;
|
|
|
|
invoke-direct {v0}, Ljava/lang/InterruptedException;-><init>()V
|
|
|
|
throw v0
|
|
|
|
.line 96
|
|
:cond_6
|
|
iget-object v1, p0, Lcom/google/common/util/concurrent/AbstractFutureState;->g:Lcom/google/common/util/concurrent/AbstractFutureState$Waiter;
|
|
|
|
if-ne v1, v0, :cond_2
|
|
|
|
.line 97
|
|
:cond_7
|
|
iget-object v0, p0, Lcom/google/common/util/concurrent/AbstractFutureState;->c:Ljava/lang/Object;
|
|
|
|
invoke-static {v0}, Lj$/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
invoke-static {v0}, Lcom/google/common/util/concurrent/AbstractFuture;->h(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
|
|
.line 98
|
|
:cond_8
|
|
new-instance v0, Ljava/lang/InterruptedException;
|
|
|
|
invoke-direct {v0}, Ljava/lang/InterruptedException;-><init>()V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public get(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;
|
|
.locals 20
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move-wide/from16 v1, p1
|
|
|
|
move-object/from16 v3, p3
|
|
|
|
.line 1
|
|
sget-object v4, Lcom/google/common/util/concurrent/AbstractFutureState$Waiter;->c:Lcom/google/common/util/concurrent/AbstractFutureState$Waiter;
|
|
|
|
invoke-virtual {v3, v1, v2}, Ljava/util/concurrent/TimeUnit;->toNanos(J)J
|
|
|
|
move-result-wide v5
|
|
|
|
.line 2
|
|
invoke-static {}, Ljava/lang/Thread;->interrupted()Z
|
|
|
|
move-result v7
|
|
|
|
if-nez v7, :cond_16
|
|
|
|
.line 3
|
|
iget-object v7, v0, Lcom/google/common/util/concurrent/AbstractFutureState;->c:Ljava/lang/Object;
|
|
|
|
const/4 v9, 0x1
|
|
|
|
if-eqz v7, :cond_0
|
|
|
|
move v10, v9
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v10, 0x0
|
|
|
|
.line 4
|
|
:goto_0
|
|
instance-of v11, v7, Lcom/google/common/util/concurrent/AbstractFuture$DelegatingToFuture;
|
|
|
|
xor-int/2addr v11, v9
|
|
|
|
and-int/2addr v10, v11
|
|
|
|
if-eqz v10, :cond_1
|
|
|
|
.line 5
|
|
invoke-static {v7}, Lcom/google/common/util/concurrent/AbstractFuture;->h(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
return-object v1
|
|
|
|
:cond_1
|
|
const-wide/16 v10, 0x0
|
|
|
|
cmp-long v7, v5, v10
|
|
|
|
if-lez v7, :cond_2
|
|
|
|
.line 6
|
|
invoke-static {}, Ljava/lang/System;->nanoTime()J
|
|
|
|
move-result-wide v12
|
|
|
|
add-long/2addr v12, v5
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
move-wide v12, v10
|
|
|
|
:goto_1
|
|
const-wide/16 v14, 0x3e8
|
|
|
|
cmp-long v7, v5, v14
|
|
|
|
if-ltz v7, :cond_a
|
|
|
|
.line 7
|
|
iget-object v7, v0, Lcom/google/common/util/concurrent/AbstractFutureState;->g:Lcom/google/common/util/concurrent/AbstractFutureState$Waiter;
|
|
|
|
if-eq v7, v4, :cond_9
|
|
|
|
.line 8
|
|
new-instance v8, Lcom/google/common/util/concurrent/AbstractFutureState$Waiter;
|
|
|
|
invoke-direct {v8}, Lcom/google/common/util/concurrent/AbstractFutureState$Waiter;-><init>()V
|
|
|
|
move/from16 v17, v9
|
|
|
|
.line 9
|
|
:goto_2
|
|
sget-object v9, Lcom/google/common/util/concurrent/AbstractFutureState;->k:Lcom/google/common/util/concurrent/AbstractFutureState$AtomicHelper;
|
|
|
|
invoke-virtual {v9, v8, v7}, Lcom/google/common/util/concurrent/AbstractFutureState$AtomicHelper;->f(Lcom/google/common/util/concurrent/AbstractFutureState$Waiter;Lcom/google/common/util/concurrent/AbstractFutureState$Waiter;)V
|
|
|
|
.line 10
|
|
invoke-virtual {v9, v0, v7, v8}, Lcom/google/common/util/concurrent/AbstractFutureState$AtomicHelper;->c(Lcom/google/common/util/concurrent/AbstractFutureState;Lcom/google/common/util/concurrent/AbstractFutureState$Waiter;Lcom/google/common/util/concurrent/AbstractFutureState$Waiter;)Z
|
|
|
|
move-result v7
|
|
|
|
if-eqz v7, :cond_7
|
|
|
|
move-wide/from16 v18, v10
|
|
|
|
:goto_3
|
|
const-wide v10, 0x1dcd64ffffffffffL # 3.98785104510193E-165
|
|
|
|
.line 11
|
|
invoke-static {v5, v6, v10, v11}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
move-result-wide v4
|
|
|
|
invoke-static {v0, v4, v5}, Ljava/util/concurrent/locks/LockSupport;->parkNanos(Ljava/lang/Object;J)V
|
|
|
|
.line 12
|
|
invoke-static {}, Ljava/lang/Thread;->interrupted()Z
|
|
|
|
move-result v4
|
|
|
|
if-nez v4, :cond_6
|
|
|
|
.line 13
|
|
iget-object v4, v0, Lcom/google/common/util/concurrent/AbstractFutureState;->c:Ljava/lang/Object;
|
|
|
|
if-eqz v4, :cond_3
|
|
|
|
move/from16 v5, v17
|
|
|
|
goto :goto_4
|
|
|
|
:cond_3
|
|
const/4 v5, 0x0
|
|
|
|
.line 14
|
|
:goto_4
|
|
instance-of v6, v4, Lcom/google/common/util/concurrent/AbstractFuture$DelegatingToFuture;
|
|
|
|
xor-int/lit8 v6, v6, 0x1
|
|
|
|
and-int/2addr v5, v6
|
|
|
|
if-eqz v5, :cond_4
|
|
|
|
.line 15
|
|
invoke-static {v4}, Lcom/google/common/util/concurrent/AbstractFuture;->h(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
return-object v1
|
|
|
|
.line 16
|
|
:cond_4
|
|
invoke-static {}, Ljava/lang/System;->nanoTime()J
|
|
|
|
move-result-wide v4
|
|
|
|
sub-long v4, v12, v4
|
|
|
|
cmp-long v6, v4, v14
|
|
|
|
if-gez v6, :cond_5
|
|
|
|
.line 17
|
|
invoke-virtual {v0, v8}, Lcom/google/common/util/concurrent/AbstractFutureState;->b(Lcom/google/common/util/concurrent/AbstractFutureState$Waiter;)V
|
|
|
|
:goto_5
|
|
move-wide v5, v4
|
|
|
|
goto :goto_7
|
|
|
|
:cond_5
|
|
move-wide v5, v4
|
|
|
|
goto :goto_3
|
|
|
|
.line 18
|
|
:cond_6
|
|
invoke-virtual {v0, v8}, Lcom/google/common/util/concurrent/AbstractFutureState;->b(Lcom/google/common/util/concurrent/AbstractFutureState$Waiter;)V
|
|
|
|
.line 19
|
|
new-instance v1, Ljava/lang/InterruptedException;
|
|
|
|
invoke-direct {v1}, Ljava/lang/InterruptedException;-><init>()V
|
|
|
|
throw v1
|
|
|
|
:cond_7
|
|
move-wide/from16 v18, v10
|
|
|
|
.line 20
|
|
iget-object v7, v0, Lcom/google/common/util/concurrent/AbstractFutureState;->g:Lcom/google/common/util/concurrent/AbstractFutureState$Waiter;
|
|
|
|
if-ne v7, v4, :cond_8
|
|
|
|
goto :goto_6
|
|
|
|
:cond_8
|
|
move-wide/from16 v10, v18
|
|
|
|
goto :goto_2
|
|
|
|
.line 21
|
|
:cond_9
|
|
:goto_6
|
|
iget-object v1, v0, Lcom/google/common/util/concurrent/AbstractFutureState;->c:Ljava/lang/Object;
|
|
|
|
invoke-static {v1}, Lj$/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
invoke-static {v1}, Lcom/google/common/util/concurrent/AbstractFuture;->h(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
return-object v1
|
|
|
|
:cond_a
|
|
move/from16 v17, v9
|
|
|
|
move-wide/from16 v18, v10
|
|
|
|
:goto_7
|
|
cmp-long v4, v5, v18
|
|
|
|
if-lez v4, :cond_e
|
|
|
|
.line 22
|
|
iget-object v4, v0, Lcom/google/common/util/concurrent/AbstractFutureState;->c:Ljava/lang/Object;
|
|
|
|
if-eqz v4, :cond_b
|
|
|
|
move/from16 v5, v17
|
|
|
|
goto :goto_8
|
|
|
|
:cond_b
|
|
const/4 v5, 0x0
|
|
|
|
.line 23
|
|
:goto_8
|
|
instance-of v6, v4, Lcom/google/common/util/concurrent/AbstractFuture$DelegatingToFuture;
|
|
|
|
xor-int/lit8 v6, v6, 0x1
|
|
|
|
and-int/2addr v5, v6
|
|
|
|
if-eqz v5, :cond_c
|
|
|
|
.line 24
|
|
invoke-static {v4}, Lcom/google/common/util/concurrent/AbstractFuture;->h(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
return-object v1
|
|
|
|
.line 25
|
|
:cond_c
|
|
invoke-static {}, Ljava/lang/Thread;->interrupted()Z
|
|
|
|
move-result v4
|
|
|
|
if-nez v4, :cond_d
|
|
|
|
.line 26
|
|
invoke-static {}, Ljava/lang/System;->nanoTime()J
|
|
|
|
move-result-wide v4
|
|
|
|
sub-long v4, v12, v4
|
|
|
|
goto :goto_5
|
|
|
|
.line 27
|
|
:cond_d
|
|
new-instance v1, Ljava/lang/InterruptedException;
|
|
|
|
invoke-direct {v1}, Ljava/lang/InterruptedException;-><init>()V
|
|
|
|
throw v1
|
|
|
|
.line 28
|
|
:cond_e
|
|
invoke-virtual {v0}, Lcom/google/common/util/concurrent/AbstractFuture;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
.line 29
|
|
invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
sget-object v8, Ljava/util/Locale;->ROOT:Ljava/util/Locale;
|
|
|
|
invoke-virtual {v7, v8}, Ljava/lang/String;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
.line 30
|
|
new-instance v9, Ljava/lang/StringBuilder;
|
|
|
|
const-string v10, "Waited "
|
|
|
|
invoke-direct {v9, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v9, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, " "
|
|
|
|
invoke-virtual {v9, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2, v8}, Ljava/lang/String;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v9, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
add-long v8, v5, v14
|
|
|
|
cmp-long v8, v8, v18
|
|
|
|
if-gez v8, :cond_14
|
|
|
|
.line 31
|
|
const-string v8, " (plus "
|
|
|
|
.line 32
|
|
invoke-static {v2, v8}, Landroid/support/v4/media/a;->k(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
neg-long v5, v5
|
|
|
|
.line 33
|
|
sget-object v8, Ljava/util/concurrent/TimeUnit;->NANOSECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
invoke-virtual {v3, v5, v6, v8}, Ljava/util/concurrent/TimeUnit;->convert(JLjava/util/concurrent/TimeUnit;)J
|
|
|
|
move-result-wide v8
|
|
|
|
.line 34
|
|
invoke-virtual {v3, v8, v9}, Ljava/util/concurrent/TimeUnit;->toNanos(J)J
|
|
|
|
move-result-wide v10
|
|
|
|
sub-long/2addr v5, v10
|
|
|
|
cmp-long v3, v8, v18
|
|
|
|
if-eqz v3, :cond_10
|
|
|
|
cmp-long v10, v5, v14
|
|
|
|
if-lez v10, :cond_f
|
|
|
|
goto :goto_9
|
|
|
|
:cond_f
|
|
const/16 v16, 0x0
|
|
|
|
goto :goto_a
|
|
|
|
:cond_10
|
|
:goto_9
|
|
move/from16 v16, v17
|
|
|
|
:goto_a
|
|
if-lez v3, :cond_12
|
|
|
|
.line 35
|
|
new-instance v3, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3, v8, v9}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v16, :cond_11
|
|
|
|
.line 36
|
|
const-string v3, ","
|
|
|
|
.line 37
|
|
invoke-static {v2, v3}, Landroid/support/v4/media/a;->k(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
.line 38
|
|
:cond_11
|
|
invoke-static {v2, v1}, Landroid/support/v4/media/a;->k(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
:cond_12
|
|
if-eqz v16, :cond_13
|
|
|
|
.line 39
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1, v5, v6}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, " nanoseconds "
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
.line 40
|
|
:cond_13
|
|
const-string v1, "delay)"
|
|
|
|
.line 41
|
|
invoke-static {v2, v1}, Landroid/support/v4/media/a;->k(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
.line 42
|
|
:cond_14
|
|
invoke-interface {v0}, Ljava/util/concurrent/Future;->isDone()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_15
|
|
|
|
.line 43
|
|
new-instance v1, Ljava/util/concurrent/TimeoutException;
|
|
|
|
const-string v3, " but future completed as timeout expired"
|
|
|
|
.line 44
|
|
invoke-static {v2, v3}, Landroid/support/v4/media/a;->k(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
.line 45
|
|
invoke-direct {v1, v2}, Ljava/util/concurrent/TimeoutException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
|
|
.line 46
|
|
:cond_15
|
|
new-instance v1, Ljava/util/concurrent/TimeoutException;
|
|
|
|
const-string v3, " for "
|
|
|
|
.line 47
|
|
invoke-static {v2, v3, v4}, Landroid/support/v4/media/a;->D(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
.line 48
|
|
invoke-direct {v1, v2}, Ljava/util/concurrent/TimeoutException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
|
|
.line 49
|
|
:cond_16
|
|
new-instance v1, Ljava/lang/InterruptedException;
|
|
|
|
invoke-direct {v1}, Ljava/lang/InterruptedException;-><init>()V
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
.method public isCancelled()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/common/util/concurrent/AbstractFutureState;->c:Ljava/lang/Object;
|
|
|
|
.line 2
|
|
.line 3
|
|
instance-of v0, v0, Lcom/google/common/util/concurrent/AbstractFuture$Cancellation;
|
|
|
|
.line 4
|
|
.line 5
|
|
return v0
|
|
.end method
|
|
|
|
.method public isDone()Z
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/common/util/concurrent/AbstractFutureState;->c:Ljava/lang/Object;
|
|
|
|
.line 2
|
|
.line 3
|
|
const/4 v1, 0x1
|
|
|
|
.line 4
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 5
|
|
.line 6
|
|
move v2, v1
|
|
|
|
.line 7
|
|
goto :goto_0
|
|
|
|
.line 8
|
|
:cond_0
|
|
const/4 v2, 0x0
|
|
|
|
.line 9
|
|
:goto_0
|
|
instance-of v0, v0, Lcom/google/common/util/concurrent/AbstractFuture$DelegatingToFuture;
|
|
|
|
.line 10
|
|
.line 11
|
|
xor-int/2addr v0, v1
|
|
|
|
.line 12
|
|
and-int/2addr v0, v2
|
|
|
|
.line 13
|
|
return v0
|
|
.end method
|
|
|
|
.method public j()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
return-void
|
|
.end method
|
|
|
|
.method public k(Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)V
|
|
.locals 4
|
|
|
|
.line 1
|
|
sget-object v0, Lcom/google/common/util/concurrent/AbstractFuture$Listener;->d:Lcom/google/common/util/concurrent/AbstractFuture$Listener;
|
|
|
|
.line 2
|
|
.line 3
|
|
const-string v1, "Runnable was null."
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-static {p1, v1}, Lcom/google/common/base/Preconditions;->h(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
const-string v1, "Executor was null."
|
|
|
|
.line 9
|
|
.line 10
|
|
invoke-static {p2, v1}, Lcom/google/common/base/Preconditions;->h(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
invoke-virtual {p0}, Lcom/google/common/util/concurrent/AbstractFuture;->isDone()Z
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
move-result v1
|
|
|
|
.line 17
|
|
if-nez v1, :cond_2
|
|
|
|
.line 18
|
|
.line 19
|
|
iget-object v1, p0, Lcom/google/common/util/concurrent/AbstractFutureState;->f:Lcom/google/common/util/concurrent/AbstractFuture$Listener;
|
|
|
|
.line 20
|
|
.line 21
|
|
if-eq v1, v0, :cond_2
|
|
|
|
.line 22
|
|
.line 23
|
|
new-instance v2, Lcom/google/common/util/concurrent/AbstractFuture$Listener;
|
|
|
|
.line 24
|
|
.line 25
|
|
invoke-direct {v2, p1, p2}, Lcom/google/common/util/concurrent/AbstractFuture$Listener;-><init>(Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)V
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
:cond_0
|
|
iput-object v1, v2, Lcom/google/common/util/concurrent/AbstractFuture$Listener;->c:Lcom/google/common/util/concurrent/AbstractFuture$Listener;
|
|
|
|
.line 29
|
|
.line 30
|
|
sget-object v3, Lcom/google/common/util/concurrent/AbstractFutureState;->k:Lcom/google/common/util/concurrent/AbstractFutureState$AtomicHelper;
|
|
|
|
.line 31
|
|
.line 32
|
|
invoke-virtual {v3, p0, v1, v2}, Lcom/google/common/util/concurrent/AbstractFutureState$AtomicHelper;->a(Lcom/google/common/util/concurrent/AbstractFuture;Lcom/google/common/util/concurrent/AbstractFuture$Listener;Lcom/google/common/util/concurrent/AbstractFuture$Listener;)Z
|
|
|
|
.line 33
|
|
.line 34
|
|
.line 35
|
|
move-result v1
|
|
|
|
.line 36
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 37
|
|
.line 38
|
|
return-void
|
|
|
|
.line 39
|
|
:cond_1
|
|
iget-object v1, p0, Lcom/google/common/util/concurrent/AbstractFutureState;->f:Lcom/google/common/util/concurrent/AbstractFuture$Listener;
|
|
|
|
.line 40
|
|
.line 41
|
|
if-ne v1, v0, :cond_0
|
|
|
|
.line 42
|
|
.line 43
|
|
:cond_2
|
|
invoke-static {p1, p2}, Lcom/google/common/util/concurrent/AbstractFuture;->g(Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)V
|
|
|
|
.line 44
|
|
.line 45
|
|
.line 46
|
|
return-void
|
|
.end method
|
|
|
|
.method public final l(Ljava/util/concurrent/Future;)V
|
|
.locals 4
|
|
|
|
.line 1
|
|
const/4 v0, 0x0
|
|
|
|
.line 2
|
|
const/4 v1, 0x1
|
|
|
|
.line 3
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
move v2, v1
|
|
|
|
.line 6
|
|
goto :goto_0
|
|
|
|
.line 7
|
|
:cond_0
|
|
move v2, v0
|
|
|
|
.line 8
|
|
:goto_0
|
|
invoke-virtual {p0}, Lcom/google/common/util/concurrent/AbstractFuture;->isCancelled()Z
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
move-result v3
|
|
|
|
.line 12
|
|
and-int/2addr v2, v3
|
|
|
|
.line 13
|
|
if-eqz v2, :cond_2
|
|
|
|
.line 14
|
|
.line 15
|
|
iget-object v2, p0, Lcom/google/common/util/concurrent/AbstractFutureState;->c:Ljava/lang/Object;
|
|
|
|
.line 16
|
|
.line 17
|
|
instance-of v3, v2, Lcom/google/common/util/concurrent/AbstractFuture$Cancellation;
|
|
|
|
.line 18
|
|
.line 19
|
|
if-eqz v3, :cond_1
|
|
|
|
.line 20
|
|
.line 21
|
|
check-cast v2, Lcom/google/common/util/concurrent/AbstractFuture$Cancellation;
|
|
|
|
.line 22
|
|
.line 23
|
|
iget-boolean v2, v2, Lcom/google/common/util/concurrent/AbstractFuture$Cancellation;->a:Z
|
|
|
|
.line 24
|
|
.line 25
|
|
if-eqz v2, :cond_1
|
|
|
|
.line 26
|
|
.line 27
|
|
move v0, v1
|
|
|
|
.line 28
|
|
:cond_1
|
|
invoke-interface {p1, v0}, Ljava/util/concurrent/Future;->cancel(Z)Z
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public m()Ljava/lang/String;
|
|
.locals 3
|
|
|
|
.line 1
|
|
instance-of v0, p0, Ljava/util/concurrent/ScheduledFuture;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
.line 6
|
|
.line 7
|
|
const-string v1, "remaining delay=["
|
|
|
|
.line 8
|
|
.line 9
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
move-object v1, p0
|
|
|
|
.line 13
|
|
check-cast v1, Ljava/util/concurrent/ScheduledFuture;
|
|
|
|
.line 14
|
|
.line 15
|
|
sget-object v2, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
.line 16
|
|
.line 17
|
|
invoke-interface {v1, v2}, Ljava/util/concurrent/Delayed;->getDelay(Ljava/util/concurrent/TimeUnit;)J
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
move-result-wide v1
|
|
|
|
.line 21
|
|
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
const-string v1, " ms]"
|
|
|
|
.line 25
|
|
.line 26
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 30
|
|
.line 31
|
|
.line 32
|
|
move-result-object v0
|
|
|
|
.line 33
|
|
return-object v0
|
|
|
|
.line 34
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 35
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public n(Ljava/lang/Object;)Z
|
|
.locals 2
|
|
|
|
.line 1
|
|
if-nez p1, :cond_0
|
|
|
|
.line 2
|
|
.line 3
|
|
sget-object p1, Lcom/google/common/util/concurrent/AbstractFutureState;->h:Ljava/lang/Object;
|
|
|
|
.line 4
|
|
.line 5
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 6
|
|
sget-object v1, Lcom/google/common/util/concurrent/AbstractFutureState;->k:Lcom/google/common/util/concurrent/AbstractFutureState$AtomicHelper;
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-virtual {v1, p0, v0, p1}, Lcom/google/common/util/concurrent/AbstractFutureState$AtomicHelper;->b(Lcom/google/common/util/concurrent/AbstractFutureState;Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
move-result p1
|
|
|
|
.line 12
|
|
const/4 v0, 0x0
|
|
|
|
.line 13
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 14
|
|
.line 15
|
|
invoke-static {p0, v0}, Lcom/google/common/util/concurrent/AbstractFuture;->f(Lcom/google/common/util/concurrent/AbstractFuture;Z)V
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
const/4 p1, 0x1
|
|
|
|
.line 19
|
|
return p1
|
|
|
|
.line 20
|
|
:cond_1
|
|
return v0
|
|
.end method
|
|
|
|
.method public o(Ljava/lang/Throwable;)Z
|
|
.locals 2
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/google/common/util/concurrent/AbstractFuture$Failure;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
invoke-direct {v0, p1}, Lcom/google/common/util/concurrent/AbstractFuture$Failure;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
const/4 p1, 0x0
|
|
|
|
.line 10
|
|
sget-object v1, Lcom/google/common/util/concurrent/AbstractFutureState;->k:Lcom/google/common/util/concurrent/AbstractFutureState$AtomicHelper;
|
|
|
|
.line 11
|
|
.line 12
|
|
invoke-virtual {v1, p0, p1, v0}, Lcom/google/common/util/concurrent/AbstractFutureState$AtomicHelper;->b(Lcom/google/common/util/concurrent/AbstractFutureState;Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
move-result p1
|
|
|
|
.line 16
|
|
const/4 v0, 0x0
|
|
|
|
.line 17
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 18
|
|
.line 19
|
|
invoke-static {p0, v0}, Lcom/google/common/util/concurrent/AbstractFuture;->f(Lcom/google/common/util/concurrent/AbstractFuture;Z)V
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
const/4 p1, 0x1
|
|
|
|
.line 23
|
|
return p1
|
|
|
|
.line 24
|
|
:cond_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public final p(Lcom/google/common/util/concurrent/ListenableFuture;)Z
|
|
.locals 5
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
iget-object v0, p0, Lcom/google/common/util/concurrent/AbstractFutureState;->c:Ljava/lang/Object;
|
|
|
|
.line 5
|
|
.line 6
|
|
const/4 v1, 0x0
|
|
|
|
.line 7
|
|
if-nez v0, :cond_2
|
|
|
|
.line 8
|
|
.line 9
|
|
invoke-interface {p1}, Ljava/util/concurrent/Future;->isDone()Z
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
move-result v0
|
|
|
|
.line 13
|
|
const/4 v2, 0x1
|
|
|
|
.line 14
|
|
const/4 v3, 0x0
|
|
|
|
.line 15
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 16
|
|
.line 17
|
|
invoke-static {p1}, Lcom/google/common/util/concurrent/AbstractFuture;->i(Lcom/google/common/util/concurrent/ListenableFuture;)Ljava/lang/Object;
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
move-result-object p1
|
|
|
|
.line 21
|
|
sget-object v0, Lcom/google/common/util/concurrent/AbstractFutureState;->k:Lcom/google/common/util/concurrent/AbstractFutureState$AtomicHelper;
|
|
|
|
.line 22
|
|
.line 23
|
|
invoke-virtual {v0, p0, v3, p1}, Lcom/google/common/util/concurrent/AbstractFutureState$AtomicHelper;->b(Lcom/google/common/util/concurrent/AbstractFutureState;Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
move-result p1
|
|
|
|
.line 27
|
|
if-eqz p1, :cond_3
|
|
|
|
.line 28
|
|
.line 29
|
|
invoke-static {p0, v1}, Lcom/google/common/util/concurrent/AbstractFuture;->f(Lcom/google/common/util/concurrent/AbstractFuture;Z)V
|
|
|
|
.line 30
|
|
.line 31
|
|
.line 32
|
|
return v2
|
|
|
|
.line 33
|
|
:cond_0
|
|
new-instance v0, Lcom/google/common/util/concurrent/AbstractFuture$DelegatingToFuture;
|
|
|
|
.line 34
|
|
.line 35
|
|
invoke-direct {v0, p0, p1}, Lcom/google/common/util/concurrent/AbstractFuture$DelegatingToFuture;-><init>(Lcom/google/common/util/concurrent/AbstractFuture;Lcom/google/common/util/concurrent/ListenableFuture;)V
|
|
|
|
.line 36
|
|
.line 37
|
|
.line 38
|
|
sget-object v4, Lcom/google/common/util/concurrent/AbstractFutureState;->k:Lcom/google/common/util/concurrent/AbstractFutureState$AtomicHelper;
|
|
|
|
.line 39
|
|
.line 40
|
|
invoke-virtual {v4, p0, v3, v0}, Lcom/google/common/util/concurrent/AbstractFutureState$AtomicHelper;->b(Lcom/google/common/util/concurrent/AbstractFutureState;Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
.line 41
|
|
.line 42
|
|
.line 43
|
|
move-result v3
|
|
|
|
.line 44
|
|
if-eqz v3, :cond_1
|
|
|
|
.line 45
|
|
.line 46
|
|
:try_start_0
|
|
sget-object v1, Lcom/google/common/util/concurrent/DirectExecutor;->c:Lcom/google/common/util/concurrent/DirectExecutor;
|
|
|
|
.line 47
|
|
.line 48
|
|
invoke-interface {p1, v0, v1}, Lcom/google/common/util/concurrent/ListenableFuture;->k(Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 49
|
|
.line 50
|
|
.line 51
|
|
return v2
|
|
|
|
.line 52
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
.line 53
|
|
:try_start_1
|
|
new-instance v1, Lcom/google/common/util/concurrent/AbstractFuture$Failure;
|
|
|
|
.line 54
|
|
.line 55
|
|
invoke-direct {v1, p1}, Lcom/google/common/util/concurrent/AbstractFuture$Failure;-><init>(Ljava/lang/Throwable;)V
|
|
:try_end_1
|
|
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
|
|
.catch Ljava/lang/Error; {:try_start_1 .. :try_end_1} :catch_0
|
|
|
|
.line 56
|
|
.line 57
|
|
.line 58
|
|
goto :goto_0
|
|
|
|
.line 59
|
|
:catch_0
|
|
sget-object v1, Lcom/google/common/util/concurrent/AbstractFuture$Failure;->b:Lcom/google/common/util/concurrent/AbstractFuture$Failure;
|
|
|
|
.line 60
|
|
.line 61
|
|
:goto_0
|
|
sget-object p1, Lcom/google/common/util/concurrent/AbstractFutureState;->k:Lcom/google/common/util/concurrent/AbstractFutureState$AtomicHelper;
|
|
|
|
.line 62
|
|
.line 63
|
|
invoke-virtual {p1, p0, v0, v1}, Lcom/google/common/util/concurrent/AbstractFutureState$AtomicHelper;->b(Lcom/google/common/util/concurrent/AbstractFutureState;Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
.line 64
|
|
.line 65
|
|
.line 66
|
|
return v2
|
|
|
|
.line 67
|
|
:cond_1
|
|
iget-object v0, p0, Lcom/google/common/util/concurrent/AbstractFutureState;->c:Ljava/lang/Object;
|
|
|
|
.line 68
|
|
.line 69
|
|
:cond_2
|
|
instance-of v2, v0, Lcom/google/common/util/concurrent/AbstractFuture$Cancellation;
|
|
|
|
.line 70
|
|
.line 71
|
|
if-eqz v2, :cond_3
|
|
|
|
.line 72
|
|
.line 73
|
|
check-cast v0, Lcom/google/common/util/concurrent/AbstractFuture$Cancellation;
|
|
|
|
.line 74
|
|
.line 75
|
|
iget-boolean v0, v0, Lcom/google/common/util/concurrent/AbstractFuture$Cancellation;->a:Z
|
|
|
|
.line 76
|
|
.line 77
|
|
invoke-interface {p1, v0}, Ljava/util/concurrent/Future;->cancel(Z)Z
|
|
|
|
.line 78
|
|
.line 79
|
|
.line 80
|
|
:cond_3
|
|
return v1
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 6
|
|
|
|
.line 1
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result-object v1
|
|
|
|
.line 10
|
|
invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
move-result-object v1
|
|
|
|
.line 14
|
|
const-string v2, "com.google.common.util.concurrent."
|
|
|
|
.line 15
|
|
.line 16
|
|
invoke-virtual {v1, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
move-result v1
|
|
|
|
.line 20
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 21
|
|
.line 22
|
|
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
move-result-object v1
|
|
|
|
.line 26
|
|
invoke-virtual {v1}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
move-result-object v1
|
|
|
|
.line 30
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 31
|
|
.line 32
|
|
.line 33
|
|
goto :goto_0
|
|
|
|
.line 34
|
|
:cond_0
|
|
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
move-result-object v1
|
|
|
|
.line 38
|
|
invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
.line 39
|
|
.line 40
|
|
.line 41
|
|
move-result-object v1
|
|
|
|
.line 42
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 43
|
|
.line 44
|
|
.line 45
|
|
:goto_0
|
|
const/16 v1, 0x40
|
|
|
|
.line 46
|
|
.line 47
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
.line 48
|
|
.line 49
|
|
.line 50
|
|
invoke-static {p0}, Ljava/lang/System;->identityHashCode(Ljava/lang/Object;)I
|
|
|
|
.line 51
|
|
.line 52
|
|
.line 53
|
|
move-result v1
|
|
|
|
.line 54
|
|
invoke-static {v1}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;
|
|
|
|
.line 55
|
|
.line 56
|
|
.line 57
|
|
move-result-object v1
|
|
|
|
.line 58
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 59
|
|
.line 60
|
|
.line 61
|
|
const-string v1, "[status="
|
|
|
|
.line 62
|
|
.line 63
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 64
|
|
.line 65
|
|
.line 66
|
|
invoke-virtual {p0}, Lcom/google/common/util/concurrent/AbstractFuture;->isCancelled()Z
|
|
|
|
.line 67
|
|
.line 68
|
|
.line 69
|
|
move-result v1
|
|
|
|
.line 70
|
|
const-string v2, "]"
|
|
|
|
.line 71
|
|
.line 72
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 73
|
|
.line 74
|
|
const-string v1, "CANCELLED"
|
|
|
|
.line 75
|
|
.line 76
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 77
|
|
.line 78
|
|
.line 79
|
|
goto/16 :goto_9
|
|
|
|
.line 80
|
|
.line 81
|
|
:cond_1
|
|
invoke-virtual {p0}, Lcom/google/common/util/concurrent/AbstractFuture;->isDone()Z
|
|
|
|
.line 82
|
|
.line 83
|
|
.line 84
|
|
move-result v1
|
|
|
|
.line 85
|
|
if-eqz v1, :cond_2
|
|
|
|
.line 86
|
|
.line 87
|
|
invoke-virtual {p0, v0}, Lcom/google/common/util/concurrent/AbstractFuture;->c(Ljava/lang/StringBuilder;)V
|
|
|
|
.line 88
|
|
.line 89
|
|
.line 90
|
|
goto/16 :goto_9
|
|
|
|
.line 91
|
|
.line 92
|
|
:cond_2
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->length()I
|
|
|
|
.line 93
|
|
.line 94
|
|
.line 95
|
|
move-result v1
|
|
|
|
.line 96
|
|
const-string v3, "PENDING"
|
|
|
|
.line 97
|
|
.line 98
|
|
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 99
|
|
.line 100
|
|
.line 101
|
|
iget-object v3, p0, Lcom/google/common/util/concurrent/AbstractFutureState;->c:Ljava/lang/Object;
|
|
|
|
.line 102
|
|
.line 103
|
|
instance-of v4, v3, Lcom/google/common/util/concurrent/AbstractFuture$DelegatingToFuture;
|
|
|
|
.line 104
|
|
.line 105
|
|
const-string v5, "Exception thrown from implementation: "
|
|
|
|
.line 106
|
|
.line 107
|
|
if-eqz v4, :cond_6
|
|
|
|
.line 108
|
|
.line 109
|
|
const-string v4, ", setFuture=["
|
|
|
|
.line 110
|
|
.line 111
|
|
invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 112
|
|
.line 113
|
|
.line 114
|
|
check-cast v3, Lcom/google/common/util/concurrent/AbstractFuture$DelegatingToFuture;
|
|
|
|
.line 115
|
|
.line 116
|
|
iget-object v3, v3, Lcom/google/common/util/concurrent/AbstractFuture$DelegatingToFuture;->f:Lcom/google/common/util/concurrent/ListenableFuture;
|
|
|
|
.line 117
|
|
.line 118
|
|
if-ne v3, p0, :cond_3
|
|
|
|
.line 119
|
|
.line 120
|
|
:try_start_0
|
|
const-string v3, "this future"
|
|
|
|
.line 121
|
|
.line 122
|
|
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 123
|
|
.line 124
|
|
.line 125
|
|
goto :goto_3
|
|
|
|
.line 126
|
|
:catchall_0
|
|
move-exception v3
|
|
|
|
.line 127
|
|
goto :goto_1
|
|
|
|
.line 128
|
|
:cond_3
|
|
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 129
|
|
.line 130
|
|
.line 131
|
|
goto :goto_3
|
|
|
|
.line 132
|
|
:goto_1
|
|
instance-of v4, v3, Ljava/lang/Error;
|
|
|
|
.line 133
|
|
.line 134
|
|
if-eqz v4, :cond_5
|
|
|
|
.line 135
|
|
.line 136
|
|
instance-of v4, v3, Ljava/lang/StackOverflowError;
|
|
|
|
.line 137
|
|
.line 138
|
|
if-eqz v4, :cond_4
|
|
|
|
.line 139
|
|
.line 140
|
|
goto :goto_2
|
|
|
|
.line 141
|
|
:cond_4
|
|
check-cast v3, Ljava/lang/Error;
|
|
|
|
.line 142
|
|
.line 143
|
|
throw v3
|
|
|
|
.line 144
|
|
:cond_5
|
|
:goto_2
|
|
invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 145
|
|
.line 146
|
|
.line 147
|
|
invoke-virtual {v3}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 148
|
|
.line 149
|
|
.line 150
|
|
move-result-object v3
|
|
|
|
.line 151
|
|
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
.line 152
|
|
.line 153
|
|
.line 154
|
|
:goto_3
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 155
|
|
.line 156
|
|
.line 157
|
|
goto :goto_8
|
|
|
|
.line 158
|
|
:cond_6
|
|
:try_start_1
|
|
invoke-virtual {p0}, Lcom/google/common/util/concurrent/AbstractFuture;->m()Ljava/lang/String;
|
|
|
|
.line 159
|
|
.line 160
|
|
.line 161
|
|
move-result-object v3
|
|
|
|
.line 162
|
|
if-eqz v3, :cond_7
|
|
|
|
.line 163
|
|
.line 164
|
|
invoke-virtual {v3}, Ljava/lang/String;->isEmpty()Z
|
|
|
|
.line 165
|
|
.line 166
|
|
.line 167
|
|
move-result v4
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
|
|
|
.line 168
|
|
if-eqz v4, :cond_a
|
|
|
|
.line 169
|
|
.line 170
|
|
goto :goto_4
|
|
|
|
.line 171
|
|
:catchall_1
|
|
move-exception v3
|
|
|
|
.line 172
|
|
goto :goto_5
|
|
|
|
.line 173
|
|
:cond_7
|
|
:goto_4
|
|
const/4 v3, 0x0
|
|
|
|
.line 174
|
|
goto :goto_7
|
|
|
|
.line 175
|
|
:goto_5
|
|
instance-of v4, v3, Ljava/lang/Error;
|
|
|
|
.line 176
|
|
.line 177
|
|
if-eqz v4, :cond_9
|
|
|
|
.line 178
|
|
.line 179
|
|
instance-of v4, v3, Ljava/lang/StackOverflowError;
|
|
|
|
.line 180
|
|
.line 181
|
|
if-eqz v4, :cond_8
|
|
|
|
.line 182
|
|
.line 183
|
|
goto :goto_6
|
|
|
|
.line 184
|
|
:cond_8
|
|
check-cast v3, Ljava/lang/Error;
|
|
|
|
.line 185
|
|
.line 186
|
|
throw v3
|
|
|
|
.line 187
|
|
:cond_9
|
|
:goto_6
|
|
new-instance v4, Ljava/lang/StringBuilder;
|
|
|
|
.line 188
|
|
.line 189
|
|
invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 190
|
|
.line 191
|
|
.line 192
|
|
invoke-virtual {v3}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 193
|
|
.line 194
|
|
.line 195
|
|
move-result-object v3
|
|
|
|
.line 196
|
|
invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
.line 197
|
|
.line 198
|
|
.line 199
|
|
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 200
|
|
.line 201
|
|
.line 202
|
|
move-result-object v3
|
|
|
|
.line 203
|
|
:cond_a
|
|
:goto_7
|
|
if-eqz v3, :cond_b
|
|
|
|
.line 204
|
|
.line 205
|
|
const-string v4, ", info=["
|
|
|
|
.line 206
|
|
.line 207
|
|
invoke-static {v0, v4, v3, v2}, Landroid/support/v4/media/a;->y(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 208
|
|
.line 209
|
|
.line 210
|
|
:cond_b
|
|
:goto_8
|
|
invoke-virtual {p0}, Lcom/google/common/util/concurrent/AbstractFuture;->isDone()Z
|
|
|
|
.line 211
|
|
.line 212
|
|
.line 213
|
|
move-result v3
|
|
|
|
.line 214
|
|
if-eqz v3, :cond_c
|
|
|
|
.line 215
|
|
.line 216
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->length()I
|
|
|
|
.line 217
|
|
.line 218
|
|
.line 219
|
|
move-result v3
|
|
|
|
.line 220
|
|
invoke-virtual {v0, v1, v3}, Ljava/lang/StringBuilder;->delete(II)Ljava/lang/StringBuilder;
|
|
|
|
.line 221
|
|
.line 222
|
|
.line 223
|
|
invoke-virtual {p0, v0}, Lcom/google/common/util/concurrent/AbstractFuture;->c(Ljava/lang/StringBuilder;)V
|
|
|
|
.line 224
|
|
.line 225
|
|
.line 226
|
|
:cond_c
|
|
:goto_9
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 227
|
|
.line 228
|
|
.line 229
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 230
|
|
.line 231
|
|
.line 232
|
|
move-result-object v0
|
|
|
|
.line 233
|
|
return-object v0
|
|
.end method
|