Add Discord APKTool decompilation (Smali source for modding)

- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3
- APKTool decompilation (Smali bytecode) for modding and rebuilding APK
- Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures
- Includes full Smali source, resources, and native libraries
- Ready to rebuild APK after modifications with apktool b command
- Added comprehensive README-apktool.md with modding guide

This branch complements the JADX branches:
- Use JADX (main/discord-community) to UNDERSTAND code (readable Java)
- Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali)

Total: 44,417 files, 538.51 MB Smali source code
This commit is contained in:
2026-02-18 16:13:44 -08:00
parent c080f0d97f
commit f3960ee359
44288 changed files with 10998761 additions and 0 deletions

View File

@@ -0,0 +1,395 @@
.class public final enum Lcom/google/ar/core/Anchor$CloudAnchorState;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/ar/core/Anchor;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "CloudAnchorState"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/ar/core/Anchor$CloudAnchorState;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/ar/core/Anchor$CloudAnchorState;
.field public static final enum ERROR_CLOUD_ID_NOT_FOUND:Lcom/google/ar/core/Anchor$CloudAnchorState;
.field public static final enum ERROR_HOSTING_DATASET_PROCESSING_FAILED:Lcom/google/ar/core/Anchor$CloudAnchorState;
.field public static final enum ERROR_HOSTING_SERVICE_UNAVAILABLE:Lcom/google/ar/core/Anchor$CloudAnchorState;
.field public static final enum ERROR_INTERNAL:Lcom/google/ar/core/Anchor$CloudAnchorState;
.field public static final enum ERROR_NOT_AUTHORIZED:Lcom/google/ar/core/Anchor$CloudAnchorState;
.field public static final enum ERROR_RESOLVING_LOCALIZATION_NO_MATCH:Lcom/google/ar/core/Anchor$CloudAnchorState;
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.end field
.field public static final enum ERROR_RESOLVING_SDK_VERSION_TOO_NEW:Lcom/google/ar/core/Anchor$CloudAnchorState;
.field public static final enum ERROR_RESOLVING_SDK_VERSION_TOO_OLD:Lcom/google/ar/core/Anchor$CloudAnchorState;
.field public static final enum ERROR_RESOURCE_EXHAUSTED:Lcom/google/ar/core/Anchor$CloudAnchorState;
.field public static final enum ERROR_SERVICE_UNAVAILABLE:Lcom/google/ar/core/Anchor$CloudAnchorState;
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.end field
.field public static final enum NONE:Lcom/google/ar/core/Anchor$CloudAnchorState;
.field public static final enum SUCCESS:Lcom/google/ar/core/Anchor$CloudAnchorState;
.field public static final enum TASK_IN_PROGRESS:Lcom/google/ar/core/Anchor$CloudAnchorState;
# instance fields
.field final nativeCode:I
# direct methods
.method private static synthetic $values()[Lcom/google/ar/core/Anchor$CloudAnchorState;
.locals 13
sget-object v0, Lcom/google/ar/core/Anchor$CloudAnchorState;->NONE:Lcom/google/ar/core/Anchor$CloudAnchorState;
sget-object v1, Lcom/google/ar/core/Anchor$CloudAnchorState;->TASK_IN_PROGRESS:Lcom/google/ar/core/Anchor$CloudAnchorState;
sget-object v2, Lcom/google/ar/core/Anchor$CloudAnchorState;->SUCCESS:Lcom/google/ar/core/Anchor$CloudAnchorState;
sget-object v3, Lcom/google/ar/core/Anchor$CloudAnchorState;->ERROR_INTERNAL:Lcom/google/ar/core/Anchor$CloudAnchorState;
sget-object v4, Lcom/google/ar/core/Anchor$CloudAnchorState;->ERROR_NOT_AUTHORIZED:Lcom/google/ar/core/Anchor$CloudAnchorState;
sget-object v5, Lcom/google/ar/core/Anchor$CloudAnchorState;->ERROR_SERVICE_UNAVAILABLE:Lcom/google/ar/core/Anchor$CloudAnchorState;
sget-object v6, Lcom/google/ar/core/Anchor$CloudAnchorState;->ERROR_RESOURCE_EXHAUSTED:Lcom/google/ar/core/Anchor$CloudAnchorState;
sget-object v7, Lcom/google/ar/core/Anchor$CloudAnchorState;->ERROR_HOSTING_DATASET_PROCESSING_FAILED:Lcom/google/ar/core/Anchor$CloudAnchorState;
sget-object v8, Lcom/google/ar/core/Anchor$CloudAnchorState;->ERROR_CLOUD_ID_NOT_FOUND:Lcom/google/ar/core/Anchor$CloudAnchorState;
sget-object v9, Lcom/google/ar/core/Anchor$CloudAnchorState;->ERROR_RESOLVING_LOCALIZATION_NO_MATCH:Lcom/google/ar/core/Anchor$CloudAnchorState;
sget-object v10, Lcom/google/ar/core/Anchor$CloudAnchorState;->ERROR_RESOLVING_SDK_VERSION_TOO_OLD:Lcom/google/ar/core/Anchor$CloudAnchorState;
sget-object v11, Lcom/google/ar/core/Anchor$CloudAnchorState;->ERROR_RESOLVING_SDK_VERSION_TOO_NEW:Lcom/google/ar/core/Anchor$CloudAnchorState;
sget-object v12, Lcom/google/ar/core/Anchor$CloudAnchorState;->ERROR_HOSTING_SERVICE_UNAVAILABLE:Lcom/google/ar/core/Anchor$CloudAnchorState;
filled-new-array/range {v0 .. v12}, [Lcom/google/ar/core/Anchor$CloudAnchorState;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 4
.line 1
new-instance v0, Lcom/google/ar/core/Anchor$CloudAnchorState;
const-string v1, "NONE"
const/4 v2, 0x0
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/Anchor$CloudAnchorState;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Anchor$CloudAnchorState;->NONE:Lcom/google/ar/core/Anchor$CloudAnchorState;
new-instance v0, Lcom/google/ar/core/Anchor$CloudAnchorState;
const-string v1, "TASK_IN_PROGRESS"
const/4 v2, 0x1
.line 2
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/Anchor$CloudAnchorState;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Anchor$CloudAnchorState;->TASK_IN_PROGRESS:Lcom/google/ar/core/Anchor$CloudAnchorState;
new-instance v0, Lcom/google/ar/core/Anchor$CloudAnchorState;
const-string v1, "SUCCESS"
const/4 v2, 0x2
.line 3
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/Anchor$CloudAnchorState;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Anchor$CloudAnchorState;->SUCCESS:Lcom/google/ar/core/Anchor$CloudAnchorState;
new-instance v0, Lcom/google/ar/core/Anchor$CloudAnchorState;
const/4 v1, 0x3
const/4 v2, -0x1
const-string v3, "ERROR_INTERNAL"
.line 4
invoke-direct {v0, v3, v1, v2}, Lcom/google/ar/core/Anchor$CloudAnchorState;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Anchor$CloudAnchorState;->ERROR_INTERNAL:Lcom/google/ar/core/Anchor$CloudAnchorState;
new-instance v0, Lcom/google/ar/core/Anchor$CloudAnchorState;
const/4 v1, 0x4
const/4 v2, -0x2
const-string v3, "ERROR_NOT_AUTHORIZED"
.line 5
invoke-direct {v0, v3, v1, v2}, Lcom/google/ar/core/Anchor$CloudAnchorState;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Anchor$CloudAnchorState;->ERROR_NOT_AUTHORIZED:Lcom/google/ar/core/Anchor$CloudAnchorState;
new-instance v0, Lcom/google/ar/core/Anchor$CloudAnchorState;
const/4 v1, 0x5
const/4 v2, -0x3
const-string v3, "ERROR_SERVICE_UNAVAILABLE"
.line 6
invoke-direct {v0, v3, v1, v2}, Lcom/google/ar/core/Anchor$CloudAnchorState;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Anchor$CloudAnchorState;->ERROR_SERVICE_UNAVAILABLE:Lcom/google/ar/core/Anchor$CloudAnchorState;
new-instance v0, Lcom/google/ar/core/Anchor$CloudAnchorState;
const/4 v1, 0x6
const/4 v2, -0x4
const-string v3, "ERROR_RESOURCE_EXHAUSTED"
.line 7
invoke-direct {v0, v3, v1, v2}, Lcom/google/ar/core/Anchor$CloudAnchorState;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Anchor$CloudAnchorState;->ERROR_RESOURCE_EXHAUSTED:Lcom/google/ar/core/Anchor$CloudAnchorState;
new-instance v0, Lcom/google/ar/core/Anchor$CloudAnchorState;
const/4 v1, 0x7
const/4 v2, -0x5
const-string v3, "ERROR_HOSTING_DATASET_PROCESSING_FAILED"
.line 8
invoke-direct {v0, v3, v1, v2}, Lcom/google/ar/core/Anchor$CloudAnchorState;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Anchor$CloudAnchorState;->ERROR_HOSTING_DATASET_PROCESSING_FAILED:Lcom/google/ar/core/Anchor$CloudAnchorState;
new-instance v0, Lcom/google/ar/core/Anchor$CloudAnchorState;
const/16 v1, 0x8
const/4 v2, -0x6
const-string v3, "ERROR_CLOUD_ID_NOT_FOUND"
.line 9
invoke-direct {v0, v3, v1, v2}, Lcom/google/ar/core/Anchor$CloudAnchorState;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Anchor$CloudAnchorState;->ERROR_CLOUD_ID_NOT_FOUND:Lcom/google/ar/core/Anchor$CloudAnchorState;
new-instance v0, Lcom/google/ar/core/Anchor$CloudAnchorState;
const/16 v1, 0x9
const/4 v2, -0x7
const-string v3, "ERROR_RESOLVING_LOCALIZATION_NO_MATCH"
.line 10
invoke-direct {v0, v3, v1, v2}, Lcom/google/ar/core/Anchor$CloudAnchorState;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Anchor$CloudAnchorState;->ERROR_RESOLVING_LOCALIZATION_NO_MATCH:Lcom/google/ar/core/Anchor$CloudAnchorState;
new-instance v0, Lcom/google/ar/core/Anchor$CloudAnchorState;
const/16 v1, 0xa
const/4 v2, -0x8
const-string v3, "ERROR_RESOLVING_SDK_VERSION_TOO_OLD"
.line 11
invoke-direct {v0, v3, v1, v2}, Lcom/google/ar/core/Anchor$CloudAnchorState;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Anchor$CloudAnchorState;->ERROR_RESOLVING_SDK_VERSION_TOO_OLD:Lcom/google/ar/core/Anchor$CloudAnchorState;
new-instance v0, Lcom/google/ar/core/Anchor$CloudAnchorState;
const/16 v1, 0xb
const/16 v2, -0x9
const-string v3, "ERROR_RESOLVING_SDK_VERSION_TOO_NEW"
.line 12
invoke-direct {v0, v3, v1, v2}, Lcom/google/ar/core/Anchor$CloudAnchorState;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Anchor$CloudAnchorState;->ERROR_RESOLVING_SDK_VERSION_TOO_NEW:Lcom/google/ar/core/Anchor$CloudAnchorState;
new-instance v0, Lcom/google/ar/core/Anchor$CloudAnchorState;
const/16 v1, 0xc
const/16 v2, -0xa
const-string v3, "ERROR_HOSTING_SERVICE_UNAVAILABLE"
.line 13
invoke-direct {v0, v3, v1, v2}, Lcom/google/ar/core/Anchor$CloudAnchorState;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Anchor$CloudAnchorState;->ERROR_HOSTING_SERVICE_UNAVAILABLE:Lcom/google/ar/core/Anchor$CloudAnchorState;
.line 14
invoke-static {}, Lcom/google/ar/core/Anchor$CloudAnchorState;->$values()[Lcom/google/ar/core/Anchor$CloudAnchorState;
move-result-object v0
sput-object v0, Lcom/google/ar/core/Anchor$CloudAnchorState;->$VALUES:[Lcom/google/ar/core/Anchor$CloudAnchorState;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput p3, p0, Lcom/google/ar/core/Anchor$CloudAnchorState;->nativeCode:I
return-void
.end method
.method public static forNumber(I)Lcom/google/ar/core/Anchor$CloudAnchorState;
.locals 5
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-static {}, Lcom/google/ar/core/Anchor$CloudAnchorState;->values()[Lcom/google/ar/core/Anchor$CloudAnchorState;
move-result-object v0
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_1
aget-object v3, v0, v2
.line 2
iget v4, v3, Lcom/google/ar/core/Anchor$CloudAnchorState;->nativeCode:I
if-ne v4, p0, :cond_0
return-object v3
:cond_0
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
new-instance v0, Lcom/google/ar/core/exceptions/FatalException;
new-instance v1, Ljava/lang/StringBuilder;
.line 3
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Unexpected value for native CloudAnchorState, value="
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Lcom/google/ar/core/exceptions/FatalException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/ar/core/Anchor$CloudAnchorState;
.locals 1
const-class v0, Lcom/google/ar/core/Anchor$CloudAnchorState;
.line 1
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/ar/core/Anchor$CloudAnchorState;
return-object p0
.end method
.method public static values()[Lcom/google/ar/core/Anchor$CloudAnchorState;
.locals 1
sget-object v0, Lcom/google/ar/core/Anchor$CloudAnchorState;->$VALUES:[Lcom/google/ar/core/Anchor$CloudAnchorState;
.line 1
invoke-virtual {v0}, [Lcom/google/ar/core/Anchor$CloudAnchorState;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/ar/core/Anchor$CloudAnchorState;
return-object v0
.end method
# virtual methods
.method public isError()Z
.locals 1
iget v0, p0, Lcom/google/ar/core/Anchor$CloudAnchorState;->nativeCode:I
if-gez v0, :cond_0
const/4 v0, 0x1
return v0
:cond_0
const/4 v0, 0x0
return v0
.end method

View File

@@ -0,0 +1,256 @@
.class public Lcom/google/ar/core/Anchor;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/ar/core/Anchor$CloudAnchorState;
}
.end annotation
# instance fields
.field nativeHandle:J
.field final nativeSymbolTableHandle:J
.field private final session:Lcom/google/ar/core/Session;
# direct methods
.method public constructor <init>()V
.locals 2
.line 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput-object v0, p0, Lcom/google/ar/core/Anchor;->session:Lcom/google/ar/core/Session;
const-wide/16 v0, 0x0
iput-wide v0, p0, Lcom/google/ar/core/Anchor;->nativeHandle:J
iput-wide v0, p0, Lcom/google/ar/core/Anchor;->nativeSymbolTableHandle:J
return-void
.end method
.method public constructor <init>(JLcom/google/ar/core/Session;)V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p3, p0, Lcom/google/ar/core/Anchor;->session:Lcom/google/ar/core/Session;
iput-wide p1, p0, Lcom/google/ar/core/Anchor;->nativeHandle:J
iget-wide p1, p3, Lcom/google/ar/core/Session;->nativeSymbolTableHandle:J
iput-wide p1, p0, Lcom/google/ar/core/Anchor;->nativeSymbolTableHandle:J
return-void
.end method
.method private native nativeDetach(JJ)V
.end method
.method private native nativeGetCloudAnchorId(JJ)Ljava/lang/String;
.end method
.method private native nativeGetCloudAnchorState(JJ)I
.end method
.method private native nativeGetPose(JJ)Lcom/google/ar/core/Pose;
.end method
.method private native nativeGetTrackingState(JJ)I
.end method
.method private static native nativeReleaseAnchor(JJ)V
.end method
# virtual methods
.method public detach()V
.locals 4
iget-object v0, p0, Lcom/google/ar/core/Anchor;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/Anchor;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/Anchor;->nativeDetach(JJ)V
return-void
.end method
.method public equals(Ljava/lang/Object;)Z
.locals 6
.line 1
instance-of v0, p1, Lcom/google/ar/core/Anchor;
const/4 v1, 0x0
if-nez v0, :cond_0
return v1
.line 2
:cond_0
check-cast p1, Lcom/google/ar/core/Anchor;
.line 3
iget-wide v2, p1, Lcom/google/ar/core/Anchor;->nativeHandle:J
iget-wide v4, p0, Lcom/google/ar/core/Anchor;->nativeHandle:J
cmp-long p1, v2, v4
if-nez p1, :cond_1
const/4 p1, 0x1
return p1
:cond_1
return v1
.end method
.method public finalize()V
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
iget-wide v0, p0, Lcom/google/ar/core/Anchor;->nativeHandle:J
const-wide/16 v2, 0x0
cmp-long v2, v0, v2
if-eqz v2, :cond_0
iget-wide v2, p0, Lcom/google/ar/core/Anchor;->nativeSymbolTableHandle:J
.line 1
invoke-static {v2, v3, v0, v1}, Lcom/google/ar/core/Anchor;->nativeReleaseAnchor(JJ)V
.line 2
:cond_0
invoke-super {p0}, Ljava/lang/Object;->finalize()V
return-void
.end method
.method public getCloudAnchorId()Ljava/lang/String;
.locals 4
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/Anchor;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/Anchor;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/Anchor;->nativeGetCloudAnchorId(JJ)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public getCloudAnchorState()Lcom/google/ar/core/Anchor$CloudAnchorState;
.locals 4
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/Anchor;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/Anchor;->nativeHandle:J
.line 2
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/Anchor;->nativeGetCloudAnchorState(JJ)I
move-result v0
.line 1
invoke-static {v0}, Lcom/google/ar/core/Anchor$CloudAnchorState;->forNumber(I)Lcom/google/ar/core/Anchor$CloudAnchorState;
move-result-object v0
return-object v0
.end method
.method public getPose()Lcom/google/ar/core/Pose;
.locals 4
iget-object v0, p0, Lcom/google/ar/core/Anchor;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/Anchor;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/Anchor;->nativeGetPose(JJ)Lcom/google/ar/core/Pose;
move-result-object v0
return-object v0
.end method
.method public getTrackingState()Lcom/google/ar/core/TrackingState;
.locals 4
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/Anchor;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/Anchor;->nativeHandle:J
.line 2
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/Anchor;->nativeGetTrackingState(JJ)I
move-result v0
.line 1
invoke-static {v0}, Lcom/google/ar/core/TrackingState;->forNumber(I)Lcom/google/ar/core/TrackingState;
move-result-object v0
return-object v0
.end method
.method public hashCode()I
.locals 2
iget-wide v0, p0, Lcom/google/ar/core/Anchor;->nativeHandle:J
.line 1
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Long;->hashCode()I
move-result v0
return v0
.end method

View File

@@ -0,0 +1,3 @@
.class public final synthetic Lcom/google/ar/core/ArCoreApk$Availability$1-IA;
.super Ljava/lang/Object;
.source "SourceFile"

View File

@@ -0,0 +1,3 @@
.class public final synthetic Lcom/google/ar/core/ArCoreApk$Availability$2-IA;
.super Ljava/lang/Object;
.source "SourceFile"

View File

@@ -0,0 +1,3 @@
.class public final synthetic Lcom/google/ar/core/ArCoreApk$Availability$3-IA;
.super Ljava/lang/Object;
.source "SourceFile"

View File

@@ -0,0 +1,3 @@
.class public final synthetic Lcom/google/ar/core/ArCoreApk$Availability$4-IA;
.super Ljava/lang/Object;
.source "SourceFile"

View File

@@ -0,0 +1,3 @@
.class public final synthetic Lcom/google/ar/core/ArCoreApk$Availability$5-IA;
.super Ljava/lang/Object;
.source "SourceFile"

View File

@@ -0,0 +1,3 @@
.class public final synthetic Lcom/google/ar/core/ArCoreApk$Availability$6-IA;
.super Ljava/lang/Object;
.source "SourceFile"

View File

@@ -0,0 +1,3 @@
.class public final synthetic Lcom/google/ar/core/ArCoreApk$Availability$7-IA;
.super Ljava/lang/Object;
.source "SourceFile"

View File

@@ -0,0 +1,3 @@
.class public final synthetic Lcom/google/ar/core/ArCoreApk$Availability-IA;
.super Ljava/lang/Object;
.source "SourceFile"

View File

@@ -0,0 +1,303 @@
.class public enum Lcom/google/ar/core/ArCoreApk$Availability;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/ar/core/ArCoreApk;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4009
name = "Availability"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/ar/core/ArCoreApk$Availability;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/ar/core/ArCoreApk$Availability;
.field public static final enum SUPPORTED_APK_TOO_OLD:Lcom/google/ar/core/ArCoreApk$Availability;
.field public static final enum SUPPORTED_INSTALLED:Lcom/google/ar/core/ArCoreApk$Availability;
.field public static final enum SUPPORTED_NOT_INSTALLED:Lcom/google/ar/core/ArCoreApk$Availability;
.field public static final enum UNKNOWN_CHECKING:Lcom/google/ar/core/ArCoreApk$Availability;
.field public static final enum UNKNOWN_ERROR:Lcom/google/ar/core/ArCoreApk$Availability;
.field public static final enum UNKNOWN_TIMED_OUT:Lcom/google/ar/core/ArCoreApk$Availability;
.field public static final enum UNSUPPORTED_DEVICE_NOT_CAPABLE:Lcom/google/ar/core/ArCoreApk$Availability;
# instance fields
.field final nativeCode:I
# direct methods
.method private static synthetic $values()[Lcom/google/ar/core/ArCoreApk$Availability;
.locals 3
const/4 v0, 0x7
new-array v0, v0, [Lcom/google/ar/core/ArCoreApk$Availability;
const/4 v1, 0x0
sget-object v2, Lcom/google/ar/core/ArCoreApk$Availability;->UNKNOWN_ERROR:Lcom/google/ar/core/ArCoreApk$Availability;
aput-object v2, v0, v1
const/4 v1, 0x1
sget-object v2, Lcom/google/ar/core/ArCoreApk$Availability;->UNKNOWN_CHECKING:Lcom/google/ar/core/ArCoreApk$Availability;
aput-object v2, v0, v1
const/4 v1, 0x2
sget-object v2, Lcom/google/ar/core/ArCoreApk$Availability;->UNKNOWN_TIMED_OUT:Lcom/google/ar/core/ArCoreApk$Availability;
aput-object v2, v0, v1
const/4 v1, 0x3
sget-object v2, Lcom/google/ar/core/ArCoreApk$Availability;->UNSUPPORTED_DEVICE_NOT_CAPABLE:Lcom/google/ar/core/ArCoreApk$Availability;
aput-object v2, v0, v1
const/4 v1, 0x4
sget-object v2, Lcom/google/ar/core/ArCoreApk$Availability;->SUPPORTED_NOT_INSTALLED:Lcom/google/ar/core/ArCoreApk$Availability;
aput-object v2, v0, v1
const/4 v1, 0x5
sget-object v2, Lcom/google/ar/core/ArCoreApk$Availability;->SUPPORTED_APK_TOO_OLD:Lcom/google/ar/core/ArCoreApk$Availability;
aput-object v2, v0, v1
const/4 v1, 0x6
sget-object v2, Lcom/google/ar/core/ArCoreApk$Availability;->SUPPORTED_INSTALLED:Lcom/google/ar/core/ArCoreApk$Availability;
aput-object v2, v0, v1
return-object v0
.end method
.method static constructor <clinit>()V
.locals 1
.line 1
new-instance v0, Lcom/google/ar/core/a;
invoke-direct {v0}, Lcom/google/ar/core/a;-><init>()V
sput-object v0, Lcom/google/ar/core/ArCoreApk$Availability;->UNKNOWN_ERROR:Lcom/google/ar/core/ArCoreApk$Availability;
new-instance v0, Lcom/google/ar/core/b;
.line 2
invoke-direct {v0}, Lcom/google/ar/core/b;-><init>()V
sput-object v0, Lcom/google/ar/core/ArCoreApk$Availability;->UNKNOWN_CHECKING:Lcom/google/ar/core/ArCoreApk$Availability;
new-instance v0, Lcom/google/ar/core/c;
.line 3
invoke-direct {v0}, Lcom/google/ar/core/c;-><init>()V
sput-object v0, Lcom/google/ar/core/ArCoreApk$Availability;->UNKNOWN_TIMED_OUT:Lcom/google/ar/core/ArCoreApk$Availability;
new-instance v0, Lcom/google/ar/core/d;
.line 4
invoke-direct {v0}, Lcom/google/ar/core/d;-><init>()V
sput-object v0, Lcom/google/ar/core/ArCoreApk$Availability;->UNSUPPORTED_DEVICE_NOT_CAPABLE:Lcom/google/ar/core/ArCoreApk$Availability;
new-instance v0, Lcom/google/ar/core/e;
.line 5
invoke-direct {v0}, Lcom/google/ar/core/e;-><init>()V
sput-object v0, Lcom/google/ar/core/ArCoreApk$Availability;->SUPPORTED_NOT_INSTALLED:Lcom/google/ar/core/ArCoreApk$Availability;
new-instance v0, Lcom/google/ar/core/f;
.line 6
invoke-direct {v0}, Lcom/google/ar/core/f;-><init>()V
sput-object v0, Lcom/google/ar/core/ArCoreApk$Availability;->SUPPORTED_APK_TOO_OLD:Lcom/google/ar/core/ArCoreApk$Availability;
new-instance v0, Lcom/google/ar/core/g;
.line 7
invoke-direct {v0}, Lcom/google/ar/core/g;-><init>()V
sput-object v0, Lcom/google/ar/core/ArCoreApk$Availability;->SUPPORTED_INSTALLED:Lcom/google/ar/core/ArCoreApk$Availability;
.line 8
invoke-static {}, Lcom/google/ar/core/ArCoreApk$Availability;->$values()[Lcom/google/ar/core/ArCoreApk$Availability;
move-result-object v0
sput-object v0, Lcom/google/ar/core/ArCoreApk$Availability;->$VALUES:[Lcom/google/ar/core/ArCoreApk$Availability;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput p3, p0, Lcom/google/ar/core/ArCoreApk$Availability;->nativeCode:I
return-void
.end method
.method public synthetic constructor <init>(Ljava/lang/String;IILcom/google/ar/core/ArCoreApk$Availability-IA;)V
.locals 0
.line 0
invoke-direct {p0, p1, p2, p3}, Lcom/google/ar/core/ArCoreApk$Availability;-><init>(Ljava/lang/String;II)V
return-void
.end method
.method public static forNumber(I)Lcom/google/ar/core/ArCoreApk$Availability;
.locals 5
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-static {}, Lcom/google/ar/core/ArCoreApk$Availability;->values()[Lcom/google/ar/core/ArCoreApk$Availability;
move-result-object v0
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_1
aget-object v3, v0, v2
.line 2
iget v4, v3, Lcom/google/ar/core/ArCoreApk$Availability;->nativeCode:I
if-ne v4, p0, :cond_0
return-object v3
:cond_0
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
new-instance v0, Lcom/google/ar/core/exceptions/FatalException;
new-instance v1, Ljava/lang/StringBuilder;
.line 3
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Unexpected value for native Availability, value="
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Lcom/google/ar/core/exceptions/FatalException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/ar/core/ArCoreApk$Availability;
.locals 1
const-class v0, Lcom/google/ar/core/ArCoreApk$Availability;
.line 1
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/ar/core/ArCoreApk$Availability;
return-object p0
.end method
.method public static values()[Lcom/google/ar/core/ArCoreApk$Availability;
.locals 1
sget-object v0, Lcom/google/ar/core/ArCoreApk$Availability;->$VALUES:[Lcom/google/ar/core/ArCoreApk$Availability;
.line 1
invoke-virtual {v0}, [Lcom/google/ar/core/ArCoreApk$Availability;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/ar/core/ArCoreApk$Availability;
return-object v0
.end method
# virtual methods
.method public isSupported()Z
.locals 1
const/4 v0, 0x0
return v0
.end method
.method public isTransient()Z
.locals 1
const/4 v0, 0x0
return v0
.end method
.method public isUnknown()Z
.locals 1
const/4 v0, 0x0
return v0
.end method
.method public isUnsupported()Z
.locals 1
const/4 v0, 0x0
return v0
.end method

View File

@@ -0,0 +1,185 @@
.class public final enum Lcom/google/ar/core/ArCoreApk$InstallBehavior;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/ar/core/ArCoreApk;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "InstallBehavior"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/ar/core/ArCoreApk$InstallBehavior;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/ar/core/ArCoreApk$InstallBehavior;
.field public static final enum OPTIONAL:Lcom/google/ar/core/ArCoreApk$InstallBehavior;
.field public static final enum REQUIRED:Lcom/google/ar/core/ArCoreApk$InstallBehavior;
# instance fields
.field final nativeCode:I
# direct methods
.method private static synthetic $values()[Lcom/google/ar/core/ArCoreApk$InstallBehavior;
.locals 2
sget-object v0, Lcom/google/ar/core/ArCoreApk$InstallBehavior;->REQUIRED:Lcom/google/ar/core/ArCoreApk$InstallBehavior;
sget-object v1, Lcom/google/ar/core/ArCoreApk$InstallBehavior;->OPTIONAL:Lcom/google/ar/core/ArCoreApk$InstallBehavior;
filled-new-array {v0, v1}, [Lcom/google/ar/core/ArCoreApk$InstallBehavior;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 3
.line 1
new-instance v0, Lcom/google/ar/core/ArCoreApk$InstallBehavior;
const-string v1, "REQUIRED"
const/4 v2, 0x0
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/ArCoreApk$InstallBehavior;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/ArCoreApk$InstallBehavior;->REQUIRED:Lcom/google/ar/core/ArCoreApk$InstallBehavior;
new-instance v0, Lcom/google/ar/core/ArCoreApk$InstallBehavior;
const-string v1, "OPTIONAL"
const/4 v2, 0x1
.line 2
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/ArCoreApk$InstallBehavior;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/ArCoreApk$InstallBehavior;->OPTIONAL:Lcom/google/ar/core/ArCoreApk$InstallBehavior;
.line 3
invoke-static {}, Lcom/google/ar/core/ArCoreApk$InstallBehavior;->$values()[Lcom/google/ar/core/ArCoreApk$InstallBehavior;
move-result-object v0
sput-object v0, Lcom/google/ar/core/ArCoreApk$InstallBehavior;->$VALUES:[Lcom/google/ar/core/ArCoreApk$InstallBehavior;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput p3, p0, Lcom/google/ar/core/ArCoreApk$InstallBehavior;->nativeCode:I
return-void
.end method
.method public static forNumber(I)Lcom/google/ar/core/ArCoreApk$InstallBehavior;
.locals 5
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-static {}, Lcom/google/ar/core/ArCoreApk$InstallBehavior;->values()[Lcom/google/ar/core/ArCoreApk$InstallBehavior;
move-result-object v0
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_1
aget-object v3, v0, v2
.line 2
iget v4, v3, Lcom/google/ar/core/ArCoreApk$InstallBehavior;->nativeCode:I
if-ne v4, p0, :cond_0
return-object v3
:cond_0
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
new-instance v0, Lcom/google/ar/core/exceptions/FatalException;
new-instance v1, Ljava/lang/StringBuilder;
.line 3
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Unexpected value for native InstallBehavior, value="
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Lcom/google/ar/core/exceptions/FatalException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/ar/core/ArCoreApk$InstallBehavior;
.locals 1
const-class v0, Lcom/google/ar/core/ArCoreApk$InstallBehavior;
.line 1
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/ar/core/ArCoreApk$InstallBehavior;
return-object p0
.end method
.method public static values()[Lcom/google/ar/core/ArCoreApk$InstallBehavior;
.locals 1
sget-object v0, Lcom/google/ar/core/ArCoreApk$InstallBehavior;->$VALUES:[Lcom/google/ar/core/ArCoreApk$InstallBehavior;
.line 1
invoke-virtual {v0}, [Lcom/google/ar/core/ArCoreApk$InstallBehavior;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/ar/core/ArCoreApk$InstallBehavior;
return-object v0
.end method

View File

@@ -0,0 +1,185 @@
.class public final enum Lcom/google/ar/core/ArCoreApk$InstallStatus;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/ar/core/ArCoreApk;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "InstallStatus"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/ar/core/ArCoreApk$InstallStatus;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/ar/core/ArCoreApk$InstallStatus;
.field public static final enum INSTALLED:Lcom/google/ar/core/ArCoreApk$InstallStatus;
.field public static final enum INSTALL_REQUESTED:Lcom/google/ar/core/ArCoreApk$InstallStatus;
# instance fields
.field final nativeCode:I
# direct methods
.method private static synthetic $values()[Lcom/google/ar/core/ArCoreApk$InstallStatus;
.locals 2
sget-object v0, Lcom/google/ar/core/ArCoreApk$InstallStatus;->INSTALLED:Lcom/google/ar/core/ArCoreApk$InstallStatus;
sget-object v1, Lcom/google/ar/core/ArCoreApk$InstallStatus;->INSTALL_REQUESTED:Lcom/google/ar/core/ArCoreApk$InstallStatus;
filled-new-array {v0, v1}, [Lcom/google/ar/core/ArCoreApk$InstallStatus;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 3
.line 1
new-instance v0, Lcom/google/ar/core/ArCoreApk$InstallStatus;
const-string v1, "INSTALLED"
const/4 v2, 0x0
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/ArCoreApk$InstallStatus;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/ArCoreApk$InstallStatus;->INSTALLED:Lcom/google/ar/core/ArCoreApk$InstallStatus;
new-instance v0, Lcom/google/ar/core/ArCoreApk$InstallStatus;
const-string v1, "INSTALL_REQUESTED"
const/4 v2, 0x1
.line 2
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/ArCoreApk$InstallStatus;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/ArCoreApk$InstallStatus;->INSTALL_REQUESTED:Lcom/google/ar/core/ArCoreApk$InstallStatus;
.line 3
invoke-static {}, Lcom/google/ar/core/ArCoreApk$InstallStatus;->$values()[Lcom/google/ar/core/ArCoreApk$InstallStatus;
move-result-object v0
sput-object v0, Lcom/google/ar/core/ArCoreApk$InstallStatus;->$VALUES:[Lcom/google/ar/core/ArCoreApk$InstallStatus;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput p3, p0, Lcom/google/ar/core/ArCoreApk$InstallStatus;->nativeCode:I
return-void
.end method
.method public static forNumber(I)Lcom/google/ar/core/ArCoreApk$InstallStatus;
.locals 5
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-static {}, Lcom/google/ar/core/ArCoreApk$InstallStatus;->values()[Lcom/google/ar/core/ArCoreApk$InstallStatus;
move-result-object v0
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_1
aget-object v3, v0, v2
.line 2
iget v4, v3, Lcom/google/ar/core/ArCoreApk$InstallStatus;->nativeCode:I
if-ne v4, p0, :cond_0
return-object v3
:cond_0
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
new-instance v0, Lcom/google/ar/core/exceptions/FatalException;
new-instance v1, Ljava/lang/StringBuilder;
.line 3
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Unexpected value for native InstallStatus, value="
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Lcom/google/ar/core/exceptions/FatalException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/ar/core/ArCoreApk$InstallStatus;
.locals 1
const-class v0, Lcom/google/ar/core/ArCoreApk$InstallStatus;
.line 1
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/ar/core/ArCoreApk$InstallStatus;
return-object p0
.end method
.method public static values()[Lcom/google/ar/core/ArCoreApk$InstallStatus;
.locals 1
sget-object v0, Lcom/google/ar/core/ArCoreApk$InstallStatus;->$VALUES:[Lcom/google/ar/core/ArCoreApk$InstallStatus;
.line 1
invoke-virtual {v0}, [Lcom/google/ar/core/ArCoreApk$InstallStatus;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/ar/core/ArCoreApk$InstallStatus;
return-object v0
.end method

View File

@@ -0,0 +1,200 @@
.class public final enum Lcom/google/ar/core/ArCoreApk$UserMessageType;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/ar/core/ArCoreApk;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "UserMessageType"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/ar/core/ArCoreApk$UserMessageType;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/ar/core/ArCoreApk$UserMessageType;
.field public static final enum APPLICATION:Lcom/google/ar/core/ArCoreApk$UserMessageType;
.field public static final enum FEATURE:Lcom/google/ar/core/ArCoreApk$UserMessageType;
.field public static final enum USER_ALREADY_INFORMED:Lcom/google/ar/core/ArCoreApk$UserMessageType;
# instance fields
.field final nativeCode:I
# direct methods
.method private static synthetic $values()[Lcom/google/ar/core/ArCoreApk$UserMessageType;
.locals 3
sget-object v0, Lcom/google/ar/core/ArCoreApk$UserMessageType;->APPLICATION:Lcom/google/ar/core/ArCoreApk$UserMessageType;
sget-object v1, Lcom/google/ar/core/ArCoreApk$UserMessageType;->FEATURE:Lcom/google/ar/core/ArCoreApk$UserMessageType;
sget-object v2, Lcom/google/ar/core/ArCoreApk$UserMessageType;->USER_ALREADY_INFORMED:Lcom/google/ar/core/ArCoreApk$UserMessageType;
filled-new-array {v0, v1, v2}, [Lcom/google/ar/core/ArCoreApk$UserMessageType;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 3
.line 1
new-instance v0, Lcom/google/ar/core/ArCoreApk$UserMessageType;
const-string v1, "APPLICATION"
const/4 v2, 0x0
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/ArCoreApk$UserMessageType;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/ArCoreApk$UserMessageType;->APPLICATION:Lcom/google/ar/core/ArCoreApk$UserMessageType;
new-instance v0, Lcom/google/ar/core/ArCoreApk$UserMessageType;
const-string v1, "FEATURE"
const/4 v2, 0x1
.line 2
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/ArCoreApk$UserMessageType;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/ArCoreApk$UserMessageType;->FEATURE:Lcom/google/ar/core/ArCoreApk$UserMessageType;
new-instance v0, Lcom/google/ar/core/ArCoreApk$UserMessageType;
const-string v1, "USER_ALREADY_INFORMED"
const/4 v2, 0x2
.line 3
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/ArCoreApk$UserMessageType;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/ArCoreApk$UserMessageType;->USER_ALREADY_INFORMED:Lcom/google/ar/core/ArCoreApk$UserMessageType;
.line 4
invoke-static {}, Lcom/google/ar/core/ArCoreApk$UserMessageType;->$values()[Lcom/google/ar/core/ArCoreApk$UserMessageType;
move-result-object v0
sput-object v0, Lcom/google/ar/core/ArCoreApk$UserMessageType;->$VALUES:[Lcom/google/ar/core/ArCoreApk$UserMessageType;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput p3, p0, Lcom/google/ar/core/ArCoreApk$UserMessageType;->nativeCode:I
return-void
.end method
.method public static forNumber(I)Lcom/google/ar/core/ArCoreApk$UserMessageType;
.locals 5
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-static {}, Lcom/google/ar/core/ArCoreApk$UserMessageType;->values()[Lcom/google/ar/core/ArCoreApk$UserMessageType;
move-result-object v0
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_1
aget-object v3, v0, v2
.line 2
iget v4, v3, Lcom/google/ar/core/ArCoreApk$UserMessageType;->nativeCode:I
if-ne v4, p0, :cond_0
return-object v3
:cond_0
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
new-instance v0, Lcom/google/ar/core/exceptions/FatalException;
new-instance v1, Ljava/lang/StringBuilder;
.line 3
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Unexpected value for native UserMessageType, value="
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Lcom/google/ar/core/exceptions/FatalException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/ar/core/ArCoreApk$UserMessageType;
.locals 1
const-class v0, Lcom/google/ar/core/ArCoreApk$UserMessageType;
.line 1
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/ar/core/ArCoreApk$UserMessageType;
return-object p0
.end method
.method public static values()[Lcom/google/ar/core/ArCoreApk$UserMessageType;
.locals 1
sget-object v0, Lcom/google/ar/core/ArCoreApk$UserMessageType;->$VALUES:[Lcom/google/ar/core/ArCoreApk$UserMessageType;
.line 1
invoke-virtual {v0}, [Lcom/google/ar/core/ArCoreApk$UserMessageType;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/ar/core/ArCoreApk$UserMessageType;
return-object v0
.end method

View File

@@ -0,0 +1,97 @@
.class public Lcom/google/ar/core/ArCoreApk;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/ar/core/ArCoreApk$UserMessageType;,
Lcom/google/ar/core/ArCoreApk$InstallBehavior;,
Lcom/google/ar/core/ArCoreApk$InstallStatus;,
Lcom/google/ar/core/ArCoreApk$Availability;
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static getInstance()Lcom/google/ar/core/ArCoreApk;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
invoke-static {}, Lcom/google/ar/core/j;->a()Lcom/google/ar/core/j;
move-result-object v0
return-object v0
.end method
# virtual methods
.method public checkAvailability(Landroid/content/Context;)Lcom/google/ar/core/ArCoreApk$Availability;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
new-instance p1, Ljava/lang/UnsupportedOperationException;
const-string v0, "Stub"
invoke-direct {p1, v0}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public requestInstall(Landroid/app/Activity;Z)Lcom/google/ar/core/ArCoreApk$InstallStatus;
.locals 0
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/ar/core/exceptions/UnavailableDeviceNotCompatibleException;,
Lcom/google/ar/core/exceptions/UnavailableUserDeclinedInstallationException;
}
.end annotation
.line 1
new-instance p1, Ljava/lang/UnsupportedOperationException;
const-string p2, "Stub"
invoke-direct {p1, p2}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public requestInstall(Landroid/app/Activity;ZLcom/google/ar/core/ArCoreApk$InstallBehavior;Lcom/google/ar/core/ArCoreApk$UserMessageType;)Lcom/google/ar/core/ArCoreApk$InstallStatus;
.locals 0
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/ar/core/exceptions/UnavailableDeviceNotCompatibleException;,
Lcom/google/ar/core/exceptions/UnavailableUserDeclinedInstallationException;
}
.end annotation
.line 2
new-instance p1, Ljava/lang/UnsupportedOperationException;
const-string p2, "Stub"
invoke-direct {p1, p2}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw p1
.end method

View File

@@ -0,0 +1,330 @@
.class final Lcom/google/ar/core/ArCoreApkJniAdapter;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation build Lcom/google/ar/core/annotations/UsedByNative;
value = "arcoreapk.cc"
.end annotation
# static fields
.field public static final a:Ljava/util/Map;
# direct methods
.method static constructor <clinit>()V
.locals 3
.line 1
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
sput-object v0, Lcom/google/ar/core/ArCoreApkJniAdapter;->a:Ljava/util/Map;
.line 2
sget-object v1, Lcom/google/ar/core/ae;->b:Lcom/google/ar/core/ae;
iget v1, v1, Lcom/google/ar/core/ae;->G:I
.line 3
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
const-class v2, Ljava/lang/IllegalArgumentException;
.line 2
invoke-interface {v0, v2, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
sget-object v1, Lcom/google/ar/core/ae;->n:Lcom/google/ar/core/ae;
.line 4
iget v1, v1, Lcom/google/ar/core/ae;->G:I
.line 5
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
const-class v2, Lcom/google/ar/core/exceptions/ResourceExhaustedException;
.line 4
invoke-interface {v0, v2, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
sget-object v1, Lcom/google/ar/core/ae;->B:Lcom/google/ar/core/ae;
.line 6
iget v1, v1, Lcom/google/ar/core/ae;->G:I
.line 7
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
const-class v2, Lcom/google/ar/core/exceptions/UnavailableArcoreNotInstalledException;
.line 6
invoke-interface {v0, v2, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
sget-object v1, Lcom/google/ar/core/ae;->C:Lcom/google/ar/core/ae;
.line 8
iget v1, v1, Lcom/google/ar/core/ae;->G:I
.line 9
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
const-class v2, Lcom/google/ar/core/exceptions/UnavailableDeviceNotCompatibleException;
.line 8
invoke-interface {v0, v2, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
sget-object v1, Lcom/google/ar/core/ae;->D:Lcom/google/ar/core/ae;
.line 10
iget v1, v1, Lcom/google/ar/core/ae;->G:I
.line 11
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
const-class v2, Lcom/google/ar/core/exceptions/UnavailableApkTooOldException;
.line 10
invoke-interface {v0, v2, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
sget-object v1, Lcom/google/ar/core/ae;->E:Lcom/google/ar/core/ae;
.line 12
iget v1, v1, Lcom/google/ar/core/ae;->G:I
.line 13
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
const-class v2, Lcom/google/ar/core/exceptions/UnavailableSdkTooOldException;
.line 12
invoke-interface {v0, v2, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
sget-object v1, Lcom/google/ar/core/ae;->F:Lcom/google/ar/core/ae;
.line 14
iget v1, v1, Lcom/google/ar/core/ae;->G:I
.line 15
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
const-class v2, Lcom/google/ar/core/exceptions/UnavailableUserDeclinedInstallationException;
.line 14
invoke-interface {v0, v2, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
return-void
.end method
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static a(Ljava/lang/Throwable;)I
.locals 2
const-string v0, "ARCore-ArCoreApkJniAdapter"
const-string v1, "Exception details:"
.line 1
invoke-static {v0, v1, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object p0
sget-object v0, Lcom/google/ar/core/ArCoreApkJniAdapter;->a:Ljava/util/Map;
.line 2
invoke-interface {v0, p0}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_0
.line 3
invoke-interface {v0, p0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
check-cast p0, Ljava/lang/Integer;
invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I
move-result p0
return p0
.line 4
:cond_0
sget-object p0, Lcom/google/ar/core/ae;->c:Lcom/google/ar/core/ae;
iget p0, p0, Lcom/google/ar/core/ae;->G:I
return p0
.end method
.method public static checkAvailability(Landroid/content/Context;)I
.locals 1
.annotation build Lcom/google/ar/core/annotations/UsedByNative;
value = "arcoreapk.cc"
.end annotation
.line 1
:try_start_0
invoke-static {}, Lcom/google/ar/core/ArCoreApk;->getInstance()Lcom/google/ar/core/ArCoreApk;
move-result-object v0
invoke-virtual {v0, p0}, Lcom/google/ar/core/ArCoreApk;->checkAvailability(Landroid/content/Context;)Lcom/google/ar/core/ArCoreApk$Availability;
move-result-object p0
iget p0, p0, Lcom/google/ar/core/ArCoreApk$Availability;->nativeCode:I
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
return p0
:catchall_0
move-exception p0
.line 2
invoke-static {p0}, Lcom/google/ar/core/ArCoreApkJniAdapter;->a(Ljava/lang/Throwable;)I
.line 3
sget-object p0, Lcom/google/ar/core/ArCoreApk$Availability;->UNKNOWN_ERROR:Lcom/google/ar/core/ArCoreApk$Availability;
iget p0, p0, Lcom/google/ar/core/ArCoreApk$Availability;->nativeCode:I
return p0
.end method
.method public static requestInstall(Landroid/app/Activity;Z[I)I
.locals 1
.annotation build Lcom/google/ar/core/annotations/UsedByNative;
value = "arcoreapk.cc"
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/ar/core/exceptions/UnavailableDeviceNotCompatibleException;,
Lcom/google/ar/core/exceptions/UnavailableUserDeclinedInstallationException;
}
.end annotation
.line 1
:try_start_0
invoke-static {}, Lcom/google/ar/core/ArCoreApk;->getInstance()Lcom/google/ar/core/ArCoreApk;
move-result-object v0
invoke-virtual {v0, p0, p1}, Lcom/google/ar/core/ArCoreApk;->requestInstall(Landroid/app/Activity;Z)Lcom/google/ar/core/ArCoreApk$InstallStatus;
move-result-object p0
iget p0, p0, Lcom/google/ar/core/ArCoreApk$InstallStatus;->nativeCode:I
const/4 p1, 0x0
aput p0, p2, p1
.line 2
sget-object p0, Lcom/google/ar/core/ae;->a:Lcom/google/ar/core/ae;
iget p0, p0, Lcom/google/ar/core/ae;->G:I
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
return p0
:catchall_0
move-exception p0
.line 3
invoke-static {p0}, Lcom/google/ar/core/ArCoreApkJniAdapter;->a(Ljava/lang/Throwable;)I
move-result p0
return p0
.end method
.method public static requestInstallCustom(Landroid/app/Activity;ZII[I)I
.locals 1
.annotation build Lcom/google/ar/core/annotations/UsedByNative;
value = "arcoreapk.cc"
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/ar/core/exceptions/UnavailableDeviceNotCompatibleException;,
Lcom/google/ar/core/exceptions/UnavailableUserDeclinedInstallationException;
}
.end annotation
.line 1
:try_start_0
invoke-static {}, Lcom/google/ar/core/ArCoreApk;->getInstance()Lcom/google/ar/core/ArCoreApk;
move-result-object v0
invoke-static {p2}, Lcom/google/ar/core/ArCoreApk$InstallBehavior;->forNumber(I)Lcom/google/ar/core/ArCoreApk$InstallBehavior;
move-result-object p2
.line 2
invoke-static {p3}, Lcom/google/ar/core/ArCoreApk$UserMessageType;->forNumber(I)Lcom/google/ar/core/ArCoreApk$UserMessageType;
move-result-object p3
.line 3
invoke-virtual {v0, p0, p1, p2, p3}, Lcom/google/ar/core/ArCoreApk;->requestInstall(Landroid/app/Activity;ZLcom/google/ar/core/ArCoreApk$InstallBehavior;Lcom/google/ar/core/ArCoreApk$UserMessageType;)Lcom/google/ar/core/ArCoreApk$InstallStatus;
move-result-object p0
iget p0, p0, Lcom/google/ar/core/ArCoreApk$InstallStatus;->nativeCode:I
const/4 p1, 0x0
aput p0, p4, p1
.line 4
sget-object p0, Lcom/google/ar/core/ae;->a:Lcom/google/ar/core/ae;
iget p0, p0, Lcom/google/ar/core/ae;->G:I
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
return p0
:catchall_0
move-exception p0
.line 5
invoke-static {p0}, Lcom/google/ar/core/ArCoreApkJniAdapter;->a(Ljava/lang/Throwable;)I
move-result p0
return p0
.end method

View File

@@ -0,0 +1,345 @@
.class public Lcom/google/ar/core/ArImage;
.super Lcom/google/ar/core/dependencies/b;
.source "SourceFile"
# instance fields
.field nativeHandle:J
.field private final nativeSymbolTableHandle:J
.field private final session:Lcom/google/ar/core/Session;
# direct methods
.method public static bridge synthetic -$$Nest$fgetsession(Lcom/google/ar/core/ArImage;)Lcom/google/ar/core/Session;
.locals 0
iget-object p0, p0, Lcom/google/ar/core/ArImage;->session:Lcom/google/ar/core/Session;
return-object p0
.end method
.method public static bridge synthetic -$$Nest$mnativeGetBuffer(Lcom/google/ar/core/ArImage;JJI)Ljava/nio/ByteBuffer;
.locals 0
invoke-direct/range {p0 .. p5}, Lcom/google/ar/core/ArImage;->nativeGetBuffer(JJI)Ljava/nio/ByteBuffer;
move-result-object p0
return-object p0
.end method
.method public static bridge synthetic -$$Nest$mnativeGetPixelStride(Lcom/google/ar/core/ArImage;JJI)I
.locals 0
invoke-direct/range {p0 .. p5}, Lcom/google/ar/core/ArImage;->nativeGetPixelStride(JJI)I
move-result p0
return p0
.end method
.method public static bridge synthetic -$$Nest$mnativeGetRowStride(Lcom/google/ar/core/ArImage;JJI)I
.locals 0
invoke-direct/range {p0 .. p5}, Lcom/google/ar/core/ArImage;->nativeGetRowStride(JJI)I
move-result p0
return p0
.end method
.method public constructor <init>(Lcom/google/ar/core/Session;J)V
.locals 0
.line 1
invoke-direct {p0}, Lcom/google/ar/core/dependencies/b;-><init>()V
iput-object p1, p0, Lcom/google/ar/core/ArImage;->session:Lcom/google/ar/core/Session;
iput-wide p2, p0, Lcom/google/ar/core/ArImage;->nativeHandle:J
.line 2
iget-wide p1, p1, Lcom/google/ar/core/Session;->nativeSymbolTableHandle:J
iput-wide p1, p0, Lcom/google/ar/core/ArImage;->nativeSymbolTableHandle:J
return-void
.end method
.method private native nativeClose(JJ)V
.end method
.method private native nativeGetBuffer(JJI)Ljava/nio/ByteBuffer;
.end method
.method private native nativeGetFormat(JJ)I
.end method
.method private native nativeGetHeight(JJ)I
.end method
.method private native nativeGetNumberOfPlanes(JJ)I
.end method
.method private native nativeGetPixelStride(JJI)I
.end method
.method private native nativeGetRowStride(JJI)I
.end method
.method private native nativeGetTimestamp(JJ)J
.end method
.method private native nativeGetWidth(JJ)I
.end method
.method public static native nativeLoadSymbols()V
.end method
# virtual methods
.method public close()V
.locals 4
iget-wide v0, p0, Lcom/google/ar/core/ArImage;->nativeSymbolTableHandle:J
iget-wide v2, p0, Lcom/google/ar/core/ArImage;->nativeHandle:J
.line 1
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/ArImage;->nativeClose(JJ)V
const-wide/16 v0, 0x0
iput-wide v0, p0, Lcom/google/ar/core/ArImage;->nativeHandle:J
return-void
.end method
.method public getCropRect()Landroid/graphics/Rect;
.locals 4
.line 1
new-instance v0, Landroid/graphics/Rect;
invoke-virtual {p0}, Lcom/google/ar/core/ArImage;->getWidth()I
move-result v1
invoke-virtual {p0}, Lcom/google/ar/core/ArImage;->getHeight()I
move-result v2
const/4 v3, 0x0
invoke-direct {v0, v3, v3, v1, v2}, Landroid/graphics/Rect;-><init>(IIII)V
return-object v0
.end method
.method public getFormat()I
.locals 4
iget-object v0, p0, Lcom/google/ar/core/ArImage;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/ArImage;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/ArImage;->nativeGetFormat(JJ)I
move-result v0
const/4 v1, -0x1
if-eq v0, v1, :cond_0
return v0
:cond_0
new-instance v0, Lcom/google/ar/core/exceptions/FatalException;
const-string v1, "Unknown error in ArImage.getFormat()."
.line 2
invoke-direct {v0, v1}, Lcom/google/ar/core/exceptions/FatalException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public getHeight()I
.locals 4
iget-object v0, p0, Lcom/google/ar/core/ArImage;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/ArImage;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/ArImage;->nativeGetHeight(JJ)I
move-result v0
const/4 v1, -0x1
if-eq v0, v1, :cond_0
return v0
:cond_0
new-instance v0, Lcom/google/ar/core/exceptions/FatalException;
const-string v1, "Unknown error in ArImage.getHeight()."
.line 2
invoke-direct {v0, v1}, Lcom/google/ar/core/exceptions/FatalException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public getPlanes()[Landroid/media/Image$Plane;
.locals 6
iget-object v0, p0, Lcom/google/ar/core/ArImage;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/ArImage;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/ArImage;->nativeGetNumberOfPlanes(JJ)I
move-result v0
const/4 v1, -0x1
if-eq v0, v1, :cond_1
.line 3
new-array v1, v0, [Lcom/google/ar/core/k;
const/4 v2, 0x0
:goto_0
if-ge v2, v0, :cond_0
.line 4
new-instance v3, Lcom/google/ar/core/k;
iget-wide v4, p0, Lcom/google/ar/core/ArImage;->nativeHandle:J
invoke-direct {v3, p0, v4, v5, v2}, Lcom/google/ar/core/k;-><init>(Lcom/google/ar/core/ArImage;JI)V
aput-object v3, v1, v2
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
return-object v1
.line 1
:cond_1
new-instance v0, Lcom/google/ar/core/exceptions/FatalException;
const-string v1, "Unknown error in ArImage.getPlanes()."
.line 2
invoke-direct {v0, v1}, Lcom/google/ar/core/exceptions/FatalException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public getTimestamp()J
.locals 4
iget-object v0, p0, Lcom/google/ar/core/ArImage;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/ArImage;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/ArImage;->nativeGetTimestamp(JJ)J
move-result-wide v0
const-wide/16 v2, -0x1
cmp-long v2, v0, v2
if-eqz v2, :cond_0
return-wide v0
:cond_0
new-instance v0, Lcom/google/ar/core/exceptions/FatalException;
const-string v1, "Unknown error in ArImage.getTimestamp()."
.line 2
invoke-direct {v0, v1}, Lcom/google/ar/core/exceptions/FatalException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public getWidth()I
.locals 4
iget-object v0, p0, Lcom/google/ar/core/ArImage;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/ArImage;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/ArImage;->nativeGetWidth(JJ)I
move-result v0
const/4 v1, -0x1
if-eq v0, v1, :cond_0
return v0
:cond_0
new-instance v0, Lcom/google/ar/core/exceptions/FatalException;
const-string v1, "Unknown error in ArImage.getWidth()."
.line 2
invoke-direct {v0, v1}, Lcom/google/ar/core/exceptions/FatalException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public setCropRect(Landroid/graphics/Rect;)V
.locals 1
.line 1
new-instance p1, Ljava/lang/UnsupportedOperationException;
const-string v0, "This is a read-only image."
invoke-direct {p1, v0}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public setTimestamp(J)V
.locals 0
.line 1
new-instance p1, Ljava/lang/UnsupportedOperationException;
const-string p2, "This is a read-only image."
invoke-direct {p1, p2}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw p1
.end method

View File

@@ -0,0 +1,146 @@
.class public final enum Lcom/google/ar/core/AugmentedFace$RegionType;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/ar/core/AugmentedFace;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "RegionType"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/ar/core/AugmentedFace$RegionType;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/ar/core/AugmentedFace$RegionType;
.field public static final enum FOREHEAD_LEFT:Lcom/google/ar/core/AugmentedFace$RegionType;
.field public static final enum FOREHEAD_RIGHT:Lcom/google/ar/core/AugmentedFace$RegionType;
.field public static final enum NOSE_TIP:Lcom/google/ar/core/AugmentedFace$RegionType;
# instance fields
.field final nativeCode:I
# direct methods
.method private static synthetic $values()[Lcom/google/ar/core/AugmentedFace$RegionType;
.locals 3
sget-object v0, Lcom/google/ar/core/AugmentedFace$RegionType;->NOSE_TIP:Lcom/google/ar/core/AugmentedFace$RegionType;
sget-object v1, Lcom/google/ar/core/AugmentedFace$RegionType;->FOREHEAD_LEFT:Lcom/google/ar/core/AugmentedFace$RegionType;
sget-object v2, Lcom/google/ar/core/AugmentedFace$RegionType;->FOREHEAD_RIGHT:Lcom/google/ar/core/AugmentedFace$RegionType;
filled-new-array {v0, v1, v2}, [Lcom/google/ar/core/AugmentedFace$RegionType;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 3
.line 1
new-instance v0, Lcom/google/ar/core/AugmentedFace$RegionType;
const-string v1, "NOSE_TIP"
const/4 v2, 0x0
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/AugmentedFace$RegionType;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/AugmentedFace$RegionType;->NOSE_TIP:Lcom/google/ar/core/AugmentedFace$RegionType;
new-instance v0, Lcom/google/ar/core/AugmentedFace$RegionType;
const-string v1, "FOREHEAD_LEFT"
const/4 v2, 0x1
.line 2
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/AugmentedFace$RegionType;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/AugmentedFace$RegionType;->FOREHEAD_LEFT:Lcom/google/ar/core/AugmentedFace$RegionType;
new-instance v0, Lcom/google/ar/core/AugmentedFace$RegionType;
const-string v1, "FOREHEAD_RIGHT"
const/4 v2, 0x2
.line 3
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/AugmentedFace$RegionType;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/AugmentedFace$RegionType;->FOREHEAD_RIGHT:Lcom/google/ar/core/AugmentedFace$RegionType;
.line 4
invoke-static {}, Lcom/google/ar/core/AugmentedFace$RegionType;->$values()[Lcom/google/ar/core/AugmentedFace$RegionType;
move-result-object v0
sput-object v0, Lcom/google/ar/core/AugmentedFace$RegionType;->$VALUES:[Lcom/google/ar/core/AugmentedFace$RegionType;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput p3, p0, Lcom/google/ar/core/AugmentedFace$RegionType;->nativeCode:I
return-void
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/ar/core/AugmentedFace$RegionType;
.locals 1
const-class v0, Lcom/google/ar/core/AugmentedFace$RegionType;
.line 1
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/ar/core/AugmentedFace$RegionType;
return-object p0
.end method
.method public static values()[Lcom/google/ar/core/AugmentedFace$RegionType;
.locals 1
sget-object v0, Lcom/google/ar/core/AugmentedFace$RegionType;->$VALUES:[Lcom/google/ar/core/AugmentedFace$RegionType;
.line 1
invoke-virtual {v0}, [Lcom/google/ar/core/AugmentedFace$RegionType;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/ar/core/AugmentedFace$RegionType;
return-object v0
.end method

View File

@@ -0,0 +1,305 @@
.class public Lcom/google/ar/core/AugmentedFace;
.super Lcom/google/ar/core/TrackableBase;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/ar/core/AugmentedFace$RegionType;
}
.end annotation
# static fields
.field private static final TAG:Ljava/lang/String; = "ARCore-AugmentedFace"
# instance fields
.field private normalsBuffer:Ljava/nio/FloatBuffer;
.field private textureCoordinatesBuffer:Ljava/nio/FloatBuffer;
.field private triangleIndicesBuffer:Ljava/nio/ShortBuffer;
.field private verticesBuffer:Ljava/nio/FloatBuffer;
# direct methods
.method public constructor <init>()V
.locals 3
const-wide/16 v0, 0x0
const/4 v2, 0x0
.line 1
invoke-direct {p0, v0, v1, v2}, Lcom/google/ar/core/TrackableBase;-><init>(JLcom/google/ar/core/Session;)V
return-void
.end method
.method public constructor <init>(JLcom/google/ar/core/Session;)V
.locals 0
.line 2
invoke-direct {p0, p1, p2, p3}, Lcom/google/ar/core/TrackableBase;-><init>(JLcom/google/ar/core/Session;)V
.line 3
invoke-virtual {p0}, Lcom/google/ar/core/AugmentedFace;->populateMeshData()V
return-void
.end method
.method private native nativeGetCenterPose(JJ)Lcom/google/ar/core/Pose;
.end method
.method private native nativeGetMeshNormalsByteBuffer(JJ)Ljava/nio/ByteBuffer;
.end method
.method private native nativeGetMeshTextureCoordinatesByteBuffer(JJ)Ljava/nio/ByteBuffer;
.end method
.method private native nativeGetMeshTriangleIndicesByteBuffer(JJ)Ljava/nio/ByteBuffer;
.end method
.method private native nativeGetMeshVerticesByteBuffer(JJ)Ljava/nio/ByteBuffer;
.end method
.method private native nativeGetRegionPose(JJI)Lcom/google/ar/core/Pose;
.end method
# virtual methods
.method public bridge synthetic createAnchor(Lcom/google/ar/core/Pose;)Lcom/google/ar/core/Anchor;
.locals 0
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-super {p0, p1}, Lcom/google/ar/core/TrackableBase;->createAnchor(Lcom/google/ar/core/Pose;)Lcom/google/ar/core/Anchor;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic equals(Ljava/lang/Object;)Z
.locals 0
.line 1
invoke-super {p0, p1}, Lcom/google/ar/core/TrackableBase;->equals(Ljava/lang/Object;)Z
move-result p1
return p1
.end method
.method public bridge synthetic getAnchors()Ljava/util/Collection;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-super {p0}, Lcom/google/ar/core/TrackableBase;->getAnchors()Ljava/util/Collection;
move-result-object v0
return-object v0
.end method
.method public getCenterPose()Lcom/google/ar/core/Pose;
.locals 4
iget-object v0, p0, Lcom/google/ar/core/TrackableBase;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/TrackableBase;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/AugmentedFace;->nativeGetCenterPose(JJ)Lcom/google/ar/core/Pose;
move-result-object v0
return-object v0
.end method
.method public getMeshNormals()Ljava/nio/FloatBuffer;
.locals 1
iget-object v0, p0, Lcom/google/ar/core/AugmentedFace;->normalsBuffer:Ljava/nio/FloatBuffer;
return-object v0
.end method
.method public getMeshTextureCoordinates()Ljava/nio/FloatBuffer;
.locals 1
iget-object v0, p0, Lcom/google/ar/core/AugmentedFace;->textureCoordinatesBuffer:Ljava/nio/FloatBuffer;
return-object v0
.end method
.method public getMeshTriangleIndices()Ljava/nio/ShortBuffer;
.locals 1
iget-object v0, p0, Lcom/google/ar/core/AugmentedFace;->triangleIndicesBuffer:Ljava/nio/ShortBuffer;
return-object v0
.end method
.method public getMeshVertices()Ljava/nio/FloatBuffer;
.locals 1
iget-object v0, p0, Lcom/google/ar/core/AugmentedFace;->verticesBuffer:Ljava/nio/FloatBuffer;
return-object v0
.end method
.method public getRegionPose(Lcom/google/ar/core/AugmentedFace$RegionType;)Lcom/google/ar/core/Pose;
.locals 7
iget-object v0, p0, Lcom/google/ar/core/TrackableBase;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v2, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v4, p0, Lcom/google/ar/core/TrackableBase;->nativeHandle:J
iget v6, p1, Lcom/google/ar/core/AugmentedFace$RegionType;->nativeCode:I
move-object v1, p0
invoke-direct/range {v1 .. v6}, Lcom/google/ar/core/AugmentedFace;->nativeGetRegionPose(JJI)Lcom/google/ar/core/Pose;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic getTrackingState()Lcom/google/ar/core/TrackingState;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-super {p0}, Lcom/google/ar/core/TrackableBase;->getTrackingState()Lcom/google/ar/core/TrackingState;
move-result-object v0
return-object v0
.end method
.method public bridge synthetic hashCode()I
.locals 1
.line 1
invoke-super {p0}, Lcom/google/ar/core/TrackableBase;->hashCode()I
move-result v0
return v0
.end method
.method public populateMeshData()V
.locals 4
iget-object v0, p0, Lcom/google/ar/core/TrackableBase;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/TrackableBase;->nativeHandle:J
.line 2
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/AugmentedFace;->nativeGetMeshVerticesByteBuffer(JJ)Ljava/nio/ByteBuffer;
move-result-object v0
.line 3
invoke-static {v0}, Lcom/google/ar/core/Session;->directByteBufferOrDefault(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
move-result-object v0
.line 4
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->asFloatBuffer()Ljava/nio/FloatBuffer;
move-result-object v0
iput-object v0, p0, Lcom/google/ar/core/AugmentedFace;->verticesBuffer:Ljava/nio/FloatBuffer;
iget-object v0, p0, Lcom/google/ar/core/TrackableBase;->session:Lcom/google/ar/core/Session;
.line 5
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/TrackableBase;->nativeHandle:J
.line 6
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/AugmentedFace;->nativeGetMeshNormalsByteBuffer(JJ)Ljava/nio/ByteBuffer;
move-result-object v0
.line 7
invoke-static {v0}, Lcom/google/ar/core/Session;->directByteBufferOrDefault(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
move-result-object v0
.line 8
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->asFloatBuffer()Ljava/nio/FloatBuffer;
move-result-object v0
iput-object v0, p0, Lcom/google/ar/core/AugmentedFace;->normalsBuffer:Ljava/nio/FloatBuffer;
iget-object v0, p0, Lcom/google/ar/core/TrackableBase;->session:Lcom/google/ar/core/Session;
.line 9
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/TrackableBase;->nativeHandle:J
.line 10
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/AugmentedFace;->nativeGetMeshTextureCoordinatesByteBuffer(JJ)Ljava/nio/ByteBuffer;
move-result-object v0
.line 11
invoke-static {v0}, Lcom/google/ar/core/Session;->directByteBufferOrDefault(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
move-result-object v0
.line 12
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->asFloatBuffer()Ljava/nio/FloatBuffer;
move-result-object v0
iput-object v0, p0, Lcom/google/ar/core/AugmentedFace;->textureCoordinatesBuffer:Ljava/nio/FloatBuffer;
iget-object v0, p0, Lcom/google/ar/core/TrackableBase;->session:Lcom/google/ar/core/Session;
.line 13
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/TrackableBase;->nativeHandle:J
.line 14
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/AugmentedFace;->nativeGetMeshTriangleIndicesByteBuffer(JJ)Ljava/nio/ByteBuffer;
move-result-object v0
.line 15
invoke-static {v0}, Lcom/google/ar/core/Session;->directByteBufferOrDefault(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
move-result-object v0
.line 16
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->asShortBuffer()Ljava/nio/ShortBuffer;
move-result-object v0
iput-object v0, p0, Lcom/google/ar/core/AugmentedFace;->triangleIndicesBuffer:Ljava/nio/ShortBuffer;
return-void
.end method

View File

@@ -0,0 +1,200 @@
.class public final enum Lcom/google/ar/core/AugmentedImage$TrackingMethod;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/ar/core/AugmentedImage;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "TrackingMethod"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/ar/core/AugmentedImage$TrackingMethod;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/ar/core/AugmentedImage$TrackingMethod;
.field public static final enum FULL_TRACKING:Lcom/google/ar/core/AugmentedImage$TrackingMethod;
.field public static final enum LAST_KNOWN_POSE:Lcom/google/ar/core/AugmentedImage$TrackingMethod;
.field public static final enum NOT_TRACKING:Lcom/google/ar/core/AugmentedImage$TrackingMethod;
# instance fields
.field final nativeCode:I
# direct methods
.method private static synthetic $values()[Lcom/google/ar/core/AugmentedImage$TrackingMethod;
.locals 3
sget-object v0, Lcom/google/ar/core/AugmentedImage$TrackingMethod;->NOT_TRACKING:Lcom/google/ar/core/AugmentedImage$TrackingMethod;
sget-object v1, Lcom/google/ar/core/AugmentedImage$TrackingMethod;->FULL_TRACKING:Lcom/google/ar/core/AugmentedImage$TrackingMethod;
sget-object v2, Lcom/google/ar/core/AugmentedImage$TrackingMethod;->LAST_KNOWN_POSE:Lcom/google/ar/core/AugmentedImage$TrackingMethod;
filled-new-array {v0, v1, v2}, [Lcom/google/ar/core/AugmentedImage$TrackingMethod;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 3
.line 1
new-instance v0, Lcom/google/ar/core/AugmentedImage$TrackingMethod;
const-string v1, "NOT_TRACKING"
const/4 v2, 0x0
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/AugmentedImage$TrackingMethod;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/AugmentedImage$TrackingMethod;->NOT_TRACKING:Lcom/google/ar/core/AugmentedImage$TrackingMethod;
new-instance v0, Lcom/google/ar/core/AugmentedImage$TrackingMethod;
const-string v1, "FULL_TRACKING"
const/4 v2, 0x1
.line 2
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/AugmentedImage$TrackingMethod;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/AugmentedImage$TrackingMethod;->FULL_TRACKING:Lcom/google/ar/core/AugmentedImage$TrackingMethod;
new-instance v0, Lcom/google/ar/core/AugmentedImage$TrackingMethod;
const-string v1, "LAST_KNOWN_POSE"
const/4 v2, 0x2
.line 3
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/AugmentedImage$TrackingMethod;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/AugmentedImage$TrackingMethod;->LAST_KNOWN_POSE:Lcom/google/ar/core/AugmentedImage$TrackingMethod;
.line 4
invoke-static {}, Lcom/google/ar/core/AugmentedImage$TrackingMethod;->$values()[Lcom/google/ar/core/AugmentedImage$TrackingMethod;
move-result-object v0
sput-object v0, Lcom/google/ar/core/AugmentedImage$TrackingMethod;->$VALUES:[Lcom/google/ar/core/AugmentedImage$TrackingMethod;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput p3, p0, Lcom/google/ar/core/AugmentedImage$TrackingMethod;->nativeCode:I
return-void
.end method
.method public static forNumber(I)Lcom/google/ar/core/AugmentedImage$TrackingMethod;
.locals 5
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-static {}, Lcom/google/ar/core/AugmentedImage$TrackingMethod;->values()[Lcom/google/ar/core/AugmentedImage$TrackingMethod;
move-result-object v0
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_1
aget-object v3, v0, v2
.line 2
iget v4, v3, Lcom/google/ar/core/AugmentedImage$TrackingMethod;->nativeCode:I
if-ne v4, p0, :cond_0
return-object v3
:cond_0
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
new-instance v0, Lcom/google/ar/core/exceptions/FatalException;
new-instance v1, Ljava/lang/StringBuilder;
.line 3
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Unexpected value for native TrackingMethod, value="
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Lcom/google/ar/core/exceptions/FatalException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/ar/core/AugmentedImage$TrackingMethod;
.locals 1
const-class v0, Lcom/google/ar/core/AugmentedImage$TrackingMethod;
.line 1
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/ar/core/AugmentedImage$TrackingMethod;
return-object p0
.end method
.method public static values()[Lcom/google/ar/core/AugmentedImage$TrackingMethod;
.locals 1
sget-object v0, Lcom/google/ar/core/AugmentedImage$TrackingMethod;->$VALUES:[Lcom/google/ar/core/AugmentedImage$TrackingMethod;
.line 1
invoke-virtual {v0}, [Lcom/google/ar/core/AugmentedImage$TrackingMethod;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/ar/core/AugmentedImage$TrackingMethod;
return-object v0
.end method

View File

@@ -0,0 +1,213 @@
.class public Lcom/google/ar/core/AugmentedImage;
.super Lcom/google/ar/core/TrackableBase;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/ar/core/AugmentedImage$TrackingMethod;
}
.end annotation
# direct methods
.method public constructor <init>(JLcom/google/ar/core/Session;)V
.locals 0
.line 1
invoke-direct {p0, p1, p2, p3}, Lcom/google/ar/core/TrackableBase;-><init>(JLcom/google/ar/core/Session;)V
return-void
.end method
.method private native nativeGetCenterPose(JJ)Lcom/google/ar/core/Pose;
.end method
.method private native nativeGetExtentX(JJ)F
.end method
.method private native nativeGetExtentZ(JJ)F
.end method
.method private native nativeGetIndex(JJ)I
.end method
.method private native nativeGetName(JJ)Ljava/lang/String;
.end method
.method private native nativeGetTrackingMethod(JJ)I
.end method
# virtual methods
.method public bridge synthetic createAnchor(Lcom/google/ar/core/Pose;)Lcom/google/ar/core/Anchor;
.locals 0
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-super {p0, p1}, Lcom/google/ar/core/TrackableBase;->createAnchor(Lcom/google/ar/core/Pose;)Lcom/google/ar/core/Anchor;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic equals(Ljava/lang/Object;)Z
.locals 0
.line 1
invoke-super {p0, p1}, Lcom/google/ar/core/TrackableBase;->equals(Ljava/lang/Object;)Z
move-result p1
return p1
.end method
.method public bridge synthetic getAnchors()Ljava/util/Collection;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-super {p0}, Lcom/google/ar/core/TrackableBase;->getAnchors()Ljava/util/Collection;
move-result-object v0
return-object v0
.end method
.method public getCenterPose()Lcom/google/ar/core/Pose;
.locals 4
iget-object v0, p0, Lcom/google/ar/core/TrackableBase;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/TrackableBase;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/AugmentedImage;->nativeGetCenterPose(JJ)Lcom/google/ar/core/Pose;
move-result-object v0
return-object v0
.end method
.method public getExtentX()F
.locals 4
iget-object v0, p0, Lcom/google/ar/core/TrackableBase;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/TrackableBase;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/AugmentedImage;->nativeGetExtentX(JJ)F
move-result v0
return v0
.end method
.method public getExtentZ()F
.locals 4
iget-object v0, p0, Lcom/google/ar/core/TrackableBase;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/TrackableBase;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/AugmentedImage;->nativeGetExtentZ(JJ)F
move-result v0
return v0
.end method
.method public getIndex()I
.locals 4
iget-object v0, p0, Lcom/google/ar/core/TrackableBase;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/TrackableBase;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/AugmentedImage;->nativeGetIndex(JJ)I
move-result v0
return v0
.end method
.method public getName()Ljava/lang/String;
.locals 4
iget-object v0, p0, Lcom/google/ar/core/TrackableBase;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/TrackableBase;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/AugmentedImage;->nativeGetName(JJ)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public getTrackingMethod()Lcom/google/ar/core/AugmentedImage$TrackingMethod;
.locals 4
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/TrackableBase;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/TrackableBase;->nativeHandle:J
.line 2
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/AugmentedImage;->nativeGetTrackingMethod(JJ)I
move-result v0
.line 1
invoke-static {v0}, Lcom/google/ar/core/AugmentedImage$TrackingMethod;->forNumber(I)Lcom/google/ar/core/AugmentedImage$TrackingMethod;
move-result-object v0
return-object v0
.end method
.method public bridge synthetic getTrackingState()Lcom/google/ar/core/TrackingState;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-super {p0}, Lcom/google/ar/core/TrackableBase;->getTrackingState()Lcom/google/ar/core/TrackingState;
move-result-object v0
return-object v0
.end method
.method public bridge synthetic hashCode()I
.locals 1
.line 1
invoke-super {p0}, Lcom/google/ar/core/TrackableBase;->hashCode()I
move-result v0
return v0
.end method

View File

@@ -0,0 +1,441 @@
.class public Lcom/google/ar/core/AugmentedImageDatabase;
.super Ljava/lang/Object;
.source "SourceFile"
# instance fields
.field nativeHandle:J
.field private final nativeSymbolTableHandle:J
.field private final session:Lcom/google/ar/core/Session;
# direct methods
.method public constructor <init>(Lcom/google/ar/core/Session;)V
.locals 2
.line 1
iget-wide v0, p1, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
invoke-static {v0, v1}, Lcom/google/ar/core/AugmentedImageDatabase;->nativeCreate(J)J
move-result-wide v0
invoke-direct {p0, p1, v0, v1}, Lcom/google/ar/core/AugmentedImageDatabase;-><init>(Lcom/google/ar/core/Session;J)V
return-void
.end method
.method public constructor <init>(Lcom/google/ar/core/Session;J)V
.locals 0
.line 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/ar/core/AugmentedImageDatabase;->session:Lcom/google/ar/core/Session;
iput-wide p2, p0, Lcom/google/ar/core/AugmentedImageDatabase;->nativeHandle:J
iget-wide p1, p1, Lcom/google/ar/core/Session;->nativeSymbolTableHandle:J
iput-wide p1, p0, Lcom/google/ar/core/AugmentedImageDatabase;->nativeSymbolTableHandle:J
return-void
.end method
.method public static convertBitmapToGrayscaleDirectBuffer(Landroid/graphics/Bitmap;)Ljava/nio/ByteBuffer;
.locals 7
.line 1
new-instance v0, Landroid/graphics/ColorMatrix;
invoke-direct {v0}, Landroid/graphics/ColorMatrix;-><init>()V
const/4 v1, 0x0
.line 2
invoke-virtual {v0, v1}, Landroid/graphics/ColorMatrix;->setSaturation(F)V
new-instance v2, Landroid/graphics/ColorMatrixColorFilter;
.line 3
invoke-direct {v2, v0}, Landroid/graphics/ColorMatrixColorFilter;-><init>(Landroid/graphics/ColorMatrix;)V
new-instance v0, Landroid/graphics/Paint;
.line 4
invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V
.line 5
invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setColorFilter(Landroid/graphics/ColorFilter;)Landroid/graphics/ColorFilter;
.line 6
invoke-virtual {p0}, Landroid/graphics/Bitmap;->getWidth()I
move-result v2
invoke-virtual {p0}, Landroid/graphics/Bitmap;->getHeight()I
move-result v3
sget-object v4, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;
invoke-static {v2, v3, v4}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;
move-result-object v2
new-instance v3, Landroid/graphics/Canvas;
.line 7
invoke-direct {v3, v2}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V
.line 8
invoke-virtual {v3, p0, v1, v1, v0}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V
.line 9
invoke-virtual {p0}, Landroid/graphics/Bitmap;->getWidth()I
move-result v0
invoke-virtual {p0}, Landroid/graphics/Bitmap;->getHeight()I
move-result v1
mul-int/2addr v0, v1
invoke-static {v0}, Ljava/nio/ByteBuffer;->allocateDirect(I)Ljava/nio/ByteBuffer;
move-result-object v0
const/4 v1, 0x0
move v3, v1
.line 10
:goto_0
invoke-virtual {p0}, Landroid/graphics/Bitmap;->getHeight()I
move-result v4
if-ge v3, v4, :cond_1
move v4, v1
.line 11
:goto_1
invoke-virtual {p0}, Landroid/graphics/Bitmap;->getWidth()I
move-result v5
if-ge v4, v5, :cond_0
.line 12
invoke-virtual {p0}, Landroid/graphics/Bitmap;->getWidth()I
move-result v5
mul-int/2addr v5, v3
add-int/2addr v5, v4
invoke-virtual {v2, v4, v3}, Landroid/graphics/Bitmap;->getPixel(II)I
move-result v6
invoke-static {v6}, Landroid/graphics/Color;->red(I)I
move-result v6
int-to-byte v6, v6
.line 13
invoke-virtual {v0, v5, v6}, Ljava/nio/ByteBuffer;->put(IB)Ljava/nio/ByteBuffer;
add-int/lit8 v4, v4, 0x1
goto :goto_1
:cond_0
add-int/lit8 v3, v3, 0x1
goto :goto_0
:cond_1
return-object v0
.end method
.method public static deserialize(Lcom/google/ar/core/Session;Ljava/io/InputStream;)Lcom/google/ar/core/AugmentedImageDatabase;
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-static {p1}, Lcom/google/ar/core/AugmentedImageDatabase;->loadDirectByteBuffer(Ljava/io/InputStream;)Ljava/nio/ByteBuffer;
move-result-object p1
.line 2
iget-wide v0, p0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
invoke-static {v0, v1, p1}, Lcom/google/ar/core/AugmentedImageDatabase;->nativeDeserialize(JLjava/nio/ByteBuffer;)J
move-result-wide v0
new-instance p1, Lcom/google/ar/core/AugmentedImageDatabase;
.line 3
invoke-direct {p1, p0, v0, v1}, Lcom/google/ar/core/AugmentedImageDatabase;-><init>(Lcom/google/ar/core/Session;J)V
return-object p1
.end method
.method private static loadDirectByteBuffer(Ljava/io/InputStream;)Ljava/nio/ByteBuffer;
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
new-instance v0, Ljava/io/ByteArrayOutputStream;
invoke-virtual {p0}, Ljava/io/InputStream;->available()I
move-result v1
const/16 v2, 0x20
invoke-static {v2, v1}, Ljava/lang/Math;->max(II)I
move-result v1
invoke-direct {v0, v1}, Ljava/io/ByteArrayOutputStream;-><init>(I)V
const/16 v1, 0x2000
new-array v1, v1, [B
.line 2
:goto_0
invoke-virtual {p0, v1}, Ljava/io/InputStream;->read([B)I
move-result v2
const/4 v3, -0x1
if-eq v2, v3, :cond_0
const/4 v3, 0x0
.line 3
invoke-virtual {v0, v1, v3, v2}, Ljava/io/ByteArrayOutputStream;->write([BII)V
goto :goto_0
.line 4
:cond_0
invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B
move-result-object p0
.line 5
array-length v0, p0
invoke-static {v0}, Ljava/nio/ByteBuffer;->allocateDirect(I)Ljava/nio/ByteBuffer;
move-result-object v0
.line 6
invoke-virtual {v0, p0}, Ljava/nio/ByteBuffer;->put([B)Ljava/nio/ByteBuffer;
return-object v0
.end method
.method private native nativeAddImage(JJLjava/lang/String;Ljava/nio/ByteBuffer;III)I
.end method
.method private native nativeAddImageWithPhysicalSize(JJLjava/lang/String;Ljava/nio/ByteBuffer;IIIF)I
.end method
.method private static native nativeCreate(J)J
.end method
.method private static native nativeDeserialize(JLjava/nio/ByteBuffer;)J
.end method
.method private native nativeGetNumImages(JJ)I
.end method
.method private native nativeReleaseDatabase(JJ)V
.end method
.method private native nativeSerialize(JJ)Ljava/nio/ByteBuffer;
.end method
# virtual methods
.method public addImage(Ljava/lang/String;Landroid/graphics/Bitmap;)I
.locals 10
.line 1
invoke-static {p2}, Lcom/google/ar/core/AugmentedImageDatabase;->convertBitmapToGrayscaleDirectBuffer(Landroid/graphics/Bitmap;)Ljava/nio/ByteBuffer;
move-result-object v6
.line 2
invoke-virtual {p2}, Landroid/graphics/Bitmap;->getWidth()I
move-result v9
iget-object v0, p0, Lcom/google/ar/core/AugmentedImageDatabase;->session:Lcom/google/ar/core/Session;
.line 3
iget-wide v1, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v3, p0, Lcom/google/ar/core/AugmentedImageDatabase;->nativeHandle:J
.line 4
invoke-virtual {p2}, Landroid/graphics/Bitmap;->getWidth()I
move-result v7
.line 5
invoke-virtual {p2}, Landroid/graphics/Bitmap;->getHeight()I
move-result v8
move-object v0, p0
move-object v5, p1
.line 3
invoke-direct/range {v0 .. v9}, Lcom/google/ar/core/AugmentedImageDatabase;->nativeAddImage(JJLjava/lang/String;Ljava/nio/ByteBuffer;III)I
move-result p1
return p1
.end method
.method public addImage(Ljava/lang/String;Landroid/graphics/Bitmap;F)I
.locals 11
.line 6
invoke-static {p2}, Lcom/google/ar/core/AugmentedImageDatabase;->convertBitmapToGrayscaleDirectBuffer(Landroid/graphics/Bitmap;)Ljava/nio/ByteBuffer;
move-result-object v6
.line 7
invoke-virtual {p2}, Landroid/graphics/Bitmap;->getWidth()I
move-result v9
iget-object v0, p0, Lcom/google/ar/core/AugmentedImageDatabase;->session:Lcom/google/ar/core/Session;
.line 8
iget-wide v1, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v3, p0, Lcom/google/ar/core/AugmentedImageDatabase;->nativeHandle:J
.line 9
invoke-virtual {p2}, Landroid/graphics/Bitmap;->getWidth()I
move-result v7
.line 10
invoke-virtual {p2}, Landroid/graphics/Bitmap;->getHeight()I
move-result v8
move-object v0, p0
move-object v5, p1
move v10, p3
.line 8
invoke-direct/range {v0 .. v10}, Lcom/google/ar/core/AugmentedImageDatabase;->nativeAddImageWithPhysicalSize(JJLjava/lang/String;Ljava/nio/ByteBuffer;IIIF)I
move-result p1
return p1
.end method
.method public finalize()V
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
iget-wide v0, p0, Lcom/google/ar/core/AugmentedImageDatabase;->nativeHandle:J
const-wide/16 v2, 0x0
cmp-long v2, v0, v2
if-eqz v2, :cond_0
iget-wide v2, p0, Lcom/google/ar/core/AugmentedImageDatabase;->nativeSymbolTableHandle:J
.line 1
invoke-direct {p0, v2, v3, v0, v1}, Lcom/google/ar/core/AugmentedImageDatabase;->nativeReleaseDatabase(JJ)V
.line 2
:cond_0
invoke-super {p0}, Ljava/lang/Object;->finalize()V
return-void
.end method
.method public getNumImages()I
.locals 4
iget-object v0, p0, Lcom/google/ar/core/AugmentedImageDatabase;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/AugmentedImageDatabase;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/AugmentedImageDatabase;->nativeGetNumImages(JJ)I
move-result v0
return v0
.end method
.method public serialize(Ljava/io/OutputStream;)V
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lcom/google/ar/core/AugmentedImageDatabase;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/AugmentedImageDatabase;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/AugmentedImageDatabase;->nativeSerialize(JJ)Ljava/nio/ByteBuffer;
move-result-object v0
.line 2
invoke-static {p1}, Ljava/nio/channels/Channels;->newChannel(Ljava/io/OutputStream;)Ljava/nio/channels/WritableByteChannel;
move-result-object p1
.line 3
invoke-interface {p1, v0}, Ljava/nio/channels/WritableByteChannel;->write(Ljava/nio/ByteBuffer;)I
return-void
.end method

View File

@@ -0,0 +1,375 @@
.class public Lcom/google/ar/core/Camera;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field private static final TAG:Ljava/lang/String; = "ARCore-Camera"
# instance fields
.field nativeHandle:J
.field private final nativeSymbolTableHandle:J
.field private final session:Lcom/google/ar/core/Session;
# direct methods
.method public constructor <init>()V
.locals 2
.line 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput-object v0, p0, Lcom/google/ar/core/Camera;->session:Lcom/google/ar/core/Session;
const-wide/16 v0, 0x0
iput-wide v0, p0, Lcom/google/ar/core/Camera;->nativeHandle:J
iput-wide v0, p0, Lcom/google/ar/core/Camera;->nativeSymbolTableHandle:J
return-void
.end method
.method public constructor <init>(Lcom/google/ar/core/Session;Lcom/google/ar/core/Frame;)V
.locals 4
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/ar/core/Camera;->session:Lcom/google/ar/core/Session;
iget-wide v0, p1, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p2, Lcom/google/ar/core/Frame;->nativeHandle:J
invoke-static {v0, v1, v2, v3}, Lcom/google/ar/core/Camera;->nativeAcquireCamera(JJ)J
move-result-wide v0
iput-wide v0, p0, Lcom/google/ar/core/Camera;->nativeHandle:J
.line 2
iget-wide p1, p1, Lcom/google/ar/core/Session;->nativeSymbolTableHandle:J
iput-wide p1, p0, Lcom/google/ar/core/Camera;->nativeSymbolTableHandle:J
return-void
.end method
.method private static native nativeAcquireCamera(JJ)J
.end method
.method private native nativeCreateCameraIntrinsics(J)J
.end method
.method private native nativeDisplayOrientedPose(JJ)Lcom/google/ar/core/Pose;
.end method
.method private native nativeGetImageIntrinsics(JJJ)V
.end method
.method private native nativeGetPose(JJ)Lcom/google/ar/core/Pose;
.end method
.method private native nativeGetProjectionMatrix(JJ[FIFF)V
.end method
.method private native nativeGetTextureIntrinsics(JJJ)V
.end method
.method private native nativeGetTrackingFailureReason(JJ)I
.end method
.method private native nativeGetTrackingState(JJ)I
.end method
.method private native nativeGetViewMatrix(JJ[FI)V
.end method
.method private static native nativeReleaseCamera(JJ)V
.end method
# virtual methods
.method public equals(Ljava/lang/Object;)Z
.locals 6
.line 1
instance-of v0, p1, Lcom/google/ar/core/Camera;
const/4 v1, 0x0
if-nez v0, :cond_0
return v1
.line 2
:cond_0
check-cast p1, Lcom/google/ar/core/Camera;
.line 3
iget-wide v2, p1, Lcom/google/ar/core/Camera;->nativeHandle:J
iget-wide v4, p0, Lcom/google/ar/core/Camera;->nativeHandle:J
cmp-long p1, v2, v4
if-nez p1, :cond_1
const/4 p1, 0x1
return p1
:cond_1
return v1
.end method
.method public finalize()V
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
iget-wide v0, p0, Lcom/google/ar/core/Camera;->nativeHandle:J
const-wide/16 v2, 0x0
cmp-long v2, v0, v2
if-eqz v2, :cond_0
iget-wide v2, p0, Lcom/google/ar/core/Camera;->nativeSymbolTableHandle:J
.line 1
invoke-static {v2, v3, v0, v1}, Lcom/google/ar/core/Camera;->nativeReleaseCamera(JJ)V
.line 2
:cond_0
invoke-super {p0}, Ljava/lang/Object;->finalize()V
return-void
.end method
.method public getDisplayOrientedPose()Lcom/google/ar/core/Pose;
.locals 4
iget-object v0, p0, Lcom/google/ar/core/Camera;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/Camera;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/Camera;->nativeDisplayOrientedPose(JJ)Lcom/google/ar/core/Pose;
move-result-object v0
return-object v0
.end method
.method public getImageIntrinsics()Lcom/google/ar/core/CameraIntrinsics;
.locals 10
iget-object v0, p0, Lcom/google/ar/core/Camera;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
invoke-direct {p0, v0, v1}, Lcom/google/ar/core/Camera;->nativeCreateCameraIntrinsics(J)J
move-result-wide v0
new-instance v2, Lcom/google/ar/core/CameraIntrinsics;
iget-object v3, p0, Lcom/google/ar/core/Camera;->session:Lcom/google/ar/core/Session;
.line 2
invoke-direct {v2, v0, v1, v3}, Lcom/google/ar/core/CameraIntrinsics;-><init>(JLcom/google/ar/core/Session;)V
iget-object v0, p0, Lcom/google/ar/core/Camera;->session:Lcom/google/ar/core/Session;
.line 3
iget-wide v4, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v6, p0, Lcom/google/ar/core/Camera;->nativeHandle:J
iget-wide v8, v2, Lcom/google/ar/core/CameraIntrinsics;->nativeHandle:J
move-object v3, p0
invoke-direct/range {v3 .. v9}, Lcom/google/ar/core/Camera;->nativeGetImageIntrinsics(JJJ)V
return-object v2
.end method
.method public getPose()Lcom/google/ar/core/Pose;
.locals 4
iget-object v0, p0, Lcom/google/ar/core/Camera;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/Camera;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/Camera;->nativeGetPose(JJ)Lcom/google/ar/core/Pose;
move-result-object v0
return-object v0
.end method
.method public getProjectionMatrix([FIFF)V
.locals 10
iget-object v0, p0, Lcom/google/ar/core/Camera;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v2, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v4, p0, Lcom/google/ar/core/Camera;->nativeHandle:J
move-object v1, p0
move-object v6, p1
move v7, p2
move v8, p3
move v9, p4
invoke-direct/range {v1 .. v9}, Lcom/google/ar/core/Camera;->nativeGetProjectionMatrix(JJ[FIFF)V
return-void
.end method
.method public getTextureIntrinsics()Lcom/google/ar/core/CameraIntrinsics;
.locals 10
iget-object v0, p0, Lcom/google/ar/core/Camera;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
invoke-direct {p0, v0, v1}, Lcom/google/ar/core/Camera;->nativeCreateCameraIntrinsics(J)J
move-result-wide v0
new-instance v2, Lcom/google/ar/core/CameraIntrinsics;
iget-object v3, p0, Lcom/google/ar/core/Camera;->session:Lcom/google/ar/core/Session;
.line 2
invoke-direct {v2, v0, v1, v3}, Lcom/google/ar/core/CameraIntrinsics;-><init>(JLcom/google/ar/core/Session;)V
iget-object v0, p0, Lcom/google/ar/core/Camera;->session:Lcom/google/ar/core/Session;
.line 3
iget-wide v4, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v6, p0, Lcom/google/ar/core/Camera;->nativeHandle:J
iget-wide v8, v2, Lcom/google/ar/core/CameraIntrinsics;->nativeHandle:J
move-object v3, p0
invoke-direct/range {v3 .. v9}, Lcom/google/ar/core/Camera;->nativeGetTextureIntrinsics(JJJ)V
return-object v2
.end method
.method public getTrackingFailureReason()Lcom/google/ar/core/TrackingFailureReason;
.locals 4
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/Camera;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/Camera;->nativeHandle:J
.line 2
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/Camera;->nativeGetTrackingFailureReason(JJ)I
move-result v0
.line 1
invoke-static {v0}, Lcom/google/ar/core/TrackingFailureReason;->forNumber(I)Lcom/google/ar/core/TrackingFailureReason;
move-result-object v0
return-object v0
.end method
.method public getTrackingState()Lcom/google/ar/core/TrackingState;
.locals 4
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/Camera;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/Camera;->nativeHandle:J
.line 2
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/Camera;->nativeGetTrackingState(JJ)I
move-result v0
.line 1
invoke-static {v0}, Lcom/google/ar/core/TrackingState;->forNumber(I)Lcom/google/ar/core/TrackingState;
move-result-object v0
return-object v0
.end method
.method public getViewMatrix([FI)V
.locals 8
iget-object v0, p0, Lcom/google/ar/core/Camera;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v2, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v4, p0, Lcom/google/ar/core/Camera;->nativeHandle:J
move-object v1, p0
move-object v6, p1
move v7, p2
invoke-direct/range {v1 .. v7}, Lcom/google/ar/core/Camera;->nativeGetViewMatrix(JJ[FI)V
return-void
.end method
.method public hashCode()I
.locals 2
iget-wide v0, p0, Lcom/google/ar/core/Camera;->nativeHandle:J
.line 1
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Long;->hashCode()I
move-result v0
return v0
.end method

View File

@@ -0,0 +1,241 @@
.class public final enum Lcom/google/ar/core/CameraConfig$DepthSensorUsage;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/ar/core/CameraConfig;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "DepthSensorUsage"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/ar/core/CameraConfig$DepthSensorUsage;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/ar/core/CameraConfig$DepthSensorUsage;
.field public static final enum DO_NOT_USE:Lcom/google/ar/core/CameraConfig$DepthSensorUsage;
.field public static final enum REQUIRE_AND_USE:Lcom/google/ar/core/CameraConfig$DepthSensorUsage;
# instance fields
.field final nativeCode:I
# direct methods
.method private static synthetic $values()[Lcom/google/ar/core/CameraConfig$DepthSensorUsage;
.locals 2
sget-object v0, Lcom/google/ar/core/CameraConfig$DepthSensorUsage;->REQUIRE_AND_USE:Lcom/google/ar/core/CameraConfig$DepthSensorUsage;
sget-object v1, Lcom/google/ar/core/CameraConfig$DepthSensorUsage;->DO_NOT_USE:Lcom/google/ar/core/CameraConfig$DepthSensorUsage;
filled-new-array {v0, v1}, [Lcom/google/ar/core/CameraConfig$DepthSensorUsage;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 4
.line 1
new-instance v0, Lcom/google/ar/core/CameraConfig$DepthSensorUsage;
const-string v1, "REQUIRE_AND_USE"
const/4 v2, 0x0
const/4 v3, 0x1
invoke-direct {v0, v1, v2, v3}, Lcom/google/ar/core/CameraConfig$DepthSensorUsage;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/CameraConfig$DepthSensorUsage;->REQUIRE_AND_USE:Lcom/google/ar/core/CameraConfig$DepthSensorUsage;
new-instance v0, Lcom/google/ar/core/CameraConfig$DepthSensorUsage;
const-string v1, "DO_NOT_USE"
const/4 v2, 0x2
.line 2
invoke-direct {v0, v1, v3, v2}, Lcom/google/ar/core/CameraConfig$DepthSensorUsage;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/CameraConfig$DepthSensorUsage;->DO_NOT_USE:Lcom/google/ar/core/CameraConfig$DepthSensorUsage;
.line 3
invoke-static {}, Lcom/google/ar/core/CameraConfig$DepthSensorUsage;->$values()[Lcom/google/ar/core/CameraConfig$DepthSensorUsage;
move-result-object v0
sput-object v0, Lcom/google/ar/core/CameraConfig$DepthSensorUsage;->$VALUES:[Lcom/google/ar/core/CameraConfig$DepthSensorUsage;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput p3, p0, Lcom/google/ar/core/CameraConfig$DepthSensorUsage;->nativeCode:I
return-void
.end method
.method public static forBitFlags(I)Ljava/util/EnumSet;
.locals 6
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)",
"Ljava/util/EnumSet<",
"Lcom/google/ar/core/CameraConfig$DepthSensorUsage;",
">;"
}
.end annotation
const-class v0, Lcom/google/ar/core/CameraConfig$DepthSensorUsage;
.line 1
invoke-static {v0}, Ljava/util/EnumSet;->noneOf(Ljava/lang/Class;)Ljava/util/EnumSet;
move-result-object v0
.line 2
invoke-static {}, Lcom/google/ar/core/CameraConfig$DepthSensorUsage;->values()[Lcom/google/ar/core/CameraConfig$DepthSensorUsage;
move-result-object v1
array-length v2, v1
const/4 v3, 0x0
:goto_0
if-ge v3, v2, :cond_1
aget-object v4, v1, v3
.line 3
iget v5, v4, Lcom/google/ar/core/CameraConfig$DepthSensorUsage;->nativeCode:I
and-int/2addr v5, p0
if-eqz v5, :cond_0
.line 4
invoke-virtual {v0, v4}, Ljava/util/AbstractCollection;->add(Ljava/lang/Object;)Z
:cond_0
add-int/lit8 v3, v3, 0x1
goto :goto_0
:cond_1
return-object v0
.end method
.method public static forNumber(I)Lcom/google/ar/core/CameraConfig$DepthSensorUsage;
.locals 5
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-static {}, Lcom/google/ar/core/CameraConfig$DepthSensorUsage;->values()[Lcom/google/ar/core/CameraConfig$DepthSensorUsage;
move-result-object v0
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_1
aget-object v3, v0, v2
.line 2
iget v4, v3, Lcom/google/ar/core/CameraConfig$DepthSensorUsage;->nativeCode:I
if-ne v4, p0, :cond_0
return-object v3
:cond_0
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
new-instance v0, Lcom/google/ar/core/exceptions/FatalException;
new-instance v1, Ljava/lang/StringBuilder;
.line 3
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Unexpected value for native DepthSensorUsage, value="
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Lcom/google/ar/core/exceptions/FatalException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/ar/core/CameraConfig$DepthSensorUsage;
.locals 1
const-class v0, Lcom/google/ar/core/CameraConfig$DepthSensorUsage;
.line 1
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/ar/core/CameraConfig$DepthSensorUsage;
return-object p0
.end method
.method public static values()[Lcom/google/ar/core/CameraConfig$DepthSensorUsage;
.locals 1
sget-object v0, Lcom/google/ar/core/CameraConfig$DepthSensorUsage;->$VALUES:[Lcom/google/ar/core/CameraConfig$DepthSensorUsage;
.line 1
invoke-virtual {v0}, [Lcom/google/ar/core/CameraConfig$DepthSensorUsage;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/ar/core/CameraConfig$DepthSensorUsage;
return-object v0
.end method

View File

@@ -0,0 +1,185 @@
.class public final enum Lcom/google/ar/core/CameraConfig$FacingDirection;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/ar/core/CameraConfig;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "FacingDirection"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/ar/core/CameraConfig$FacingDirection;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/ar/core/CameraConfig$FacingDirection;
.field public static final enum BACK:Lcom/google/ar/core/CameraConfig$FacingDirection;
.field public static final enum FRONT:Lcom/google/ar/core/CameraConfig$FacingDirection;
# instance fields
.field final nativeCode:I
# direct methods
.method private static synthetic $values()[Lcom/google/ar/core/CameraConfig$FacingDirection;
.locals 2
sget-object v0, Lcom/google/ar/core/CameraConfig$FacingDirection;->BACK:Lcom/google/ar/core/CameraConfig$FacingDirection;
sget-object v1, Lcom/google/ar/core/CameraConfig$FacingDirection;->FRONT:Lcom/google/ar/core/CameraConfig$FacingDirection;
filled-new-array {v0, v1}, [Lcom/google/ar/core/CameraConfig$FacingDirection;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 3
.line 1
new-instance v0, Lcom/google/ar/core/CameraConfig$FacingDirection;
const-string v1, "BACK"
const/4 v2, 0x0
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/CameraConfig$FacingDirection;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/CameraConfig$FacingDirection;->BACK:Lcom/google/ar/core/CameraConfig$FacingDirection;
new-instance v0, Lcom/google/ar/core/CameraConfig$FacingDirection;
const-string v1, "FRONT"
const/4 v2, 0x1
.line 2
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/CameraConfig$FacingDirection;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/CameraConfig$FacingDirection;->FRONT:Lcom/google/ar/core/CameraConfig$FacingDirection;
.line 3
invoke-static {}, Lcom/google/ar/core/CameraConfig$FacingDirection;->$values()[Lcom/google/ar/core/CameraConfig$FacingDirection;
move-result-object v0
sput-object v0, Lcom/google/ar/core/CameraConfig$FacingDirection;->$VALUES:[Lcom/google/ar/core/CameraConfig$FacingDirection;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput p3, p0, Lcom/google/ar/core/CameraConfig$FacingDirection;->nativeCode:I
return-void
.end method
.method public static forNumber(I)Lcom/google/ar/core/CameraConfig$FacingDirection;
.locals 5
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-static {}, Lcom/google/ar/core/CameraConfig$FacingDirection;->values()[Lcom/google/ar/core/CameraConfig$FacingDirection;
move-result-object v0
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_1
aget-object v3, v0, v2
.line 2
iget v4, v3, Lcom/google/ar/core/CameraConfig$FacingDirection;->nativeCode:I
if-ne v4, p0, :cond_0
return-object v3
:cond_0
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
new-instance v0, Lcom/google/ar/core/exceptions/FatalException;
new-instance v1, Ljava/lang/StringBuilder;
.line 3
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Unexpected value for native FacingDirection, value="
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Lcom/google/ar/core/exceptions/FatalException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/ar/core/CameraConfig$FacingDirection;
.locals 1
const-class v0, Lcom/google/ar/core/CameraConfig$FacingDirection;
.line 1
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/ar/core/CameraConfig$FacingDirection;
return-object p0
.end method
.method public static values()[Lcom/google/ar/core/CameraConfig$FacingDirection;
.locals 1
sget-object v0, Lcom/google/ar/core/CameraConfig$FacingDirection;->$VALUES:[Lcom/google/ar/core/CameraConfig$FacingDirection;
.line 1
invoke-virtual {v0}, [Lcom/google/ar/core/CameraConfig$FacingDirection;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/ar/core/CameraConfig$FacingDirection;
return-object v0
.end method

View File

@@ -0,0 +1,241 @@
.class public final enum Lcom/google/ar/core/CameraConfig$StereoCameraUsage;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/ar/core/CameraConfig;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "StereoCameraUsage"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/ar/core/CameraConfig$StereoCameraUsage;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/ar/core/CameraConfig$StereoCameraUsage;
.field public static final enum DO_NOT_USE:Lcom/google/ar/core/CameraConfig$StereoCameraUsage;
.field public static final enum REQUIRE_AND_USE:Lcom/google/ar/core/CameraConfig$StereoCameraUsage;
# instance fields
.field final nativeCode:I
# direct methods
.method private static synthetic $values()[Lcom/google/ar/core/CameraConfig$StereoCameraUsage;
.locals 2
sget-object v0, Lcom/google/ar/core/CameraConfig$StereoCameraUsage;->REQUIRE_AND_USE:Lcom/google/ar/core/CameraConfig$StereoCameraUsage;
sget-object v1, Lcom/google/ar/core/CameraConfig$StereoCameraUsage;->DO_NOT_USE:Lcom/google/ar/core/CameraConfig$StereoCameraUsage;
filled-new-array {v0, v1}, [Lcom/google/ar/core/CameraConfig$StereoCameraUsage;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 4
.line 1
new-instance v0, Lcom/google/ar/core/CameraConfig$StereoCameraUsage;
const-string v1, "REQUIRE_AND_USE"
const/4 v2, 0x0
const/4 v3, 0x1
invoke-direct {v0, v1, v2, v3}, Lcom/google/ar/core/CameraConfig$StereoCameraUsage;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/CameraConfig$StereoCameraUsage;->REQUIRE_AND_USE:Lcom/google/ar/core/CameraConfig$StereoCameraUsage;
new-instance v0, Lcom/google/ar/core/CameraConfig$StereoCameraUsage;
const-string v1, "DO_NOT_USE"
const/4 v2, 0x2
.line 2
invoke-direct {v0, v1, v3, v2}, Lcom/google/ar/core/CameraConfig$StereoCameraUsage;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/CameraConfig$StereoCameraUsage;->DO_NOT_USE:Lcom/google/ar/core/CameraConfig$StereoCameraUsage;
.line 3
invoke-static {}, Lcom/google/ar/core/CameraConfig$StereoCameraUsage;->$values()[Lcom/google/ar/core/CameraConfig$StereoCameraUsage;
move-result-object v0
sput-object v0, Lcom/google/ar/core/CameraConfig$StereoCameraUsage;->$VALUES:[Lcom/google/ar/core/CameraConfig$StereoCameraUsage;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput p3, p0, Lcom/google/ar/core/CameraConfig$StereoCameraUsage;->nativeCode:I
return-void
.end method
.method public static forBitFlags(I)Ljava/util/EnumSet;
.locals 6
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)",
"Ljava/util/EnumSet<",
"Lcom/google/ar/core/CameraConfig$StereoCameraUsage;",
">;"
}
.end annotation
const-class v0, Lcom/google/ar/core/CameraConfig$StereoCameraUsage;
.line 1
invoke-static {v0}, Ljava/util/EnumSet;->noneOf(Ljava/lang/Class;)Ljava/util/EnumSet;
move-result-object v0
.line 2
invoke-static {}, Lcom/google/ar/core/CameraConfig$StereoCameraUsage;->values()[Lcom/google/ar/core/CameraConfig$StereoCameraUsage;
move-result-object v1
array-length v2, v1
const/4 v3, 0x0
:goto_0
if-ge v3, v2, :cond_1
aget-object v4, v1, v3
.line 3
iget v5, v4, Lcom/google/ar/core/CameraConfig$StereoCameraUsage;->nativeCode:I
and-int/2addr v5, p0
if-eqz v5, :cond_0
.line 4
invoke-virtual {v0, v4}, Ljava/util/AbstractCollection;->add(Ljava/lang/Object;)Z
:cond_0
add-int/lit8 v3, v3, 0x1
goto :goto_0
:cond_1
return-object v0
.end method
.method public static forNumber(I)Lcom/google/ar/core/CameraConfig$StereoCameraUsage;
.locals 5
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-static {}, Lcom/google/ar/core/CameraConfig$StereoCameraUsage;->values()[Lcom/google/ar/core/CameraConfig$StereoCameraUsage;
move-result-object v0
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_1
aget-object v3, v0, v2
.line 2
iget v4, v3, Lcom/google/ar/core/CameraConfig$StereoCameraUsage;->nativeCode:I
if-ne v4, p0, :cond_0
return-object v3
:cond_0
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
new-instance v0, Lcom/google/ar/core/exceptions/FatalException;
new-instance v1, Ljava/lang/StringBuilder;
.line 3
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Unexpected value for native StereoCameraUsage, value="
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Lcom/google/ar/core/exceptions/FatalException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/ar/core/CameraConfig$StereoCameraUsage;
.locals 1
const-class v0, Lcom/google/ar/core/CameraConfig$StereoCameraUsage;
.line 1
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/ar/core/CameraConfig$StereoCameraUsage;
return-object p0
.end method
.method public static values()[Lcom/google/ar/core/CameraConfig$StereoCameraUsage;
.locals 1
sget-object v0, Lcom/google/ar/core/CameraConfig$StereoCameraUsage;->$VALUES:[Lcom/google/ar/core/CameraConfig$StereoCameraUsage;
.line 1
invoke-virtual {v0}, [Lcom/google/ar/core/CameraConfig$StereoCameraUsage;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/ar/core/CameraConfig$StereoCameraUsage;
return-object v0
.end method

View File

@@ -0,0 +1,184 @@
.class public final enum Lcom/google/ar/core/CameraConfig$TargetFps;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/ar/core/CameraConfig;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "TargetFps"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/ar/core/CameraConfig$TargetFps;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/ar/core/CameraConfig$TargetFps;
.field public static final enum TARGET_FPS_30:Lcom/google/ar/core/CameraConfig$TargetFps;
.field public static final enum TARGET_FPS_60:Lcom/google/ar/core/CameraConfig$TargetFps;
# instance fields
.field final nativeCode:I
# direct methods
.method private static synthetic $values()[Lcom/google/ar/core/CameraConfig$TargetFps;
.locals 2
sget-object v0, Lcom/google/ar/core/CameraConfig$TargetFps;->TARGET_FPS_30:Lcom/google/ar/core/CameraConfig$TargetFps;
sget-object v1, Lcom/google/ar/core/CameraConfig$TargetFps;->TARGET_FPS_60:Lcom/google/ar/core/CameraConfig$TargetFps;
filled-new-array {v0, v1}, [Lcom/google/ar/core/CameraConfig$TargetFps;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 4
.line 1
new-instance v0, Lcom/google/ar/core/CameraConfig$TargetFps;
const-string v1, "TARGET_FPS_30"
const/4 v2, 0x0
const/4 v3, 0x1
invoke-direct {v0, v1, v2, v3}, Lcom/google/ar/core/CameraConfig$TargetFps;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/CameraConfig$TargetFps;->TARGET_FPS_30:Lcom/google/ar/core/CameraConfig$TargetFps;
new-instance v0, Lcom/google/ar/core/CameraConfig$TargetFps;
const-string v1, "TARGET_FPS_60"
const/4 v2, 0x2
.line 2
invoke-direct {v0, v1, v3, v2}, Lcom/google/ar/core/CameraConfig$TargetFps;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/CameraConfig$TargetFps;->TARGET_FPS_60:Lcom/google/ar/core/CameraConfig$TargetFps;
.line 3
invoke-static {}, Lcom/google/ar/core/CameraConfig$TargetFps;->$values()[Lcom/google/ar/core/CameraConfig$TargetFps;
move-result-object v0
sput-object v0, Lcom/google/ar/core/CameraConfig$TargetFps;->$VALUES:[Lcom/google/ar/core/CameraConfig$TargetFps;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput p3, p0, Lcom/google/ar/core/CameraConfig$TargetFps;->nativeCode:I
return-void
.end method
.method public static forBitFlags(I)Ljava/util/EnumSet;
.locals 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)",
"Ljava/util/EnumSet<",
"Lcom/google/ar/core/CameraConfig$TargetFps;",
">;"
}
.end annotation
const-class v0, Lcom/google/ar/core/CameraConfig$TargetFps;
.line 1
invoke-static {v0}, Ljava/util/EnumSet;->noneOf(Ljava/lang/Class;)Ljava/util/EnumSet;
move-result-object v0
.line 2
invoke-static {}, Lcom/google/ar/core/CameraConfig$TargetFps;->values()[Lcom/google/ar/core/CameraConfig$TargetFps;
move-result-object v1
array-length v2, v1
const/4 v3, 0x0
:goto_0
if-ge v3, v2, :cond_1
aget-object v4, v1, v3
.line 3
iget v5, v4, Lcom/google/ar/core/CameraConfig$TargetFps;->nativeCode:I
and-int/2addr v5, p0
if-eqz v5, :cond_0
.line 4
invoke-virtual {v0, v4}, Ljava/util/AbstractCollection;->add(Ljava/lang/Object;)Z
:cond_0
add-int/lit8 v3, v3, 0x1
goto :goto_0
:cond_1
return-object v0
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/ar/core/CameraConfig$TargetFps;
.locals 1
const-class v0, Lcom/google/ar/core/CameraConfig$TargetFps;
.line 1
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/ar/core/CameraConfig$TargetFps;
return-object p0
.end method
.method public static values()[Lcom/google/ar/core/CameraConfig$TargetFps;
.locals 1
sget-object v0, Lcom/google/ar/core/CameraConfig$TargetFps;->$VALUES:[Lcom/google/ar/core/CameraConfig$TargetFps;
.line 1
invoke-virtual {v0}, [Lcom/google/ar/core/CameraConfig$TargetFps;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/ar/core/CameraConfig$TargetFps;
return-object v0
.end method

View File

@@ -0,0 +1,339 @@
.class public Lcom/google/ar/core/CameraConfig;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/ar/core/CameraConfig$StereoCameraUsage;,
Lcom/google/ar/core/CameraConfig$DepthSensorUsage;,
Lcom/google/ar/core/CameraConfig$TargetFps;,
Lcom/google/ar/core/CameraConfig$FacingDirection;
}
.end annotation
# instance fields
.field nativeHandle:J
.field private final nativeSymbolTableHandle:J
.field private final session:Lcom/google/ar/core/Session;
# direct methods
.method public constructor <init>()V
.locals 2
.line 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput-object v0, p0, Lcom/google/ar/core/CameraConfig;->session:Lcom/google/ar/core/Session;
const-wide/16 v0, 0x0
iput-wide v0, p0, Lcom/google/ar/core/CameraConfig;->nativeHandle:J
iput-wide v0, p0, Lcom/google/ar/core/CameraConfig;->nativeSymbolTableHandle:J
return-void
.end method
.method public constructor <init>(Lcom/google/ar/core/Session;J)V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/ar/core/CameraConfig;->session:Lcom/google/ar/core/Session;
iput-wide p2, p0, Lcom/google/ar/core/CameraConfig;->nativeHandle:J
iget-wide p1, p1, Lcom/google/ar/core/Session;->nativeSymbolTableHandle:J
iput-wide p1, p0, Lcom/google/ar/core/CameraConfig;->nativeSymbolTableHandle:J
return-void
.end method
.method private static native nativeDestroyCameraConfig(JJ)V
.end method
.method private native nativeGetCameraId(JJ)Ljava/lang/String;
.end method
.method private native nativeGetDepthSensorUsage(JJ)I
.end method
.method private native nativeGetFacingDirection(JJ)I
.end method
.method private native nativeGetFpsRange(JJ[I)V
.end method
.method private native nativeGetImageDimensions(JJ[I)V
.end method
.method private native nativeGetStereoCameraUsage(JJ)I
.end method
.method private native nativeGetTextureDimensions(JJ[I)V
.end method
# virtual methods
.method public finalize()V
.locals 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
iget-wide v0, p0, Lcom/google/ar/core/CameraConfig;->nativeHandle:J
const-wide/16 v2, 0x0
cmp-long v4, v0, v2
if-eqz v4, :cond_0
iget-wide v4, p0, Lcom/google/ar/core/CameraConfig;->nativeSymbolTableHandle:J
.line 1
invoke-static {v4, v5, v0, v1}, Lcom/google/ar/core/CameraConfig;->nativeDestroyCameraConfig(JJ)V
iput-wide v2, p0, Lcom/google/ar/core/CameraConfig;->nativeHandle:J
.line 2
:cond_0
invoke-super {p0}, Ljava/lang/Object;->finalize()V
return-void
.end method
.method public getCameraId()Ljava/lang/String;
.locals 4
iget-object v0, p0, Lcom/google/ar/core/CameraConfig;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/CameraConfig;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/CameraConfig;->nativeGetCameraId(JJ)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public getDepthSensorUsage()Lcom/google/ar/core/CameraConfig$DepthSensorUsage;
.locals 4
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/CameraConfig;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/CameraConfig;->nativeHandle:J
.line 2
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/CameraConfig;->nativeGetDepthSensorUsage(JJ)I
move-result v0
.line 1
invoke-static {v0}, Lcom/google/ar/core/CameraConfig$DepthSensorUsage;->forNumber(I)Lcom/google/ar/core/CameraConfig$DepthSensorUsage;
move-result-object v0
return-object v0
.end method
.method public getFacingDirection()Lcom/google/ar/core/CameraConfig$FacingDirection;
.locals 4
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/CameraConfig;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/CameraConfig;->nativeHandle:J
.line 2
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/CameraConfig;->nativeGetFacingDirection(JJ)I
move-result v0
.line 1
invoke-static {v0}, Lcom/google/ar/core/CameraConfig$FacingDirection;->forNumber(I)Lcom/google/ar/core/CameraConfig$FacingDirection;
move-result-object v0
return-object v0
.end method
.method public getFpsRange()Landroid/util/Range;
.locals 7
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Landroid/util/Range<",
"Ljava/lang/Integer;",
">;"
}
.end annotation
const/4 v0, 0x2
new-array v0, v0, [I
iget-object v1, p0, Lcom/google/ar/core/CameraConfig;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v2, v1, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v4, p0, Lcom/google/ar/core/CameraConfig;->nativeHandle:J
move-object v1, p0
move-object v6, v0
invoke-direct/range {v1 .. v6}, Lcom/google/ar/core/CameraConfig;->nativeGetFpsRange(JJ[I)V
.line 2
new-instance v1, Landroid/util/Range;
const/4 v2, 0x0
aget v2, v0, v2
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
const/4 v3, 0x1
aget v0, v0, v3
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
invoke-direct {v1, v2, v0}, Landroid/util/Range;-><init>(Ljava/lang/Comparable;Ljava/lang/Comparable;)V
return-object v1
.end method
.method public getImageSize()Landroid/util/Size;
.locals 7
.annotation build Landroidx/annotation/NonNull;
.end annotation
const/4 v0, 0x2
new-array v0, v0, [I
iget-object v1, p0, Lcom/google/ar/core/CameraConfig;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v2, v1, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v4, p0, Lcom/google/ar/core/CameraConfig;->nativeHandle:J
move-object v1, p0
move-object v6, v0
invoke-direct/range {v1 .. v6}, Lcom/google/ar/core/CameraConfig;->nativeGetImageDimensions(JJ[I)V
.line 2
new-instance v1, Landroid/util/Size;
const/4 v2, 0x0
aget v2, v0, v2
const/4 v3, 0x1
aget v0, v0, v3
invoke-direct {v1, v2, v0}, Landroid/util/Size;-><init>(II)V
return-object v1
.end method
.method public getStereoCameraUsage()Lcom/google/ar/core/CameraConfig$StereoCameraUsage;
.locals 4
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/CameraConfig;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/CameraConfig;->nativeHandle:J
.line 2
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/CameraConfig;->nativeGetStereoCameraUsage(JJ)I
move-result v0
.line 1
invoke-static {v0}, Lcom/google/ar/core/CameraConfig$StereoCameraUsage;->forNumber(I)Lcom/google/ar/core/CameraConfig$StereoCameraUsage;
move-result-object v0
return-object v0
.end method
.method public getTextureSize()Landroid/util/Size;
.locals 7
.annotation build Landroidx/annotation/NonNull;
.end annotation
const/4 v0, 0x2
new-array v0, v0, [I
iget-object v1, p0, Lcom/google/ar/core/CameraConfig;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v2, v1, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v4, p0, Lcom/google/ar/core/CameraConfig;->nativeHandle:J
move-object v1, p0
move-object v6, v0
invoke-direct/range {v1 .. v6}, Lcom/google/ar/core/CameraConfig;->nativeGetTextureDimensions(JJ[I)V
.line 2
new-instance v1, Landroid/util/Size;
const/4 v2, 0x0
aget v2, v0, v2
const/4 v3, 0x1
aget v0, v0, v3
invoke-direct {v1, v2, v0}, Landroid/util/Size;-><init>(II)V
return-object v1
.end method

View File

@@ -0,0 +1,453 @@
.class public Lcom/google/ar/core/CameraConfigFilter;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field private static final TAG:Ljava/lang/String; = "CameraConfigFilter"
# instance fields
.field nativeHandle:J
.field private final nativeSymbolTableHandle:J
.field private final session:Lcom/google/ar/core/Session;
# direct methods
.method static constructor <clinit>()V
.locals 0
return-void
.end method
.method public constructor <init>()V
.locals 2
.line 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput-object v0, p0, Lcom/google/ar/core/CameraConfigFilter;->session:Lcom/google/ar/core/Session;
const-wide/16 v0, 0x0
iput-wide v0, p0, Lcom/google/ar/core/CameraConfigFilter;->nativeHandle:J
iput-wide v0, p0, Lcom/google/ar/core/CameraConfigFilter;->nativeSymbolTableHandle:J
return-void
.end method
.method public constructor <init>(Lcom/google/ar/core/Session;)V
.locals 2
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/ar/core/CameraConfigFilter;->session:Lcom/google/ar/core/Session;
iget-wide v0, p1, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
invoke-static {v0, v1}, Lcom/google/ar/core/CameraConfigFilter;->nativeCreateCameraConfigFilter(J)J
move-result-wide v0
iput-wide v0, p0, Lcom/google/ar/core/CameraConfigFilter;->nativeHandle:J
.line 2
iget-wide v0, p1, Lcom/google/ar/core/Session;->nativeSymbolTableHandle:J
iput-wide v0, p0, Lcom/google/ar/core/CameraConfigFilter;->nativeSymbolTableHandle:J
return-void
.end method
.method private static native nativeCreateCameraConfigFilter(J)J
.end method
.method private static native nativeDestroyCameraConfigFilter(JJ)V
.end method
.method private native nativeGetDepthSensorUsage(JJ)I
.end method
.method private native nativeGetFacingDirection(JJ)I
.end method
.method private native nativeGetStereoCameraUsage(JJ)I
.end method
.method private native nativeGetTargetFps(JJ)I
.end method
.method private native nativeSetDepthSensorUsage(JJI)V
.end method
.method private native nativeSetFacingDirection(JJI)V
.end method
.method private native nativeSetStereoCameraUsage(JJI)V
.end method
.method private native nativeSetTargetFps(JJI)V
.end method
# virtual methods
.method public finalize()V
.locals 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
iget-wide v0, p0, Lcom/google/ar/core/CameraConfigFilter;->nativeHandle:J
const-wide/16 v2, 0x0
cmp-long v4, v0, v2
if-eqz v4, :cond_0
iget-wide v4, p0, Lcom/google/ar/core/CameraConfigFilter;->nativeSymbolTableHandle:J
.line 1
invoke-static {v4, v5, v0, v1}, Lcom/google/ar/core/CameraConfigFilter;->nativeDestroyCameraConfigFilter(JJ)V
iput-wide v2, p0, Lcom/google/ar/core/CameraConfigFilter;->nativeHandle:J
.line 2
:cond_0
invoke-super {p0}, Ljava/lang/Object;->finalize()V
return-void
.end method
.method public getDepthSensorUsage()Ljava/util/EnumSet;
.locals 4
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/EnumSet<",
"Lcom/google/ar/core/CameraConfig$DepthSensorUsage;",
">;"
}
.end annotation
iget-object v0, p0, Lcom/google/ar/core/CameraConfigFilter;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/CameraConfigFilter;->nativeHandle:J
.line 2
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/CameraConfigFilter;->nativeGetDepthSensorUsage(JJ)I
move-result v0
.line 1
invoke-static {v0}, Lcom/google/ar/core/CameraConfig$DepthSensorUsage;->forBitFlags(I)Ljava/util/EnumSet;
move-result-object v0
return-object v0
.end method
.method public getFacingDirection()Lcom/google/ar/core/CameraConfig$FacingDirection;
.locals 4
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/CameraConfigFilter;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/CameraConfigFilter;->nativeHandle:J
.line 2
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/CameraConfigFilter;->nativeGetFacingDirection(JJ)I
move-result v0
.line 1
invoke-static {v0}, Lcom/google/ar/core/CameraConfig$FacingDirection;->forNumber(I)Lcom/google/ar/core/CameraConfig$FacingDirection;
move-result-object v0
return-object v0
.end method
.method public getStereoCameraUsage()Ljava/util/EnumSet;
.locals 4
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/EnumSet<",
"Lcom/google/ar/core/CameraConfig$StereoCameraUsage;",
">;"
}
.end annotation
iget-object v0, p0, Lcom/google/ar/core/CameraConfigFilter;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/CameraConfigFilter;->nativeHandle:J
.line 2
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/CameraConfigFilter;->nativeGetStereoCameraUsage(JJ)I
move-result v0
.line 1
invoke-static {v0}, Lcom/google/ar/core/CameraConfig$StereoCameraUsage;->forBitFlags(I)Ljava/util/EnumSet;
move-result-object v0
return-object v0
.end method
.method public getTargetFps()Ljava/util/EnumSet;
.locals 4
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/EnumSet<",
"Lcom/google/ar/core/CameraConfig$TargetFps;",
">;"
}
.end annotation
iget-object v0, p0, Lcom/google/ar/core/CameraConfigFilter;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/CameraConfigFilter;->nativeHandle:J
.line 2
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/CameraConfigFilter;->nativeGetTargetFps(JJ)I
move-result v0
.line 1
invoke-static {v0}, Lcom/google/ar/core/CameraConfig$TargetFps;->forBitFlags(I)Ljava/util/EnumSet;
move-result-object v0
return-object v0
.end method
.method public setDepthSensorUsage(Ljava/util/EnumSet;)Lcom/google/ar/core/CameraConfigFilter;
.locals 7
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/EnumSet<",
"Lcom/google/ar/core/CameraConfig$DepthSensorUsage;",
">;)",
"Lcom/google/ar/core/CameraConfigFilter;"
}
.end annotation
.line 1
invoke-virtual {p1}, Ljava/util/AbstractCollection;->iterator()Ljava/util/Iterator;
move-result-object p1
const/4 v0, 0x0
move v6, v0
:goto_0
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_0
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/ar/core/CameraConfig$DepthSensorUsage;
.line 2
iget v0, v0, Lcom/google/ar/core/CameraConfig$DepthSensorUsage;->nativeCode:I
or-int/2addr v6, v0
goto :goto_0
:cond_0
iget-object p1, p0, Lcom/google/ar/core/CameraConfigFilter;->session:Lcom/google/ar/core/Session;
.line 3
iget-wide v2, p1, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v4, p0, Lcom/google/ar/core/CameraConfigFilter;->nativeHandle:J
move-object v1, p0
invoke-direct/range {v1 .. v6}, Lcom/google/ar/core/CameraConfigFilter;->nativeSetDepthSensorUsage(JJI)V
return-object p0
.end method
.method public setFacingDirection(Lcom/google/ar/core/CameraConfig$FacingDirection;)Lcom/google/ar/core/CameraConfigFilter;
.locals 7
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/CameraConfigFilter;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v2, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v4, p0, Lcom/google/ar/core/CameraConfigFilter;->nativeHandle:J
iget v6, p1, Lcom/google/ar/core/CameraConfig$FacingDirection;->nativeCode:I
move-object v1, p0
invoke-direct/range {v1 .. v6}, Lcom/google/ar/core/CameraConfigFilter;->nativeSetFacingDirection(JJI)V
return-object p0
.end method
.method public setStereoCameraUsage(Ljava/util/EnumSet;)Lcom/google/ar/core/CameraConfigFilter;
.locals 7
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/EnumSet<",
"Lcom/google/ar/core/CameraConfig$StereoCameraUsage;",
">;)",
"Lcom/google/ar/core/CameraConfigFilter;"
}
.end annotation
.line 1
invoke-virtual {p1}, Ljava/util/AbstractCollection;->iterator()Ljava/util/Iterator;
move-result-object p1
const/4 v0, 0x0
move v6, v0
:goto_0
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_0
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/ar/core/CameraConfig$StereoCameraUsage;
.line 2
iget v0, v0, Lcom/google/ar/core/CameraConfig$StereoCameraUsage;->nativeCode:I
or-int/2addr v6, v0
goto :goto_0
:cond_0
iget-object p1, p0, Lcom/google/ar/core/CameraConfigFilter;->session:Lcom/google/ar/core/Session;
.line 3
iget-wide v2, p1, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v4, p0, Lcom/google/ar/core/CameraConfigFilter;->nativeHandle:J
move-object v1, p0
invoke-direct/range {v1 .. v6}, Lcom/google/ar/core/CameraConfigFilter;->nativeSetStereoCameraUsage(JJI)V
return-object p0
.end method
.method public setTargetFps(Ljava/util/EnumSet;)Lcom/google/ar/core/CameraConfigFilter;
.locals 7
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/EnumSet<",
"Lcom/google/ar/core/CameraConfig$TargetFps;",
">;)",
"Lcom/google/ar/core/CameraConfigFilter;"
}
.end annotation
.line 1
invoke-virtual {p1}, Ljava/util/AbstractCollection;->iterator()Ljava/util/Iterator;
move-result-object p1
const/4 v0, 0x0
move v6, v0
:goto_0
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_0
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/ar/core/CameraConfig$TargetFps;
.line 2
iget v0, v0, Lcom/google/ar/core/CameraConfig$TargetFps;->nativeCode:I
or-int/2addr v6, v0
goto :goto_0
:cond_0
iget-object p1, p0, Lcom/google/ar/core/CameraConfigFilter;->session:Lcom/google/ar/core/Session;
.line 3
iget-wide v2, p1, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v4, p0, Lcom/google/ar/core/CameraConfigFilter;->nativeHandle:J
move-object v1, p0
invoke-direct/range {v1 .. v6}, Lcom/google/ar/core/CameraConfigFilter;->nativeSetTargetFps(JJI)V
return-object p0
.end method

View File

@@ -0,0 +1,199 @@
.class public Lcom/google/ar/core/CameraIntrinsics;
.super Ljava/lang/Object;
.source "SourceFile"
# instance fields
.field nativeHandle:J
.field private final nativeSymbolTableHandle:J
.field private final session:Lcom/google/ar/core/Session;
# direct methods
.method public constructor <init>()V
.locals 3
.line 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const-wide/16 v0, 0x0
iput-wide v0, p0, Lcom/google/ar/core/CameraIntrinsics;->nativeHandle:J
const/4 v2, 0x0
iput-object v2, p0, Lcom/google/ar/core/CameraIntrinsics;->session:Lcom/google/ar/core/Session;
iput-wide v0, p0, Lcom/google/ar/core/CameraIntrinsics;->nativeSymbolTableHandle:J
return-void
.end method
.method public constructor <init>(JLcom/google/ar/core/Session;)V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-wide p1, p0, Lcom/google/ar/core/CameraIntrinsics;->nativeHandle:J
iput-object p3, p0, Lcom/google/ar/core/CameraIntrinsics;->session:Lcom/google/ar/core/Session;
iget-wide p1, p3, Lcom/google/ar/core/Session;->nativeSymbolTableHandle:J
iput-wide p1, p0, Lcom/google/ar/core/CameraIntrinsics;->nativeSymbolTableHandle:J
return-void
.end method
.method private native nativeDestroyCameraIntrinsics(JJ)V
.end method
.method private native nativeGetFocalLength(JJ[FI)V
.end method
.method private native nativeGetImageDimensions(JJ[II)V
.end method
.method private native nativeGetPrincipalPoint(JJ[FI)V
.end method
# virtual methods
.method public finalize()V
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
iget-wide v0, p0, Lcom/google/ar/core/CameraIntrinsics;->nativeHandle:J
const-wide/16 v2, 0x0
cmp-long v2, v0, v2
if-eqz v2, :cond_0
iget-wide v2, p0, Lcom/google/ar/core/CameraIntrinsics;->nativeSymbolTableHandle:J
.line 1
invoke-direct {p0, v2, v3, v0, v1}, Lcom/google/ar/core/CameraIntrinsics;->nativeDestroyCameraIntrinsics(JJ)V
.line 2
:cond_0
invoke-super {p0}, Ljava/lang/Object;->finalize()V
return-void
.end method
.method public getFocalLength([FI)V
.locals 8
iget-object v0, p0, Lcom/google/ar/core/CameraIntrinsics;->session:Lcom/google/ar/core/Session;
.line 2
iget-wide v2, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v4, p0, Lcom/google/ar/core/CameraIntrinsics;->nativeHandle:J
move-object v1, p0
move-object v6, p1
move v7, p2
invoke-direct/range {v1 .. v7}, Lcom/google/ar/core/CameraIntrinsics;->nativeGetFocalLength(JJ[FI)V
return-void
.end method
.method public getFocalLength()[F
.locals 2
const/4 v0, 0x2
new-array v0, v0, [F
const/4 v1, 0x0
.line 1
invoke-virtual {p0, v0, v1}, Lcom/google/ar/core/CameraIntrinsics;->getFocalLength([FI)V
return-object v0
.end method
.method public getImageDimensions([II)V
.locals 8
iget-object v0, p0, Lcom/google/ar/core/CameraIntrinsics;->session:Lcom/google/ar/core/Session;
.line 2
iget-wide v2, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v4, p0, Lcom/google/ar/core/CameraIntrinsics;->nativeHandle:J
move-object v1, p0
move-object v6, p1
move v7, p2
invoke-direct/range {v1 .. v7}, Lcom/google/ar/core/CameraIntrinsics;->nativeGetImageDimensions(JJ[II)V
return-void
.end method
.method public getImageDimensions()[I
.locals 2
const/4 v0, 0x2
new-array v0, v0, [I
const/4 v1, 0x0
.line 1
invoke-virtual {p0, v0, v1}, Lcom/google/ar/core/CameraIntrinsics;->getImageDimensions([II)V
return-object v0
.end method
.method public getPrincipalPoint([FI)V
.locals 8
iget-object v0, p0, Lcom/google/ar/core/CameraIntrinsics;->session:Lcom/google/ar/core/Session;
.line 2
iget-wide v2, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v4, p0, Lcom/google/ar/core/CameraIntrinsics;->nativeHandle:J
move-object v1, p0
move-object v6, p1
move v7, p2
invoke-direct/range {v1 .. v7}, Lcom/google/ar/core/CameraIntrinsics;->nativeGetPrincipalPoint(JJ[FI)V
return-void
.end method
.method public getPrincipalPoint()[F
.locals 2
const/4 v0, 0x2
new-array v0, v0, [F
const/4 v1, 0x0
.line 1
invoke-virtual {p0, v0, v1}, Lcom/google/ar/core/CameraIntrinsics;->getPrincipalPoint([FI)V
return-object v0
.end method

View File

@@ -0,0 +1,187 @@
.class public final enum Lcom/google/ar/core/Config$AugmentedFaceMode;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/ar/core/Config;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "AugmentedFaceMode"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/ar/core/Config$AugmentedFaceMode;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/ar/core/Config$AugmentedFaceMode;
.field public static final enum DISABLED:Lcom/google/ar/core/Config$AugmentedFaceMode;
.field public static final enum MESH3D:Lcom/google/ar/core/Config$AugmentedFaceMode;
# instance fields
.field final nativeCode:I
# direct methods
.method private static synthetic $values()[Lcom/google/ar/core/Config$AugmentedFaceMode;
.locals 2
sget-object v0, Lcom/google/ar/core/Config$AugmentedFaceMode;->DISABLED:Lcom/google/ar/core/Config$AugmentedFaceMode;
sget-object v1, Lcom/google/ar/core/Config$AugmentedFaceMode;->MESH3D:Lcom/google/ar/core/Config$AugmentedFaceMode;
filled-new-array {v0, v1}, [Lcom/google/ar/core/Config$AugmentedFaceMode;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 4
.line 1
new-instance v0, Lcom/google/ar/core/Config$AugmentedFaceMode;
const-string v1, "DISABLED"
const/4 v2, 0x0
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/Config$AugmentedFaceMode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Config$AugmentedFaceMode;->DISABLED:Lcom/google/ar/core/Config$AugmentedFaceMode;
new-instance v0, Lcom/google/ar/core/Config$AugmentedFaceMode;
const/4 v1, 0x1
const/4 v2, 0x2
const-string v3, "MESH3D"
.line 2
invoke-direct {v0, v3, v1, v2}, Lcom/google/ar/core/Config$AugmentedFaceMode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Config$AugmentedFaceMode;->MESH3D:Lcom/google/ar/core/Config$AugmentedFaceMode;
.line 3
invoke-static {}, Lcom/google/ar/core/Config$AugmentedFaceMode;->$values()[Lcom/google/ar/core/Config$AugmentedFaceMode;
move-result-object v0
sput-object v0, Lcom/google/ar/core/Config$AugmentedFaceMode;->$VALUES:[Lcom/google/ar/core/Config$AugmentedFaceMode;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput p3, p0, Lcom/google/ar/core/Config$AugmentedFaceMode;->nativeCode:I
return-void
.end method
.method public static forNumber(I)Lcom/google/ar/core/Config$AugmentedFaceMode;
.locals 5
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-static {}, Lcom/google/ar/core/Config$AugmentedFaceMode;->values()[Lcom/google/ar/core/Config$AugmentedFaceMode;
move-result-object v0
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_1
aget-object v3, v0, v2
.line 2
iget v4, v3, Lcom/google/ar/core/Config$AugmentedFaceMode;->nativeCode:I
if-ne v4, p0, :cond_0
return-object v3
:cond_0
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
new-instance v0, Lcom/google/ar/core/exceptions/FatalException;
new-instance v1, Ljava/lang/StringBuilder;
.line 3
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Unexpected value for native AugmentedFaceMode, value="
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Lcom/google/ar/core/exceptions/FatalException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/ar/core/Config$AugmentedFaceMode;
.locals 1
const-class v0, Lcom/google/ar/core/Config$AugmentedFaceMode;
.line 1
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/ar/core/Config$AugmentedFaceMode;
return-object p0
.end method
.method public static values()[Lcom/google/ar/core/Config$AugmentedFaceMode;
.locals 1
sget-object v0, Lcom/google/ar/core/Config$AugmentedFaceMode;->$VALUES:[Lcom/google/ar/core/Config$AugmentedFaceMode;
.line 1
invoke-virtual {v0}, [Lcom/google/ar/core/Config$AugmentedFaceMode;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/ar/core/Config$AugmentedFaceMode;
return-object v0
.end method

View File

@@ -0,0 +1,185 @@
.class public final enum Lcom/google/ar/core/Config$CloudAnchorMode;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/ar/core/Config;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "CloudAnchorMode"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/ar/core/Config$CloudAnchorMode;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/ar/core/Config$CloudAnchorMode;
.field public static final enum DISABLED:Lcom/google/ar/core/Config$CloudAnchorMode;
.field public static final enum ENABLED:Lcom/google/ar/core/Config$CloudAnchorMode;
# instance fields
.field final nativeCode:I
# direct methods
.method private static synthetic $values()[Lcom/google/ar/core/Config$CloudAnchorMode;
.locals 2
sget-object v0, Lcom/google/ar/core/Config$CloudAnchorMode;->DISABLED:Lcom/google/ar/core/Config$CloudAnchorMode;
sget-object v1, Lcom/google/ar/core/Config$CloudAnchorMode;->ENABLED:Lcom/google/ar/core/Config$CloudAnchorMode;
filled-new-array {v0, v1}, [Lcom/google/ar/core/Config$CloudAnchorMode;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 3
.line 1
new-instance v0, Lcom/google/ar/core/Config$CloudAnchorMode;
const-string v1, "DISABLED"
const/4 v2, 0x0
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/Config$CloudAnchorMode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Config$CloudAnchorMode;->DISABLED:Lcom/google/ar/core/Config$CloudAnchorMode;
new-instance v0, Lcom/google/ar/core/Config$CloudAnchorMode;
const-string v1, "ENABLED"
const/4 v2, 0x1
.line 2
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/Config$CloudAnchorMode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Config$CloudAnchorMode;->ENABLED:Lcom/google/ar/core/Config$CloudAnchorMode;
.line 3
invoke-static {}, Lcom/google/ar/core/Config$CloudAnchorMode;->$values()[Lcom/google/ar/core/Config$CloudAnchorMode;
move-result-object v0
sput-object v0, Lcom/google/ar/core/Config$CloudAnchorMode;->$VALUES:[Lcom/google/ar/core/Config$CloudAnchorMode;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput p3, p0, Lcom/google/ar/core/Config$CloudAnchorMode;->nativeCode:I
return-void
.end method
.method public static forNumber(I)Lcom/google/ar/core/Config$CloudAnchorMode;
.locals 5
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-static {}, Lcom/google/ar/core/Config$CloudAnchorMode;->values()[Lcom/google/ar/core/Config$CloudAnchorMode;
move-result-object v0
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_1
aget-object v3, v0, v2
.line 2
iget v4, v3, Lcom/google/ar/core/Config$CloudAnchorMode;->nativeCode:I
if-ne v4, p0, :cond_0
return-object v3
:cond_0
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
new-instance v0, Lcom/google/ar/core/exceptions/FatalException;
new-instance v1, Ljava/lang/StringBuilder;
.line 3
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Unexpected value for native AnchorHostingMode, value="
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Lcom/google/ar/core/exceptions/FatalException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/ar/core/Config$CloudAnchorMode;
.locals 1
const-class v0, Lcom/google/ar/core/Config$CloudAnchorMode;
.line 1
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/ar/core/Config$CloudAnchorMode;
return-object p0
.end method
.method public static values()[Lcom/google/ar/core/Config$CloudAnchorMode;
.locals 1
sget-object v0, Lcom/google/ar/core/Config$CloudAnchorMode;->$VALUES:[Lcom/google/ar/core/Config$CloudAnchorMode;
.line 1
invoke-virtual {v0}, [Lcom/google/ar/core/Config$CloudAnchorMode;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/ar/core/Config$CloudAnchorMode;
return-object v0
.end method

View File

@@ -0,0 +1,202 @@
.class public final enum Lcom/google/ar/core/Config$DepthMode;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/ar/core/Config;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "DepthMode"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/ar/core/Config$DepthMode;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/ar/core/Config$DepthMode;
.field public static final enum AUTOMATIC:Lcom/google/ar/core/Config$DepthMode;
.field public static final enum DISABLED:Lcom/google/ar/core/Config$DepthMode;
.field public static final enum RAW_DEPTH_ONLY:Lcom/google/ar/core/Config$DepthMode;
# instance fields
.field final nativeCode:I
# direct methods
.method private static synthetic $values()[Lcom/google/ar/core/Config$DepthMode;
.locals 3
sget-object v0, Lcom/google/ar/core/Config$DepthMode;->DISABLED:Lcom/google/ar/core/Config$DepthMode;
sget-object v1, Lcom/google/ar/core/Config$DepthMode;->AUTOMATIC:Lcom/google/ar/core/Config$DepthMode;
sget-object v2, Lcom/google/ar/core/Config$DepthMode;->RAW_DEPTH_ONLY:Lcom/google/ar/core/Config$DepthMode;
filled-new-array {v0, v1, v2}, [Lcom/google/ar/core/Config$DepthMode;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 4
.line 1
new-instance v0, Lcom/google/ar/core/Config$DepthMode;
const-string v1, "DISABLED"
const/4 v2, 0x0
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/Config$DepthMode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Config$DepthMode;->DISABLED:Lcom/google/ar/core/Config$DepthMode;
new-instance v0, Lcom/google/ar/core/Config$DepthMode;
const-string v1, "AUTOMATIC"
const/4 v2, 0x1
.line 2
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/Config$DepthMode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Config$DepthMode;->AUTOMATIC:Lcom/google/ar/core/Config$DepthMode;
new-instance v0, Lcom/google/ar/core/Config$DepthMode;
const/4 v1, 0x2
const/4 v2, 0x3
const-string v3, "RAW_DEPTH_ONLY"
.line 3
invoke-direct {v0, v3, v1, v2}, Lcom/google/ar/core/Config$DepthMode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Config$DepthMode;->RAW_DEPTH_ONLY:Lcom/google/ar/core/Config$DepthMode;
.line 4
invoke-static {}, Lcom/google/ar/core/Config$DepthMode;->$values()[Lcom/google/ar/core/Config$DepthMode;
move-result-object v0
sput-object v0, Lcom/google/ar/core/Config$DepthMode;->$VALUES:[Lcom/google/ar/core/Config$DepthMode;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput p3, p0, Lcom/google/ar/core/Config$DepthMode;->nativeCode:I
return-void
.end method
.method public static forNumber(I)Lcom/google/ar/core/Config$DepthMode;
.locals 5
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-static {}, Lcom/google/ar/core/Config$DepthMode;->values()[Lcom/google/ar/core/Config$DepthMode;
move-result-object v0
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_1
aget-object v3, v0, v2
.line 2
iget v4, v3, Lcom/google/ar/core/Config$DepthMode;->nativeCode:I
if-ne v4, p0, :cond_0
return-object v3
:cond_0
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
new-instance v0, Lcom/google/ar/core/exceptions/FatalException;
new-instance v1, Ljava/lang/StringBuilder;
.line 3
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Unexpected value for native DepthMode, value="
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Lcom/google/ar/core/exceptions/FatalException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/ar/core/Config$DepthMode;
.locals 1
const-class v0, Lcom/google/ar/core/Config$DepthMode;
.line 1
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/ar/core/Config$DepthMode;
return-object p0
.end method
.method public static values()[Lcom/google/ar/core/Config$DepthMode;
.locals 1
sget-object v0, Lcom/google/ar/core/Config$DepthMode;->$VALUES:[Lcom/google/ar/core/Config$DepthMode;
.line 1
invoke-virtual {v0}, [Lcom/google/ar/core/Config$DepthMode;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/ar/core/Config$DepthMode;
return-object v0
.end method

View File

@@ -0,0 +1,185 @@
.class public final enum Lcom/google/ar/core/Config$FocusMode;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/ar/core/Config;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "FocusMode"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/ar/core/Config$FocusMode;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/ar/core/Config$FocusMode;
.field public static final enum AUTO:Lcom/google/ar/core/Config$FocusMode;
.field public static final enum FIXED:Lcom/google/ar/core/Config$FocusMode;
# instance fields
.field final nativeCode:I
# direct methods
.method private static synthetic $values()[Lcom/google/ar/core/Config$FocusMode;
.locals 2
sget-object v0, Lcom/google/ar/core/Config$FocusMode;->FIXED:Lcom/google/ar/core/Config$FocusMode;
sget-object v1, Lcom/google/ar/core/Config$FocusMode;->AUTO:Lcom/google/ar/core/Config$FocusMode;
filled-new-array {v0, v1}, [Lcom/google/ar/core/Config$FocusMode;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 3
.line 1
new-instance v0, Lcom/google/ar/core/Config$FocusMode;
const-string v1, "FIXED"
const/4 v2, 0x0
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/Config$FocusMode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Config$FocusMode;->FIXED:Lcom/google/ar/core/Config$FocusMode;
new-instance v0, Lcom/google/ar/core/Config$FocusMode;
const-string v1, "AUTO"
const/4 v2, 0x1
.line 2
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/Config$FocusMode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Config$FocusMode;->AUTO:Lcom/google/ar/core/Config$FocusMode;
.line 3
invoke-static {}, Lcom/google/ar/core/Config$FocusMode;->$values()[Lcom/google/ar/core/Config$FocusMode;
move-result-object v0
sput-object v0, Lcom/google/ar/core/Config$FocusMode;->$VALUES:[Lcom/google/ar/core/Config$FocusMode;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput p3, p0, Lcom/google/ar/core/Config$FocusMode;->nativeCode:I
return-void
.end method
.method public static forNumber(I)Lcom/google/ar/core/Config$FocusMode;
.locals 5
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-static {}, Lcom/google/ar/core/Config$FocusMode;->values()[Lcom/google/ar/core/Config$FocusMode;
move-result-object v0
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_1
aget-object v3, v0, v2
.line 2
iget v4, v3, Lcom/google/ar/core/Config$FocusMode;->nativeCode:I
if-ne v4, p0, :cond_0
return-object v3
:cond_0
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
new-instance v0, Lcom/google/ar/core/exceptions/FatalException;
new-instance v1, Ljava/lang/StringBuilder;
.line 3
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Unexpected value for native FocusMode, value="
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Lcom/google/ar/core/exceptions/FatalException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/ar/core/Config$FocusMode;
.locals 1
const-class v0, Lcom/google/ar/core/Config$FocusMode;
.line 1
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/ar/core/Config$FocusMode;
return-object p0
.end method
.method public static values()[Lcom/google/ar/core/Config$FocusMode;
.locals 1
sget-object v0, Lcom/google/ar/core/Config$FocusMode;->$VALUES:[Lcom/google/ar/core/Config$FocusMode;
.line 1
invoke-virtual {v0}, [Lcom/google/ar/core/Config$FocusMode;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/ar/core/Config$FocusMode;
return-object v0
.end method

View File

@@ -0,0 +1,187 @@
.class public final enum Lcom/google/ar/core/Config$GeospatialMode;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/ar/core/Config;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "GeospatialMode"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/ar/core/Config$GeospatialMode;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/ar/core/Config$GeospatialMode;
.field public static final enum DISABLED:Lcom/google/ar/core/Config$GeospatialMode;
.field public static final enum ENABLED:Lcom/google/ar/core/Config$GeospatialMode;
# instance fields
.field final nativeCode:I
# direct methods
.method private static synthetic $values()[Lcom/google/ar/core/Config$GeospatialMode;
.locals 2
sget-object v0, Lcom/google/ar/core/Config$GeospatialMode;->DISABLED:Lcom/google/ar/core/Config$GeospatialMode;
sget-object v1, Lcom/google/ar/core/Config$GeospatialMode;->ENABLED:Lcom/google/ar/core/Config$GeospatialMode;
filled-new-array {v0, v1}, [Lcom/google/ar/core/Config$GeospatialMode;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 4
.line 1
new-instance v0, Lcom/google/ar/core/Config$GeospatialMode;
const-string v1, "DISABLED"
const/4 v2, 0x0
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/Config$GeospatialMode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Config$GeospatialMode;->DISABLED:Lcom/google/ar/core/Config$GeospatialMode;
new-instance v0, Lcom/google/ar/core/Config$GeospatialMode;
const/4 v1, 0x1
const/4 v2, 0x2
const-string v3, "ENABLED"
.line 2
invoke-direct {v0, v3, v1, v2}, Lcom/google/ar/core/Config$GeospatialMode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Config$GeospatialMode;->ENABLED:Lcom/google/ar/core/Config$GeospatialMode;
.line 3
invoke-static {}, Lcom/google/ar/core/Config$GeospatialMode;->$values()[Lcom/google/ar/core/Config$GeospatialMode;
move-result-object v0
sput-object v0, Lcom/google/ar/core/Config$GeospatialMode;->$VALUES:[Lcom/google/ar/core/Config$GeospatialMode;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput p3, p0, Lcom/google/ar/core/Config$GeospatialMode;->nativeCode:I
return-void
.end method
.method public static forNumber(I)Lcom/google/ar/core/Config$GeospatialMode;
.locals 5
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-static {}, Lcom/google/ar/core/Config$GeospatialMode;->values()[Lcom/google/ar/core/Config$GeospatialMode;
move-result-object v0
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_1
aget-object v3, v0, v2
.line 2
iget v4, v3, Lcom/google/ar/core/Config$GeospatialMode;->nativeCode:I
if-ne v4, p0, :cond_0
return-object v3
:cond_0
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
new-instance v0, Lcom/google/ar/core/exceptions/FatalException;
new-instance v1, Ljava/lang/StringBuilder;
.line 3
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Unexpected value for native GeospatialMode, value="
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Lcom/google/ar/core/exceptions/FatalException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/ar/core/Config$GeospatialMode;
.locals 1
const-class v0, Lcom/google/ar/core/Config$GeospatialMode;
.line 1
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/ar/core/Config$GeospatialMode;
return-object p0
.end method
.method public static values()[Lcom/google/ar/core/Config$GeospatialMode;
.locals 1
sget-object v0, Lcom/google/ar/core/Config$GeospatialMode;->$VALUES:[Lcom/google/ar/core/Config$GeospatialMode;
.line 1
invoke-virtual {v0}, [Lcom/google/ar/core/Config$GeospatialMode;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/ar/core/Config$GeospatialMode;
return-object v0
.end method

View File

@@ -0,0 +1,185 @@
.class public final enum Lcom/google/ar/core/Config$InstantPlacementMode;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/ar/core/Config;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "InstantPlacementMode"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/ar/core/Config$InstantPlacementMode;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/ar/core/Config$InstantPlacementMode;
.field public static final enum DISABLED:Lcom/google/ar/core/Config$InstantPlacementMode;
.field public static final enum LOCAL_Y_UP:Lcom/google/ar/core/Config$InstantPlacementMode;
# instance fields
.field final nativeCode:I
# direct methods
.method private static synthetic $values()[Lcom/google/ar/core/Config$InstantPlacementMode;
.locals 2
sget-object v0, Lcom/google/ar/core/Config$InstantPlacementMode;->DISABLED:Lcom/google/ar/core/Config$InstantPlacementMode;
sget-object v1, Lcom/google/ar/core/Config$InstantPlacementMode;->LOCAL_Y_UP:Lcom/google/ar/core/Config$InstantPlacementMode;
filled-new-array {v0, v1}, [Lcom/google/ar/core/Config$InstantPlacementMode;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 4
.line 1
new-instance v0, Lcom/google/ar/core/Config$InstantPlacementMode;
const-string v1, "DISABLED"
const/4 v2, 0x0
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/Config$InstantPlacementMode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Config$InstantPlacementMode;->DISABLED:Lcom/google/ar/core/Config$InstantPlacementMode;
new-instance v0, Lcom/google/ar/core/Config$InstantPlacementMode;
const/4 v1, 0x1
const/4 v2, 0x2
const-string v3, "LOCAL_Y_UP"
.line 2
invoke-direct {v0, v3, v1, v2}, Lcom/google/ar/core/Config$InstantPlacementMode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Config$InstantPlacementMode;->LOCAL_Y_UP:Lcom/google/ar/core/Config$InstantPlacementMode;
.line 3
invoke-static {}, Lcom/google/ar/core/Config$InstantPlacementMode;->$values()[Lcom/google/ar/core/Config$InstantPlacementMode;
move-result-object v0
sput-object v0, Lcom/google/ar/core/Config$InstantPlacementMode;->$VALUES:[Lcom/google/ar/core/Config$InstantPlacementMode;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput p3, p0, Lcom/google/ar/core/Config$InstantPlacementMode;->nativeCode:I
return-void
.end method
.method public static forNumber(I)Lcom/google/ar/core/Config$InstantPlacementMode;
.locals 5
.line 1
invoke-static {}, Lcom/google/ar/core/Config$InstantPlacementMode;->values()[Lcom/google/ar/core/Config$InstantPlacementMode;
move-result-object v0
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_1
aget-object v3, v0, v2
.line 2
iget v4, v3, Lcom/google/ar/core/Config$InstantPlacementMode;->nativeCode:I
if-ne v4, p0, :cond_0
return-object v3
:cond_0
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
new-instance v0, Lcom/google/ar/core/exceptions/FatalException;
new-instance v1, Ljava/lang/StringBuilder;
.line 3
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Unexpected value for native InstantPlacementMode, value="
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Lcom/google/ar/core/exceptions/FatalException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/ar/core/Config$InstantPlacementMode;
.locals 1
const-class v0, Lcom/google/ar/core/Config$InstantPlacementMode;
.line 1
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/ar/core/Config$InstantPlacementMode;
return-object p0
.end method
.method public static values()[Lcom/google/ar/core/Config$InstantPlacementMode;
.locals 1
sget-object v0, Lcom/google/ar/core/Config$InstantPlacementMode;->$VALUES:[Lcom/google/ar/core/Config$InstantPlacementMode;
.line 1
invoke-virtual {v0}, [Lcom/google/ar/core/Config$InstantPlacementMode;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/ar/core/Config$InstantPlacementMode;
return-object v0
.end method

View File

@@ -0,0 +1,200 @@
.class public final enum Lcom/google/ar/core/Config$LightEstimationMode;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/ar/core/Config;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "LightEstimationMode"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/ar/core/Config$LightEstimationMode;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/ar/core/Config$LightEstimationMode;
.field public static final enum AMBIENT_INTENSITY:Lcom/google/ar/core/Config$LightEstimationMode;
.field public static final enum DISABLED:Lcom/google/ar/core/Config$LightEstimationMode;
.field public static final enum ENVIRONMENTAL_HDR:Lcom/google/ar/core/Config$LightEstimationMode;
# instance fields
.field final nativeCode:I
# direct methods
.method private static synthetic $values()[Lcom/google/ar/core/Config$LightEstimationMode;
.locals 3
sget-object v0, Lcom/google/ar/core/Config$LightEstimationMode;->DISABLED:Lcom/google/ar/core/Config$LightEstimationMode;
sget-object v1, Lcom/google/ar/core/Config$LightEstimationMode;->AMBIENT_INTENSITY:Lcom/google/ar/core/Config$LightEstimationMode;
sget-object v2, Lcom/google/ar/core/Config$LightEstimationMode;->ENVIRONMENTAL_HDR:Lcom/google/ar/core/Config$LightEstimationMode;
filled-new-array {v0, v1, v2}, [Lcom/google/ar/core/Config$LightEstimationMode;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 3
.line 1
new-instance v0, Lcom/google/ar/core/Config$LightEstimationMode;
const-string v1, "DISABLED"
const/4 v2, 0x0
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/Config$LightEstimationMode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Config$LightEstimationMode;->DISABLED:Lcom/google/ar/core/Config$LightEstimationMode;
new-instance v0, Lcom/google/ar/core/Config$LightEstimationMode;
const-string v1, "AMBIENT_INTENSITY"
const/4 v2, 0x1
.line 2
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/Config$LightEstimationMode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Config$LightEstimationMode;->AMBIENT_INTENSITY:Lcom/google/ar/core/Config$LightEstimationMode;
new-instance v0, Lcom/google/ar/core/Config$LightEstimationMode;
const-string v1, "ENVIRONMENTAL_HDR"
const/4 v2, 0x2
.line 3
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/Config$LightEstimationMode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Config$LightEstimationMode;->ENVIRONMENTAL_HDR:Lcom/google/ar/core/Config$LightEstimationMode;
.line 4
invoke-static {}, Lcom/google/ar/core/Config$LightEstimationMode;->$values()[Lcom/google/ar/core/Config$LightEstimationMode;
move-result-object v0
sput-object v0, Lcom/google/ar/core/Config$LightEstimationMode;->$VALUES:[Lcom/google/ar/core/Config$LightEstimationMode;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput p3, p0, Lcom/google/ar/core/Config$LightEstimationMode;->nativeCode:I
return-void
.end method
.method public static forNumber(I)Lcom/google/ar/core/Config$LightEstimationMode;
.locals 5
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-static {}, Lcom/google/ar/core/Config$LightEstimationMode;->values()[Lcom/google/ar/core/Config$LightEstimationMode;
move-result-object v0
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_1
aget-object v3, v0, v2
.line 2
iget v4, v3, Lcom/google/ar/core/Config$LightEstimationMode;->nativeCode:I
if-ne v4, p0, :cond_0
return-object v3
:cond_0
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
new-instance v0, Lcom/google/ar/core/exceptions/FatalException;
new-instance v1, Ljava/lang/StringBuilder;
.line 3
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Unexpected value for native LightEstimationMode, value="
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Lcom/google/ar/core/exceptions/FatalException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/ar/core/Config$LightEstimationMode;
.locals 1
const-class v0, Lcom/google/ar/core/Config$LightEstimationMode;
.line 1
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/ar/core/Config$LightEstimationMode;
return-object p0
.end method
.method public static values()[Lcom/google/ar/core/Config$LightEstimationMode;
.locals 1
sget-object v0, Lcom/google/ar/core/Config$LightEstimationMode;->$VALUES:[Lcom/google/ar/core/Config$LightEstimationMode;
.line 1
invoke-virtual {v0}, [Lcom/google/ar/core/Config$LightEstimationMode;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/ar/core/Config$LightEstimationMode;
return-object v0
.end method

View File

@@ -0,0 +1,215 @@
.class public final enum Lcom/google/ar/core/Config$PlaneFindingMode;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/ar/core/Config;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "PlaneFindingMode"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/ar/core/Config$PlaneFindingMode;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/ar/core/Config$PlaneFindingMode;
.field public static final enum DISABLED:Lcom/google/ar/core/Config$PlaneFindingMode;
.field public static final enum HORIZONTAL:Lcom/google/ar/core/Config$PlaneFindingMode;
.field public static final enum HORIZONTAL_AND_VERTICAL:Lcom/google/ar/core/Config$PlaneFindingMode;
.field public static final enum VERTICAL:Lcom/google/ar/core/Config$PlaneFindingMode;
# instance fields
.field final nativeCode:I
# direct methods
.method private static synthetic $values()[Lcom/google/ar/core/Config$PlaneFindingMode;
.locals 4
sget-object v0, Lcom/google/ar/core/Config$PlaneFindingMode;->DISABLED:Lcom/google/ar/core/Config$PlaneFindingMode;
sget-object v1, Lcom/google/ar/core/Config$PlaneFindingMode;->HORIZONTAL:Lcom/google/ar/core/Config$PlaneFindingMode;
sget-object v2, Lcom/google/ar/core/Config$PlaneFindingMode;->VERTICAL:Lcom/google/ar/core/Config$PlaneFindingMode;
sget-object v3, Lcom/google/ar/core/Config$PlaneFindingMode;->HORIZONTAL_AND_VERTICAL:Lcom/google/ar/core/Config$PlaneFindingMode;
filled-new-array {v0, v1, v2, v3}, [Lcom/google/ar/core/Config$PlaneFindingMode;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 3
.line 1
new-instance v0, Lcom/google/ar/core/Config$PlaneFindingMode;
const-string v1, "DISABLED"
const/4 v2, 0x0
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/Config$PlaneFindingMode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Config$PlaneFindingMode;->DISABLED:Lcom/google/ar/core/Config$PlaneFindingMode;
new-instance v0, Lcom/google/ar/core/Config$PlaneFindingMode;
const-string v1, "HORIZONTAL"
const/4 v2, 0x1
.line 2
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/Config$PlaneFindingMode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Config$PlaneFindingMode;->HORIZONTAL:Lcom/google/ar/core/Config$PlaneFindingMode;
new-instance v0, Lcom/google/ar/core/Config$PlaneFindingMode;
const-string v1, "VERTICAL"
const/4 v2, 0x2
.line 3
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/Config$PlaneFindingMode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Config$PlaneFindingMode;->VERTICAL:Lcom/google/ar/core/Config$PlaneFindingMode;
new-instance v0, Lcom/google/ar/core/Config$PlaneFindingMode;
const-string v1, "HORIZONTAL_AND_VERTICAL"
const/4 v2, 0x3
.line 4
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/Config$PlaneFindingMode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Config$PlaneFindingMode;->HORIZONTAL_AND_VERTICAL:Lcom/google/ar/core/Config$PlaneFindingMode;
.line 5
invoke-static {}, Lcom/google/ar/core/Config$PlaneFindingMode;->$values()[Lcom/google/ar/core/Config$PlaneFindingMode;
move-result-object v0
sput-object v0, Lcom/google/ar/core/Config$PlaneFindingMode;->$VALUES:[Lcom/google/ar/core/Config$PlaneFindingMode;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput p3, p0, Lcom/google/ar/core/Config$PlaneFindingMode;->nativeCode:I
return-void
.end method
.method public static forNumber(I)Lcom/google/ar/core/Config$PlaneFindingMode;
.locals 5
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-static {}, Lcom/google/ar/core/Config$PlaneFindingMode;->values()[Lcom/google/ar/core/Config$PlaneFindingMode;
move-result-object v0
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_1
aget-object v3, v0, v2
.line 2
iget v4, v3, Lcom/google/ar/core/Config$PlaneFindingMode;->nativeCode:I
if-ne v4, p0, :cond_0
return-object v3
:cond_0
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
new-instance v0, Lcom/google/ar/core/exceptions/FatalException;
new-instance v1, Ljava/lang/StringBuilder;
.line 3
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Unexpected value for native PlaneFindingMode, value="
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Lcom/google/ar/core/exceptions/FatalException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/ar/core/Config$PlaneFindingMode;
.locals 1
const-class v0, Lcom/google/ar/core/Config$PlaneFindingMode;
.line 1
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/ar/core/Config$PlaneFindingMode;
return-object p0
.end method
.method public static values()[Lcom/google/ar/core/Config$PlaneFindingMode;
.locals 1
sget-object v0, Lcom/google/ar/core/Config$PlaneFindingMode;->$VALUES:[Lcom/google/ar/core/Config$PlaneFindingMode;
.line 1
invoke-virtual {v0}, [Lcom/google/ar/core/Config$PlaneFindingMode;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/ar/core/Config$PlaneFindingMode;
return-object v0
.end method

View File

@@ -0,0 +1,185 @@
.class public final enum Lcom/google/ar/core/Config$UpdateMode;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/ar/core/Config;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "UpdateMode"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/ar/core/Config$UpdateMode;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/ar/core/Config$UpdateMode;
.field public static final enum BLOCKING:Lcom/google/ar/core/Config$UpdateMode;
.field public static final enum LATEST_CAMERA_IMAGE:Lcom/google/ar/core/Config$UpdateMode;
# instance fields
.field final nativeCode:I
# direct methods
.method private static synthetic $values()[Lcom/google/ar/core/Config$UpdateMode;
.locals 2
sget-object v0, Lcom/google/ar/core/Config$UpdateMode;->BLOCKING:Lcom/google/ar/core/Config$UpdateMode;
sget-object v1, Lcom/google/ar/core/Config$UpdateMode;->LATEST_CAMERA_IMAGE:Lcom/google/ar/core/Config$UpdateMode;
filled-new-array {v0, v1}, [Lcom/google/ar/core/Config$UpdateMode;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 3
.line 1
new-instance v0, Lcom/google/ar/core/Config$UpdateMode;
const-string v1, "BLOCKING"
const/4 v2, 0x0
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/Config$UpdateMode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Config$UpdateMode;->BLOCKING:Lcom/google/ar/core/Config$UpdateMode;
new-instance v0, Lcom/google/ar/core/Config$UpdateMode;
const-string v1, "LATEST_CAMERA_IMAGE"
const/4 v2, 0x1
.line 2
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/Config$UpdateMode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Config$UpdateMode;->LATEST_CAMERA_IMAGE:Lcom/google/ar/core/Config$UpdateMode;
.line 3
invoke-static {}, Lcom/google/ar/core/Config$UpdateMode;->$values()[Lcom/google/ar/core/Config$UpdateMode;
move-result-object v0
sput-object v0, Lcom/google/ar/core/Config$UpdateMode;->$VALUES:[Lcom/google/ar/core/Config$UpdateMode;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput p3, p0, Lcom/google/ar/core/Config$UpdateMode;->nativeCode:I
return-void
.end method
.method public static forNumber(I)Lcom/google/ar/core/Config$UpdateMode;
.locals 5
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-static {}, Lcom/google/ar/core/Config$UpdateMode;->values()[Lcom/google/ar/core/Config$UpdateMode;
move-result-object v0
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_1
aget-object v3, v0, v2
.line 2
iget v4, v3, Lcom/google/ar/core/Config$UpdateMode;->nativeCode:I
if-ne v4, p0, :cond_0
return-object v3
:cond_0
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
new-instance v0, Lcom/google/ar/core/exceptions/FatalException;
new-instance v1, Ljava/lang/StringBuilder;
.line 3
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Unexpected value for native UpdateMode, value="
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Lcom/google/ar/core/exceptions/FatalException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/ar/core/Config$UpdateMode;
.locals 1
const-class v0, Lcom/google/ar/core/Config$UpdateMode;
.line 1
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/ar/core/Config$UpdateMode;
return-object p0
.end method
.method public static values()[Lcom/google/ar/core/Config$UpdateMode;
.locals 1
sget-object v0, Lcom/google/ar/core/Config$UpdateMode;->$VALUES:[Lcom/google/ar/core/Config$UpdateMode;
.line 1
invoke-virtual {v0}, [Lcom/google/ar/core/Config$UpdateMode;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/ar/core/Config$UpdateMode;
return-object v0
.end method

View File

@@ -0,0 +1,664 @@
.class public Lcom/google/ar/core/Config;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/ar/core/Config$DepthMode;,
Lcom/google/ar/core/Config$InstantPlacementMode;,
Lcom/google/ar/core/Config$GeospatialMode;,
Lcom/google/ar/core/Config$FocusMode;,
Lcom/google/ar/core/Config$AugmentedFaceMode;,
Lcom/google/ar/core/Config$CloudAnchorMode;,
Lcom/google/ar/core/Config$UpdateMode;,
Lcom/google/ar/core/Config$PlaneFindingMode;,
Lcom/google/ar/core/Config$LightEstimationMode;
}
.end annotation
# static fields
.field private static final TAG:Ljava/lang/String; = "ARCore-Config"
# instance fields
.field nativeHandle:J
.field final nativeSymbolTableHandle:J
.field final session:Lcom/google/ar/core/Session;
# direct methods
.method public constructor <init>()V
.locals 2
.line 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput-object v0, p0, Lcom/google/ar/core/Config;->session:Lcom/google/ar/core/Session;
const-wide/16 v0, 0x0
iput-wide v0, p0, Lcom/google/ar/core/Config;->nativeHandle:J
iput-wide v0, p0, Lcom/google/ar/core/Config;->nativeSymbolTableHandle:J
return-void
.end method
.method public constructor <init>(Lcom/google/ar/core/Session;)V
.locals 2
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/ar/core/Config;->session:Lcom/google/ar/core/Session;
iget-wide v0, p1, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
invoke-static {v0, v1}, Lcom/google/ar/core/Config;->nativeCreate(J)J
move-result-wide v0
iput-wide v0, p0, Lcom/google/ar/core/Config;->nativeHandle:J
.line 2
iget-wide v0, p1, Lcom/google/ar/core/Session;->nativeSymbolTableHandle:J
iput-wide v0, p0, Lcom/google/ar/core/Config;->nativeSymbolTableHandle:J
return-void
.end method
.method public constructor <init>(Lcom/google/ar/core/Session;J)V
.locals 0
.line 3
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/ar/core/Config;->session:Lcom/google/ar/core/Session;
iput-wide p2, p0, Lcom/google/ar/core/Config;->nativeHandle:J
iget-wide p1, p1, Lcom/google/ar/core/Session;->nativeSymbolTableHandle:J
iput-wide p1, p0, Lcom/google/ar/core/Config;->nativeSymbolTableHandle:J
return-void
.end method
.method private static native nativeCreate(J)J
.end method
.method private static native nativeDestroy(JJ)V
.end method
.method private native nativeGetAugmentedFaceMode(JJ)I
.end method
.method private native nativeGetAugmentedImageDatabase(JJ)J
.end method
.method private native nativeGetCloudAnchorMode(JJ)I
.end method
.method private native nativeGetDepthMode(JJ)I
.end method
.method private native nativeGetFocusMode(JJ)I
.end method
.method private native nativeGetGeospatialMode(JJJ)I
.end method
.method private native nativeGetInstantPlacementMode(JJ)I
.end method
.method private native nativeGetLightEstimationMode(JJ)I
.end method
.method private native nativeGetPlaneFindingMode(JJ)I
.end method
.method private native nativeGetUpdateMode(JJ)I
.end method
.method private native nativeSetAugmentedFaceMode(JJI)V
.end method
.method private native nativeSetAugmentedImageDatabase(JJJ)V
.end method
.method private native nativeSetCloudAnchorMode(JJI)V
.end method
.method private native nativeSetDepthMode(JJI)V
.end method
.method private native nativeSetFocusMode(JJI)V
.end method
.method private native nativeSetGeospatialMode(JJJI)V
.end method
.method private native nativeSetInstantPlacementMode(JJI)V
.end method
.method private native nativeSetLightEstimationMode(JJI)V
.end method
.method private native nativeSetPlaneFindingMode(JJI)V
.end method
.method private native nativeSetUpdateMode(JJI)V
.end method
# virtual methods
.method public finalize()V
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
iget-wide v0, p0, Lcom/google/ar/core/Config;->nativeHandle:J
const-wide/16 v2, 0x0
cmp-long v2, v0, v2
if-eqz v2, :cond_0
iget-wide v2, p0, Lcom/google/ar/core/Config;->nativeSymbolTableHandle:J
.line 1
invoke-static {v2, v3, v0, v1}, Lcom/google/ar/core/Config;->nativeDestroy(JJ)V
.line 2
:cond_0
invoke-super {p0}, Ljava/lang/Object;->finalize()V
return-void
.end method
.method public getAugmentedFaceMode()Lcom/google/ar/core/Config$AugmentedFaceMode;
.locals 4
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/Config;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/Config;->nativeHandle:J
.line 2
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/Config;->nativeGetAugmentedFaceMode(JJ)I
move-result v0
.line 1
invoke-static {v0}, Lcom/google/ar/core/Config$AugmentedFaceMode;->forNumber(I)Lcom/google/ar/core/Config$AugmentedFaceMode;
move-result-object v0
return-object v0
.end method
.method public getAugmentedImageDatabase()Lcom/google/ar/core/AugmentedImageDatabase;
.locals 4
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/Config;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/Config;->nativeHandle:J
.line 2
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/Config;->nativeGetAugmentedImageDatabase(JJ)J
move-result-wide v0
new-instance v2, Lcom/google/ar/core/AugmentedImageDatabase;
iget-object v3, p0, Lcom/google/ar/core/Config;->session:Lcom/google/ar/core/Session;
.line 3
invoke-direct {v2, v3, v0, v1}, Lcom/google/ar/core/AugmentedImageDatabase;-><init>(Lcom/google/ar/core/Session;J)V
return-object v2
.end method
.method public getCloudAnchorMode()Lcom/google/ar/core/Config$CloudAnchorMode;
.locals 4
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/Config;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/Config;->nativeHandle:J
.line 2
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/Config;->nativeGetCloudAnchorMode(JJ)I
move-result v0
.line 1
invoke-static {v0}, Lcom/google/ar/core/Config$CloudAnchorMode;->forNumber(I)Lcom/google/ar/core/Config$CloudAnchorMode;
move-result-object v0
return-object v0
.end method
.method public getDepthMode()Lcom/google/ar/core/Config$DepthMode;
.locals 4
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/Config;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/Config;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/Config;->nativeGetDepthMode(JJ)I
move-result v0
invoke-static {v0}, Lcom/google/ar/core/Config$DepthMode;->forNumber(I)Lcom/google/ar/core/Config$DepthMode;
move-result-object v0
return-object v0
.end method
.method public getFocusMode()Lcom/google/ar/core/Config$FocusMode;
.locals 4
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/Config;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/Config;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/Config;->nativeGetFocusMode(JJ)I
move-result v0
invoke-static {v0}, Lcom/google/ar/core/Config$FocusMode;->forNumber(I)Lcom/google/ar/core/Config$FocusMode;
move-result-object v0
return-object v0
.end method
.method public getGeospatialMode()Lcom/google/ar/core/Config$GeospatialMode;
.locals 7
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-wide v1, p0, Lcom/google/ar/core/Config;->nativeSymbolTableHandle:J
iget-object v0, p0, Lcom/google/ar/core/Config;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v3, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v5, p0, Lcom/google/ar/core/Config;->nativeHandle:J
move-object v0, p0
.line 2
invoke-direct/range {v0 .. v6}, Lcom/google/ar/core/Config;->nativeGetGeospatialMode(JJJ)I
move-result v0
.line 1
invoke-static {v0}, Lcom/google/ar/core/Config$GeospatialMode;->forNumber(I)Lcom/google/ar/core/Config$GeospatialMode;
move-result-object v0
return-object v0
.end method
.method public getInstantPlacementMode()Lcom/google/ar/core/Config$InstantPlacementMode;
.locals 4
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/Config;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/Config;->nativeHandle:J
.line 2
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/Config;->nativeGetInstantPlacementMode(JJ)I
move-result v0
.line 1
invoke-static {v0}, Lcom/google/ar/core/Config$InstantPlacementMode;->forNumber(I)Lcom/google/ar/core/Config$InstantPlacementMode;
move-result-object v0
return-object v0
.end method
.method public getLightEstimationMode()Lcom/google/ar/core/Config$LightEstimationMode;
.locals 4
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/Config;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/Config;->nativeHandle:J
.line 2
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/Config;->nativeGetLightEstimationMode(JJ)I
move-result v0
.line 1
invoke-static {v0}, Lcom/google/ar/core/Config$LightEstimationMode;->forNumber(I)Lcom/google/ar/core/Config$LightEstimationMode;
move-result-object v0
return-object v0
.end method
.method public getPlaneFindingMode()Lcom/google/ar/core/Config$PlaneFindingMode;
.locals 4
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/Config;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/Config;->nativeHandle:J
.line 2
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/Config;->nativeGetPlaneFindingMode(JJ)I
move-result v0
.line 1
invoke-static {v0}, Lcom/google/ar/core/Config$PlaneFindingMode;->forNumber(I)Lcom/google/ar/core/Config$PlaneFindingMode;
move-result-object v0
return-object v0
.end method
.method public getUpdateMode()Lcom/google/ar/core/Config$UpdateMode;
.locals 4
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/Config;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/Config;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/Config;->nativeGetUpdateMode(JJ)I
move-result v0
invoke-static {v0}, Lcom/google/ar/core/Config$UpdateMode;->forNumber(I)Lcom/google/ar/core/Config$UpdateMode;
move-result-object v0
return-object v0
.end method
.method public setAugmentedFaceMode(Lcom/google/ar/core/Config$AugmentedFaceMode;)Lcom/google/ar/core/Config;
.locals 7
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/Config;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v2, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v4, p0, Lcom/google/ar/core/Config;->nativeHandle:J
iget v6, p1, Lcom/google/ar/core/Config$AugmentedFaceMode;->nativeCode:I
move-object v1, p0
invoke-direct/range {v1 .. v6}, Lcom/google/ar/core/Config;->nativeSetAugmentedFaceMode(JJI)V
return-object p0
.end method
.method public setAugmentedImageDatabase(Lcom/google/ar/core/AugmentedImageDatabase;)Lcom/google/ar/core/Config;
.locals 8
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/Config;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v2, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v4, p0, Lcom/google/ar/core/Config;->nativeHandle:J
if-nez p1, :cond_0
const-wide/16 v0, 0x0
:goto_0
move-wide v6, v0
goto :goto_1
:cond_0
iget-wide v0, p1, Lcom/google/ar/core/AugmentedImageDatabase;->nativeHandle:J
goto :goto_0
:goto_1
move-object v1, p0
invoke-direct/range {v1 .. v7}, Lcom/google/ar/core/Config;->nativeSetAugmentedImageDatabase(JJJ)V
return-object p0
.end method
.method public setCloudAnchorMode(Lcom/google/ar/core/Config$CloudAnchorMode;)Lcom/google/ar/core/Config;
.locals 7
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/Config;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v2, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v4, p0, Lcom/google/ar/core/Config;->nativeHandle:J
iget v6, p1, Lcom/google/ar/core/Config$CloudAnchorMode;->nativeCode:I
move-object v1, p0
invoke-direct/range {v1 .. v6}, Lcom/google/ar/core/Config;->nativeSetCloudAnchorMode(JJI)V
return-object p0
.end method
.method public setDepthMode(Lcom/google/ar/core/Config$DepthMode;)Lcom/google/ar/core/Config;
.locals 7
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/Config;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v2, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v4, p0, Lcom/google/ar/core/Config;->nativeHandle:J
iget v6, p1, Lcom/google/ar/core/Config$DepthMode;->nativeCode:I
move-object v1, p0
invoke-direct/range {v1 .. v6}, Lcom/google/ar/core/Config;->nativeSetDepthMode(JJI)V
return-object p0
.end method
.method public setFocusMode(Lcom/google/ar/core/Config$FocusMode;)Lcom/google/ar/core/Config;
.locals 7
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/Config;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v2, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v4, p0, Lcom/google/ar/core/Config;->nativeHandle:J
iget v6, p1, Lcom/google/ar/core/Config$FocusMode;->nativeCode:I
move-object v1, p0
invoke-direct/range {v1 .. v6}, Lcom/google/ar/core/Config;->nativeSetFocusMode(JJI)V
return-object p0
.end method
.method public setGeospatialMode(Lcom/google/ar/core/Config$GeospatialMode;)Lcom/google/ar/core/Config;
.locals 8
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-wide v1, p0, Lcom/google/ar/core/Config;->nativeSymbolTableHandle:J
iget-object v0, p0, Lcom/google/ar/core/Config;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v3, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v5, p0, Lcom/google/ar/core/Config;->nativeHandle:J
iget v7, p1, Lcom/google/ar/core/Config$GeospatialMode;->nativeCode:I
move-object v0, p0
invoke-direct/range {v0 .. v7}, Lcom/google/ar/core/Config;->nativeSetGeospatialMode(JJJI)V
return-object p0
.end method
.method public setInstantPlacementMode(Lcom/google/ar/core/Config$InstantPlacementMode;)Lcom/google/ar/core/Config;
.locals 7
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/Config;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v2, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v4, p0, Lcom/google/ar/core/Config;->nativeHandle:J
iget v6, p1, Lcom/google/ar/core/Config$InstantPlacementMode;->nativeCode:I
move-object v1, p0
invoke-direct/range {v1 .. v6}, Lcom/google/ar/core/Config;->nativeSetInstantPlacementMode(JJI)V
return-object p0
.end method
.method public setLightEstimationMode(Lcom/google/ar/core/Config$LightEstimationMode;)Lcom/google/ar/core/Config;
.locals 7
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/Config;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v2, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v4, p0, Lcom/google/ar/core/Config;->nativeHandle:J
iget v6, p1, Lcom/google/ar/core/Config$LightEstimationMode;->nativeCode:I
move-object v1, p0
invoke-direct/range {v1 .. v6}, Lcom/google/ar/core/Config;->nativeSetLightEstimationMode(JJI)V
return-object p0
.end method
.method public setPlaneFindingMode(Lcom/google/ar/core/Config$PlaneFindingMode;)Lcom/google/ar/core/Config;
.locals 7
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/Config;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v2, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v4, p0, Lcom/google/ar/core/Config;->nativeHandle:J
iget v6, p1, Lcom/google/ar/core/Config$PlaneFindingMode;->nativeCode:I
move-object v1, p0
invoke-direct/range {v1 .. v6}, Lcom/google/ar/core/Config;->nativeSetPlaneFindingMode(JJI)V
return-object p0
.end method
.method public setUpdateMode(Lcom/google/ar/core/Config$UpdateMode;)Lcom/google/ar/core/Config;
.locals 7
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/Config;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v2, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v4, p0, Lcom/google/ar/core/Config;->nativeHandle:J
iget v6, p1, Lcom/google/ar/core/Config$UpdateMode;->nativeCode:I
move-object v1, p0
invoke-direct/range {v1 .. v6}, Lcom/google/ar/core/Config;->nativeSetUpdateMode(JJI)V
return-object p0
.end method

View File

@@ -0,0 +1,255 @@
.class public final enum Lcom/google/ar/core/Coordinates2d;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/ar/core/Coordinates2d;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/ar/core/Coordinates2d;
.field public static final enum IMAGE_NORMALIZED:Lcom/google/ar/core/Coordinates2d;
.field public static final enum IMAGE_PIXELS:Lcom/google/ar/core/Coordinates2d;
.field public static final enum OPENGL_NORMALIZED_DEVICE_COORDINATES:Lcom/google/ar/core/Coordinates2d;
.field public static final enum TEXTURE_NORMALIZED:Lcom/google/ar/core/Coordinates2d;
.field public static final enum TEXTURE_TEXELS:Lcom/google/ar/core/Coordinates2d;
.field public static final enum VIEW:Lcom/google/ar/core/Coordinates2d;
.field public static final enum VIEW_NORMALIZED:Lcom/google/ar/core/Coordinates2d;
# instance fields
.field final nativeCode:I
# direct methods
.method private static synthetic $values()[Lcom/google/ar/core/Coordinates2d;
.locals 7
sget-object v0, Lcom/google/ar/core/Coordinates2d;->TEXTURE_TEXELS:Lcom/google/ar/core/Coordinates2d;
sget-object v1, Lcom/google/ar/core/Coordinates2d;->TEXTURE_NORMALIZED:Lcom/google/ar/core/Coordinates2d;
sget-object v2, Lcom/google/ar/core/Coordinates2d;->IMAGE_PIXELS:Lcom/google/ar/core/Coordinates2d;
sget-object v3, Lcom/google/ar/core/Coordinates2d;->IMAGE_NORMALIZED:Lcom/google/ar/core/Coordinates2d;
sget-object v4, Lcom/google/ar/core/Coordinates2d;->OPENGL_NORMALIZED_DEVICE_COORDINATES:Lcom/google/ar/core/Coordinates2d;
sget-object v5, Lcom/google/ar/core/Coordinates2d;->VIEW:Lcom/google/ar/core/Coordinates2d;
sget-object v6, Lcom/google/ar/core/Coordinates2d;->VIEW_NORMALIZED:Lcom/google/ar/core/Coordinates2d;
filled-new-array/range {v0 .. v6}, [Lcom/google/ar/core/Coordinates2d;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 5
.line 1
new-instance v0, Lcom/google/ar/core/Coordinates2d;
const-string v1, "TEXTURE_TEXELS"
const/4 v2, 0x0
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/Coordinates2d;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Coordinates2d;->TEXTURE_TEXELS:Lcom/google/ar/core/Coordinates2d;
new-instance v0, Lcom/google/ar/core/Coordinates2d;
const-string v1, "TEXTURE_NORMALIZED"
const/4 v2, 0x1
.line 2
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/Coordinates2d;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Coordinates2d;->TEXTURE_NORMALIZED:Lcom/google/ar/core/Coordinates2d;
new-instance v0, Lcom/google/ar/core/Coordinates2d;
const-string v1, "IMAGE_PIXELS"
const/4 v2, 0x2
.line 3
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/Coordinates2d;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Coordinates2d;->IMAGE_PIXELS:Lcom/google/ar/core/Coordinates2d;
new-instance v0, Lcom/google/ar/core/Coordinates2d;
const-string v1, "IMAGE_NORMALIZED"
const/4 v2, 0x3
.line 4
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/Coordinates2d;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Coordinates2d;->IMAGE_NORMALIZED:Lcom/google/ar/core/Coordinates2d;
new-instance v0, Lcom/google/ar/core/Coordinates2d;
const-string v1, "OPENGL_NORMALIZED_DEVICE_COORDINATES"
const/4 v2, 0x4
const/4 v3, 0x6
.line 5
invoke-direct {v0, v1, v2, v3}, Lcom/google/ar/core/Coordinates2d;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Coordinates2d;->OPENGL_NORMALIZED_DEVICE_COORDINATES:Lcom/google/ar/core/Coordinates2d;
new-instance v0, Lcom/google/ar/core/Coordinates2d;
const/4 v1, 0x5
const/4 v2, 0x7
const-string v4, "VIEW"
.line 6
invoke-direct {v0, v4, v1, v2}, Lcom/google/ar/core/Coordinates2d;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Coordinates2d;->VIEW:Lcom/google/ar/core/Coordinates2d;
new-instance v0, Lcom/google/ar/core/Coordinates2d;
const-string v1, "VIEW_NORMALIZED"
const/16 v2, 0x8
.line 7
invoke-direct {v0, v1, v3, v2}, Lcom/google/ar/core/Coordinates2d;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Coordinates2d;->VIEW_NORMALIZED:Lcom/google/ar/core/Coordinates2d;
.line 8
invoke-static {}, Lcom/google/ar/core/Coordinates2d;->$values()[Lcom/google/ar/core/Coordinates2d;
move-result-object v0
sput-object v0, Lcom/google/ar/core/Coordinates2d;->$VALUES:[Lcom/google/ar/core/Coordinates2d;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput p3, p0, Lcom/google/ar/core/Coordinates2d;->nativeCode:I
return-void
.end method
.method public static forNumber(I)Lcom/google/ar/core/Coordinates2d;
.locals 5
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-static {}, Lcom/google/ar/core/Coordinates2d;->values()[Lcom/google/ar/core/Coordinates2d;
move-result-object v0
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_1
aget-object v3, v0, v2
.line 2
iget v4, v3, Lcom/google/ar/core/Coordinates2d;->nativeCode:I
if-ne v4, p0, :cond_0
return-object v3
:cond_0
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
new-instance v0, Lcom/google/ar/core/exceptions/FatalException;
new-instance v1, Ljava/lang/StringBuilder;
.line 3
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Unexpected value for native Coordinates2d, value="
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Lcom/google/ar/core/exceptions/FatalException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/ar/core/Coordinates2d;
.locals 1
const-class v0, Lcom/google/ar/core/Coordinates2d;
.line 1
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/ar/core/Coordinates2d;
return-object p0
.end method
.method public static values()[Lcom/google/ar/core/Coordinates2d;
.locals 1
sget-object v0, Lcom/google/ar/core/Coordinates2d;->$VALUES:[Lcom/google/ar/core/Coordinates2d;
.line 1
invoke-virtual {v0}, [Lcom/google/ar/core/Coordinates2d;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/ar/core/Coordinates2d;
return-object v0
.end method

View File

@@ -0,0 +1,77 @@
.class public Lcom/google/ar/core/DepthPoint;
.super Lcom/google/ar/core/TrackableBase;
.source "SourceFile"
# direct methods
.method public constructor <init>(JLcom/google/ar/core/Session;)V
.locals 0
.line 1
invoke-direct {p0, p1, p2, p3}, Lcom/google/ar/core/TrackableBase;-><init>(JLcom/google/ar/core/Session;)V
return-void
.end method
# virtual methods
.method public bridge synthetic createAnchor(Lcom/google/ar/core/Pose;)Lcom/google/ar/core/Anchor;
.locals 0
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-super {p0, p1}, Lcom/google/ar/core/TrackableBase;->createAnchor(Lcom/google/ar/core/Pose;)Lcom/google/ar/core/Anchor;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic equals(Ljava/lang/Object;)Z
.locals 0
.line 1
invoke-super {p0, p1}, Lcom/google/ar/core/TrackableBase;->equals(Ljava/lang/Object;)Z
move-result p1
return p1
.end method
.method public bridge synthetic getAnchors()Ljava/util/Collection;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-super {p0}, Lcom/google/ar/core/TrackableBase;->getAnchors()Ljava/util/Collection;
move-result-object v0
return-object v0
.end method
.method public bridge synthetic getTrackingState()Lcom/google/ar/core/TrackingState;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-super {p0}, Lcom/google/ar/core/TrackableBase;->getTrackingState()Lcom/google/ar/core/TrackingState;
move-result-object v0
return-object v0
.end method
.method public bridge synthetic hashCode()I
.locals 1
.line 1
invoke-super {p0}, Lcom/google/ar/core/TrackableBase;->hashCode()I
move-result v0
return v0
.end method

View File

@@ -0,0 +1,255 @@
.class public final enum Lcom/google/ar/core/Earth$EarthState;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/ar/core/Earth;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "EarthState"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/ar/core/Earth$EarthState;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/ar/core/Earth$EarthState;
.field public static final enum ENABLED:Lcom/google/ar/core/Earth$EarthState;
.field public static final enum ERROR_APK_VERSION_TOO_OLD:Lcom/google/ar/core/Earth$EarthState;
.field public static final enum ERROR_GEOSPATIAL_MODE_DISABLED:Lcom/google/ar/core/Earth$EarthState;
.field public static final enum ERROR_INTERNAL:Lcom/google/ar/core/Earth$EarthState;
.field public static final enum ERROR_NOT_AUTHORIZED:Lcom/google/ar/core/Earth$EarthState;
.field public static final enum ERROR_RESOURCE_EXHAUSTED:Lcom/google/ar/core/Earth$EarthState;
# instance fields
.field final nativeCode:I
# direct methods
.method private static synthetic $values()[Lcom/google/ar/core/Earth$EarthState;
.locals 6
sget-object v0, Lcom/google/ar/core/Earth$EarthState;->ENABLED:Lcom/google/ar/core/Earth$EarthState;
sget-object v1, Lcom/google/ar/core/Earth$EarthState;->ERROR_INTERNAL:Lcom/google/ar/core/Earth$EarthState;
sget-object v2, Lcom/google/ar/core/Earth$EarthState;->ERROR_GEOSPATIAL_MODE_DISABLED:Lcom/google/ar/core/Earth$EarthState;
sget-object v3, Lcom/google/ar/core/Earth$EarthState;->ERROR_NOT_AUTHORIZED:Lcom/google/ar/core/Earth$EarthState;
sget-object v4, Lcom/google/ar/core/Earth$EarthState;->ERROR_RESOURCE_EXHAUSTED:Lcom/google/ar/core/Earth$EarthState;
sget-object v5, Lcom/google/ar/core/Earth$EarthState;->ERROR_APK_VERSION_TOO_OLD:Lcom/google/ar/core/Earth$EarthState;
filled-new-array/range {v0 .. v5}, [Lcom/google/ar/core/Earth$EarthState;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 4
.line 1
new-instance v0, Lcom/google/ar/core/Earth$EarthState;
const-string v1, "ENABLED"
const/4 v2, 0x0
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/Earth$EarthState;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Earth$EarthState;->ENABLED:Lcom/google/ar/core/Earth$EarthState;
new-instance v0, Lcom/google/ar/core/Earth$EarthState;
const/4 v1, 0x1
const/4 v2, -0x1
const-string v3, "ERROR_INTERNAL"
.line 2
invoke-direct {v0, v3, v1, v2}, Lcom/google/ar/core/Earth$EarthState;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Earth$EarthState;->ERROR_INTERNAL:Lcom/google/ar/core/Earth$EarthState;
new-instance v0, Lcom/google/ar/core/Earth$EarthState;
const/4 v1, 0x2
const/4 v2, -0x2
const-string v3, "ERROR_GEOSPATIAL_MODE_DISABLED"
.line 3
invoke-direct {v0, v3, v1, v2}, Lcom/google/ar/core/Earth$EarthState;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Earth$EarthState;->ERROR_GEOSPATIAL_MODE_DISABLED:Lcom/google/ar/core/Earth$EarthState;
new-instance v0, Lcom/google/ar/core/Earth$EarthState;
const/4 v1, 0x3
const/4 v2, -0x3
const-string v3, "ERROR_NOT_AUTHORIZED"
.line 4
invoke-direct {v0, v3, v1, v2}, Lcom/google/ar/core/Earth$EarthState;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Earth$EarthState;->ERROR_NOT_AUTHORIZED:Lcom/google/ar/core/Earth$EarthState;
new-instance v0, Lcom/google/ar/core/Earth$EarthState;
const/4 v1, 0x4
const/4 v2, -0x4
const-string v3, "ERROR_RESOURCE_EXHAUSTED"
.line 5
invoke-direct {v0, v3, v1, v2}, Lcom/google/ar/core/Earth$EarthState;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Earth$EarthState;->ERROR_RESOURCE_EXHAUSTED:Lcom/google/ar/core/Earth$EarthState;
new-instance v0, Lcom/google/ar/core/Earth$EarthState;
const/4 v1, 0x5
const/4 v2, -0x5
const-string v3, "ERROR_APK_VERSION_TOO_OLD"
.line 6
invoke-direct {v0, v3, v1, v2}, Lcom/google/ar/core/Earth$EarthState;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Earth$EarthState;->ERROR_APK_VERSION_TOO_OLD:Lcom/google/ar/core/Earth$EarthState;
.line 7
invoke-static {}, Lcom/google/ar/core/Earth$EarthState;->$values()[Lcom/google/ar/core/Earth$EarthState;
move-result-object v0
sput-object v0, Lcom/google/ar/core/Earth$EarthState;->$VALUES:[Lcom/google/ar/core/Earth$EarthState;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput p3, p0, Lcom/google/ar/core/Earth$EarthState;->nativeCode:I
return-void
.end method
.method public static forNumber(I)Lcom/google/ar/core/Earth$EarthState;
.locals 5
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-static {}, Lcom/google/ar/core/Earth$EarthState;->values()[Lcom/google/ar/core/Earth$EarthState;
move-result-object v0
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_1
aget-object v3, v0, v2
.line 2
iget v4, v3, Lcom/google/ar/core/Earth$EarthState;->nativeCode:I
if-ne v4, p0, :cond_0
return-object v3
:cond_0
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
new-instance v0, Lcom/google/ar/core/exceptions/FatalException;
new-instance v1, Ljava/lang/StringBuilder;
.line 3
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Unexpected value for native EarthState, value="
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Lcom/google/ar/core/exceptions/FatalException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/ar/core/Earth$EarthState;
.locals 1
const-class v0, Lcom/google/ar/core/Earth$EarthState;
.line 1
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/ar/core/Earth$EarthState;
return-object p0
.end method
.method public static values()[Lcom/google/ar/core/Earth$EarthState;
.locals 1
sget-object v0, Lcom/google/ar/core/Earth$EarthState;->$VALUES:[Lcom/google/ar/core/Earth$EarthState;
.line 1
invoke-virtual {v0}, [Lcom/google/ar/core/Earth$EarthState;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/ar/core/Earth$EarthState;
return-object v0
.end method

View File

@@ -0,0 +1,299 @@
.class public Lcom/google/ar/core/Earth;
.super Lcom/google/ar/core/TrackableBase;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/ar/core/Earth$EarthState;
}
.end annotation
# direct methods
.method public constructor <init>(JLcom/google/ar/core/Session;)V
.locals 0
.line 1
invoke-direct {p0, p1, p2, p3}, Lcom/google/ar/core/TrackableBase;-><init>(JLcom/google/ar/core/Session;)V
return-void
.end method
.method private native nativeCreateAnchor(JJDDDFFFF)J
.end method
.method private native nativeGetCameraGeospatialPose(JJ)J
.end method
.method private native nativeGetEarthState(JJ)I
.end method
.method private native nativeGetTrackingState(JJ)I
.end method
.method private native nativeReleaseEarth(JJ)V
.end method
# virtual methods
.method public createAnchor(DDDFFFF)Lcom/google/ar/core/Anchor;
.locals 17
.annotation build Landroidx/annotation/NonNull;
.end annotation
move-object/from16 v15, p0
.line 1
new-instance v14, Lcom/google/ar/core/Anchor;
iget-object v0, v15, Lcom/google/ar/core/TrackableBase;->session:Lcom/google/ar/core/Session;
iget-wide v1, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v3, v15, Lcom/google/ar/core/TrackableBase;->nativeHandle:J
move-object/from16 v0, p0
move-wide/from16 v5, p1
move-wide/from16 v7, p3
move-wide/from16 v9, p5
move/from16 v11, p7
move/from16 v12, p8
move/from16 v13, p9
move-object/from16 v16, v14
move/from16 v14, p10
.line 2
invoke-direct/range {v0 .. v14}, Lcom/google/ar/core/Earth;->nativeCreateAnchor(JJDDDFFFF)J
move-result-wide v0
iget-object v2, v15, Lcom/google/ar/core/TrackableBase;->session:Lcom/google/ar/core/Session;
move-object/from16 v3, v16
invoke-direct {v3, v0, v1, v2}, Lcom/google/ar/core/Anchor;-><init>(JLcom/google/ar/core/Session;)V
return-object v3
.end method
.method public createAnchor(DDD[F)Lcom/google/ar/core/Anchor;
.locals 18
.annotation build Landroidx/annotation/NonNull;
.end annotation
move-object/from16 v15, p0
.line 3
new-instance v14, Lcom/google/ar/core/Anchor;
iget-object v0, v15, Lcom/google/ar/core/TrackableBase;->session:Lcom/google/ar/core/Session;
iget-wide v1, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v3, v15, Lcom/google/ar/core/TrackableBase;->nativeHandle:J
const/4 v0, 0x0
aget v11, p7, v0
const/4 v0, 0x1
aget v12, p7, v0
const/4 v0, 0x2
aget v13, p7, v0
const/4 v0, 0x3
aget v16, p7, v0
move-object/from16 v0, p0
move-wide/from16 v5, p1
move-wide/from16 v7, p3
move-wide/from16 v9, p5
move-object/from16 v17, v14
move/from16 v14, v16
.line 4
invoke-direct/range {v0 .. v14}, Lcom/google/ar/core/Earth;->nativeCreateAnchor(JJDDDFFFF)J
move-result-wide v0
iget-object v2, v15, Lcom/google/ar/core/TrackableBase;->session:Lcom/google/ar/core/Session;
move-object/from16 v3, v17
invoke-direct {v3, v0, v1, v2}, Lcom/google/ar/core/Anchor;-><init>(JLcom/google/ar/core/Session;)V
return-object v3
.end method
.method public createAnchor(Lcom/google/ar/core/Pose;)Lcom/google/ar/core/Anchor;
.locals 1
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 5
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "Earth does not support createAnchor using a Pose. Use createAnchor with Geospatial coordinates instead."
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public bridge synthetic equals(Ljava/lang/Object;)Z
.locals 0
.line 1
invoke-super {p0, p1}, Lcom/google/ar/core/TrackableBase;->equals(Ljava/lang/Object;)Z
move-result p1
return p1
.end method
.method public finalize()V
.locals 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
iget-wide v0, p0, Lcom/google/ar/core/TrackableBase;->nativeHandle:J
const-wide/16 v2, 0x0
cmp-long v4, v0, v2
if-eqz v4, :cond_0
iget-wide v4, p0, Lcom/google/ar/core/TrackableBase;->nativeSymbolTableHandle:J
.line 1
invoke-direct {p0, v4, v5, v0, v1}, Lcom/google/ar/core/Earth;->nativeReleaseEarth(JJ)V
iput-wide v2, p0, Lcom/google/ar/core/TrackableBase;->nativeHandle:J
.line 2
:cond_0
invoke-super {p0}, Lcom/google/ar/core/TrackableBase;->finalize()V
return-void
.end method
.method public bridge synthetic getAnchors()Ljava/util/Collection;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-super {p0}, Lcom/google/ar/core/TrackableBase;->getAnchors()Ljava/util/Collection;
move-result-object v0
return-object v0
.end method
.method public getCameraGeospatialPose()Lcom/google/ar/core/GeospatialPose;
.locals 5
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
new-instance v0, Lcom/google/ar/core/GeospatialPose;
iget-object v1, p0, Lcom/google/ar/core/TrackableBase;->session:Lcom/google/ar/core/Session;
iget-wide v1, v1, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v3, p0, Lcom/google/ar/core/TrackableBase;->nativeHandle:J
.line 2
invoke-direct {p0, v1, v2, v3, v4}, Lcom/google/ar/core/Earth;->nativeGetCameraGeospatialPose(JJ)J
move-result-wide v1
iget-object v3, p0, Lcom/google/ar/core/TrackableBase;->session:Lcom/google/ar/core/Session;
invoke-direct {v0, v1, v2, v3}, Lcom/google/ar/core/GeospatialPose;-><init>(JLcom/google/ar/core/Session;)V
return-object v0
.end method
.method public getEarthState()Lcom/google/ar/core/Earth$EarthState;
.locals 4
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/TrackableBase;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/TrackableBase;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/Earth;->nativeGetEarthState(JJ)I
move-result v0
invoke-static {v0}, Lcom/google/ar/core/Earth$EarthState;->forNumber(I)Lcom/google/ar/core/Earth$EarthState;
move-result-object v0
return-object v0
.end method
.method public getTrackingState()Lcom/google/ar/core/TrackingState;
.locals 4
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/TrackableBase;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/TrackableBase;->nativeHandle:J
.line 2
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/Earth;->nativeGetTrackingState(JJ)I
move-result v0
.line 1
invoke-static {v0}, Lcom/google/ar/core/TrackingState;->forNumber(I)Lcom/google/ar/core/TrackingState;
move-result-object v0
return-object v0
.end method
.method public bridge synthetic hashCode()I
.locals 1
.line 1
invoke-super {p0}, Lcom/google/ar/core/TrackableBase;->hashCode()I
move-result v0
return v0
.end method

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,209 @@
.class public Lcom/google/ar/core/GeospatialPose;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation build Lcom/google/ar/core/annotations/UsedByNative;
value = "session_jni_wrapper.cc"
.end annotation
# instance fields
.field nativeHandle:J
.field final nativeSymbolTableHandle:J
.field private final session:Lcom/google/ar/core/Session;
# direct methods
.method public constructor <init>(JLcom/google/ar/core/Session;)V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p3, p0, Lcom/google/ar/core/GeospatialPose;->session:Lcom/google/ar/core/Session;
iput-wide p1, p0, Lcom/google/ar/core/GeospatialPose;->nativeHandle:J
iget-wide p1, p3, Lcom/google/ar/core/Session;->nativeSymbolTableHandle:J
iput-wide p1, p0, Lcom/google/ar/core/GeospatialPose;->nativeSymbolTableHandle:J
return-void
.end method
.method private static native nativeDestroy(JJ)V
.end method
.method private native nativeGetAltitude(JJ)D
.end method
.method private native nativeGetHeading(JJ)D
.end method
.method private native nativeGetHeadingAccuracy(JJ)D
.end method
.method private native nativeGetHorizontalAccuracy(JJ)D
.end method
.method private native nativeGetLatitude(JJ)D
.end method
.method private native nativeGetLongitude(JJ)D
.end method
.method private native nativeGetVerticalAccuracy(JJ)D
.end method
# virtual methods
.method public finalize()V
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
iget-wide v0, p0, Lcom/google/ar/core/GeospatialPose;->nativeHandle:J
const-wide/16 v2, 0x0
cmp-long v2, v0, v2
if-eqz v2, :cond_0
iget-wide v2, p0, Lcom/google/ar/core/GeospatialPose;->nativeSymbolTableHandle:J
.line 1
invoke-static {v2, v3, v0, v1}, Lcom/google/ar/core/GeospatialPose;->nativeDestroy(JJ)V
.line 2
:cond_0
invoke-super {p0}, Ljava/lang/Object;->finalize()V
return-void
.end method
.method public getAltitude()D
.locals 4
iget-object v0, p0, Lcom/google/ar/core/GeospatialPose;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/GeospatialPose;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/GeospatialPose;->nativeGetAltitude(JJ)D
move-result-wide v0
return-wide v0
.end method
.method public getHeading()D
.locals 4
iget-object v0, p0, Lcom/google/ar/core/GeospatialPose;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/GeospatialPose;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/GeospatialPose;->nativeGetHeading(JJ)D
move-result-wide v0
return-wide v0
.end method
.method public getHeadingAccuracy()D
.locals 4
iget-object v0, p0, Lcom/google/ar/core/GeospatialPose;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/GeospatialPose;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/GeospatialPose;->nativeGetHeadingAccuracy(JJ)D
move-result-wide v0
return-wide v0
.end method
.method public getHorizontalAccuracy()D
.locals 4
iget-object v0, p0, Lcom/google/ar/core/GeospatialPose;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/GeospatialPose;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/GeospatialPose;->nativeGetHorizontalAccuracy(JJ)D
move-result-wide v0
return-wide v0
.end method
.method public getLatitude()D
.locals 4
iget-object v0, p0, Lcom/google/ar/core/GeospatialPose;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/GeospatialPose;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/GeospatialPose;->nativeGetLatitude(JJ)D
move-result-wide v0
return-wide v0
.end method
.method public getLongitude()D
.locals 4
iget-object v0, p0, Lcom/google/ar/core/GeospatialPose;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/GeospatialPose;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/GeospatialPose;->nativeGetLongitude(JJ)D
move-result-wide v0
return-wide v0
.end method
.method public getVerticalAccuracy()D
.locals 4
iget-object v0, p0, Lcom/google/ar/core/GeospatialPose;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/GeospatialPose;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/GeospatialPose;->nativeGetVerticalAccuracy(JJ)D
move-result-wide v0
return-wide v0
.end method

View File

@@ -0,0 +1,226 @@
.class public Lcom/google/ar/core/HitResult;
.super Ljava/lang/Object;
.source "SourceFile"
# instance fields
.field nativeHandle:J
.field private final nativeSymbolTableHandle:J
.field private final session:Lcom/google/ar/core/Session;
# direct methods
.method public constructor <init>()V
.locals 2
.line 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput-object v0, p0, Lcom/google/ar/core/HitResult;->session:Lcom/google/ar/core/Session;
const-wide/16 v0, 0x0
iput-wide v0, p0, Lcom/google/ar/core/HitResult;->nativeHandle:J
iput-wide v0, p0, Lcom/google/ar/core/HitResult;->nativeSymbolTableHandle:J
return-void
.end method
.method public constructor <init>(JLcom/google/ar/core/Session;)V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p3, p0, Lcom/google/ar/core/HitResult;->session:Lcom/google/ar/core/Session;
iput-wide p1, p0, Lcom/google/ar/core/HitResult;->nativeHandle:J
iget-wide p1, p3, Lcom/google/ar/core/Session;->nativeSymbolTableHandle:J
iput-wide p1, p0, Lcom/google/ar/core/HitResult;->nativeSymbolTableHandle:J
return-void
.end method
.method private native nativeCreateAnchor(JJ)J
.end method
.method private static native nativeDestroyHitResult(JJ)V
.end method
.method private native nativeGetDistance(JJ)F
.end method
.method private native nativeGetPose(JJ)Lcom/google/ar/core/Pose;
.end method
# virtual methods
.method public createAnchor()Lcom/google/ar/core/Anchor;
.locals 4
iget-object v0, p0, Lcom/google/ar/core/HitResult;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/HitResult;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/HitResult;->nativeCreateAnchor(JJ)J
move-result-wide v0
new-instance v2, Lcom/google/ar/core/Anchor;
iget-object v3, p0, Lcom/google/ar/core/HitResult;->session:Lcom/google/ar/core/Session;
.line 2
invoke-direct {v2, v0, v1, v3}, Lcom/google/ar/core/Anchor;-><init>(JLcom/google/ar/core/Session;)V
return-object v2
.end method
.method public equals(Ljava/lang/Object;)Z
.locals 6
.line 1
instance-of v0, p1, Lcom/google/ar/core/HitResult;
const/4 v1, 0x0
if-nez v0, :cond_0
return v1
.line 2
:cond_0
check-cast p1, Lcom/google/ar/core/HitResult;
.line 3
iget-wide v2, p1, Lcom/google/ar/core/HitResult;->nativeHandle:J
iget-wide v4, p0, Lcom/google/ar/core/HitResult;->nativeHandle:J
cmp-long p1, v2, v4
if-nez p1, :cond_1
const/4 p1, 0x1
return p1
:cond_1
return v1
.end method
.method public finalize()V
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
iget-wide v0, p0, Lcom/google/ar/core/HitResult;->nativeHandle:J
const-wide/16 v2, 0x0
cmp-long v2, v0, v2
if-eqz v2, :cond_0
iget-wide v2, p0, Lcom/google/ar/core/HitResult;->nativeSymbolTableHandle:J
.line 1
invoke-static {v2, v3, v0, v1}, Lcom/google/ar/core/HitResult;->nativeDestroyHitResult(JJ)V
.line 2
:cond_0
invoke-super {p0}, Ljava/lang/Object;->finalize()V
return-void
.end method
.method public getDistance()F
.locals 4
iget-object v0, p0, Lcom/google/ar/core/HitResult;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/HitResult;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/HitResult;->nativeGetDistance(JJ)F
move-result v0
return v0
.end method
.method public getHitPose()Lcom/google/ar/core/Pose;
.locals 4
iget-object v0, p0, Lcom/google/ar/core/HitResult;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/HitResult;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/HitResult;->nativeGetPose(JJ)Lcom/google/ar/core/Pose;
move-result-object v0
return-object v0
.end method
.method public getTrackable()Lcom/google/ar/core/Trackable;
.locals 4
iget-object v0, p0, Lcom/google/ar/core/HitResult;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/HitResult;->nativeHandle:J
invoke-virtual {p0, v0, v1, v2, v3}, Lcom/google/ar/core/HitResult;->nativeAcquireTrackable(JJ)J
move-result-wide v0
iget-object v2, p0, Lcom/google/ar/core/HitResult;->session:Lcom/google/ar/core/Session;
.line 2
invoke-virtual {v2, v0, v1}, Lcom/google/ar/core/Session;->createTrackable(J)Lcom/google/ar/core/Trackable;
move-result-object v0
return-object v0
.end method
.method public hashCode()I
.locals 2
iget-wide v0, p0, Lcom/google/ar/core/HitResult;->nativeHandle:J
.line 1
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Long;->hashCode()I
move-result v0
return v0
.end method
.method public native nativeAcquireTrackable(JJ)J
.end method

View File

@@ -0,0 +1,21 @@
.class public Lcom/google/ar/core/ImageFormat;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field public static final RGBA_FP16:I = 0x16
.field public static final Y8:I = 0x20203859
.field public static final YUV_420_888:I = 0x23
# direct methods
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,930 @@
.class public Lcom/google/ar/core/InstallActivity;
.super Landroid/app/Activity;
.source "SourceFile"
# annotations
.annotation build Landroid/annotation/TargetApi;
value = 0x18
.end annotation
.annotation build Lcom/google/ar/core/annotations/UsedByReflection;
value = "AndroidManifest.xml"
.end annotation
# static fields
.field private static final BOX_SIZE_DP:I = 0x118
.field private static final INSTALLING_TEXT_BOTTOM_MARGIN_DP:I = 0x1e
.field static final INSTALL_BEHAVIOR_KEY:Ljava/lang/String; = "behavior"
.field static final MESSAGE_TYPE_KEY:Ljava/lang/String; = "message"
.field private static final TAG:Ljava/lang/String; = "ARCore-InstallActivity"
# instance fields
.field private finished:Z
.field private installBehavior:Lcom/google/ar/core/ArCoreApk$InstallBehavior;
.field private installStarted:Z
.field private lastEvent:Lcom/google/ar/core/t;
.field private messageType:Lcom/google/ar/core/ArCoreApk$UserMessageType;
.field private final themeWrapper:Landroid/view/ContextThemeWrapper;
.field private waitingForCompletion:Z
# direct methods
.method public static bridge synthetic -$$Nest$fgetwaitingForCompletion(Lcom/google/ar/core/InstallActivity;)Z
.locals 0
iget-boolean p0, p0, Lcom/google/ar/core/InstallActivity;->waitingForCompletion:Z
return p0
.end method
.method public static bridge synthetic -$$Nest$fputlastEvent(Lcom/google/ar/core/InstallActivity;Lcom/google/ar/core/t;)V
.locals 0
iput-object p1, p0, Lcom/google/ar/core/InstallActivity;->lastEvent:Lcom/google/ar/core/t;
return-void
.end method
.method public static bridge synthetic -$$Nest$manimateToSpinner(Lcom/google/ar/core/InstallActivity;)V
.locals 0
invoke-direct {p0}, Lcom/google/ar/core/InstallActivity;->animateToSpinner()V
return-void
.end method
.method public static bridge synthetic -$$Nest$mcloseInstaller(Lcom/google/ar/core/InstallActivity;)V
.locals 0
invoke-direct {p0}, Lcom/google/ar/core/InstallActivity;->closeInstaller()V
return-void
.end method
.method public static bridge synthetic -$$Nest$mfinishWithFailure(Lcom/google/ar/core/InstallActivity;Ljava/lang/Exception;)V
.locals 0
invoke-direct {p0, p1}, Lcom/google/ar/core/InstallActivity;->finishWithFailure(Ljava/lang/Exception;)V
return-void
.end method
.method public static bridge synthetic -$$Nest$mshowSpinner(Lcom/google/ar/core/InstallActivity;)V
.locals 0
invoke-direct {p0}, Lcom/google/ar/core/InstallActivity;->showSpinner()V
return-void
.end method
.method public static bridge synthetic -$$Nest$mstartInstaller(Lcom/google/ar/core/InstallActivity;)V
.locals 0
invoke-direct {p0}, Lcom/google/ar/core/InstallActivity;->startInstaller()V
return-void
.end method
.method public constructor <init>()V
.locals 2
.line 1
invoke-direct {p0}, Landroid/app/Activity;-><init>()V
new-instance v0, Landroid/view/ContextThemeWrapper;
const v1, 0x103023a
.line 2
invoke-direct {v0, p0, v1}, Landroid/view/ContextThemeWrapper;-><init>(Landroid/content/Context;I)V
iput-object v0, p0, Lcom/google/ar/core/InstallActivity;->themeWrapper:Landroid/view/ContextThemeWrapper;
.line 3
sget-object v0, Lcom/google/ar/core/t;->b:Lcom/google/ar/core/t;
iput-object v0, p0, Lcom/google/ar/core/InstallActivity;->lastEvent:Lcom/google/ar/core/t;
return-void
.end method
.method private animateToSpinner()V
.locals 6
.line 1
new-instance v0, Landroid/util/DisplayMetrics;
invoke-direct {v0}, Landroid/util/DisplayMetrics;-><init>()V
.line 2
invoke-virtual {p0}, Landroid/app/Activity;->getWindowManager()Landroid/view/WindowManager;
move-result-object v1
invoke-interface {v1}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;
move-result-object v1
invoke-virtual {v1, v0}, Landroid/view/Display;->getMetrics(Landroid/util/DisplayMetrics;)V
iget v0, v0, Landroid/util/DisplayMetrics;->density:F
const/high16 v1, 0x438c0000 # 280.0f
mul-float/2addr v0, v1
float-to-int v0, v0
.line 4
invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
move-result-object v1
invoke-virtual {v1}, Landroid/view/Window;->getDecorView()Landroid/view/View;
move-result-object v1
invoke-virtual {v1}, Landroid/view/View;->getWidth()I
move-result v1
.line 5
invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
move-result-object v2
invoke-virtual {v2}, Landroid/view/Window;->getDecorView()Landroid/view/View;
move-result-object v2
invoke-virtual {v2}, Landroid/view/View;->getHeight()I
move-result v2
new-instance v3, Landroid/widget/RelativeLayout;
.line 6
invoke-direct {v3, p0}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V
invoke-virtual {p0, v3}, Landroid/app/Activity;->setContentView(Landroid/view/View;)V
.line 7
invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
move-result-object v3
invoke-virtual {v3}, Landroid/view/Window;->getDecorView()Landroid/view/View;
move-result-object v3
invoke-virtual {v3, v0}, Landroid/view/View;->setMinimumWidth(I)V
const/4 v3, 0x2
new-array v3, v3, [F
fill-array-data v3, :array_0
.line 8
invoke-static {v3}, Landroid/animation/ValueAnimator;->ofFloat([F)Landroid/animation/ValueAnimator;
move-result-object v3
const-wide/16 v4, 0x12c
.line 9
invoke-virtual {v3, v4, v5}, Landroid/animation/ValueAnimator;->setDuration(J)Landroid/animation/ValueAnimator;
.line 10
new-instance v4, Lcom/google/ar/core/q;
invoke-direct {v4, p0, v1, v0, v2}, Lcom/google/ar/core/q;-><init>(Lcom/google/ar/core/InstallActivity;III)V
invoke-virtual {v3, v4}, Landroid/animation/ValueAnimator;->addUpdateListener(Landroid/animation/ValueAnimator$AnimatorUpdateListener;)V
new-instance v0, Lcom/google/ar/core/r;
.line 11
invoke-direct {v0, p0}, Lcom/google/ar/core/r;-><init>(Lcom/google/ar/core/InstallActivity;)V
invoke-virtual {v3, v0}, Landroid/animation/Animator;->addListener(Landroid/animation/Animator$AnimatorListener;)V
.line 12
invoke-virtual {v3}, Landroid/animation/ValueAnimator;->start()V
return-void
:array_0
.array-data 4
0x0
0x3f800000 # 1.0f
.end array-data
.end method
.method private closeInstaller()V
.locals 2
.line 1
new-instance v0, Landroid/content/Intent;
const-class v1, Lcom/google/ar/core/InstallActivity;
invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
const/high16 v1, 0x4000000
invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
move-result-object v0
invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
return-void
.end method
.method private finishWithFailure(Ljava/lang/Exception;)V
.locals 1
.line 1
invoke-static {}, Lcom/google/ar/core/j;->a()Lcom/google/ar/core/j;
move-result-object v0
iput-object p1, v0, Lcom/google/ar/core/j;->a:Ljava/lang/Exception;
invoke-static {}, Lcom/google/ar/core/j;->a()Lcom/google/ar/core/j;
move-result-object p1
invoke-virtual {p1}, Lcom/google/ar/core/j;->d()V
const/4 p1, 0x1
iput-boolean p1, p0, Lcom/google/ar/core/InstallActivity;->finished:Z
.line 2
invoke-super {p0}, Landroid/app/Activity;->finish()V
return-void
.end method
.method private isOptional()Z
.locals 2
iget-object v0, p0, Lcom/google/ar/core/InstallActivity;->installBehavior:Lcom/google/ar/core/ArCoreApk$InstallBehavior;
.line 1
sget-object v1, Lcom/google/ar/core/ArCoreApk$InstallBehavior;->OPTIONAL:Lcom/google/ar/core/ArCoreApk$InstallBehavior;
if-ne v0, v1, :cond_0
const/4 v0, 0x1
return v0
:cond_0
const/4 v0, 0x0
return v0
.end method
.method private showEducationDialog()V
.locals 4
sget v0, Lcom/google/ar/core/R$layout;->__arcore_education:I
.line 1
invoke-virtual {p0, v0}, Landroid/app/Activity;->setContentView(I)V
sget v0, Lcom/google/ar/core/R$id;->__arcore_cancelButton:I
.line 2
invoke-virtual {p0, v0}, Landroid/app/Activity;->findViewById(I)Landroid/view/View;
move-result-object v0
new-instance v1, Lcom/google/ar/core/p;
const/4 v2, 0x1
invoke-direct {v1, p0, v2}, Lcom/google/ar/core/p;-><init>(Lcom/google/ar/core/InstallActivity;I)V
.line 3
invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 4
invoke-direct {p0}, Lcom/google/ar/core/InstallActivity;->isOptional()Z
move-result v0
if-nez v0, :cond_0
sget v0, Lcom/google/ar/core/R$id;->__arcore_cancelButton:I
.line 5
invoke-virtual {p0, v0}, Landroid/app/Activity;->findViewById(I)Landroid/view/View;
move-result-object v0
const/16 v1, 0x8
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
:cond_0
sget v0, Lcom/google/ar/core/R$id;->__arcore_continueButton:I
.line 6
invoke-virtual {p0, v0}, Landroid/app/Activity;->findViewById(I)Landroid/view/View;
move-result-object v0
new-instance v1, Lcom/google/ar/core/p;
const/4 v3, 0x0
invoke-direct {v1, p0, v3}, Lcom/google/ar/core/p;-><init>(Lcom/google/ar/core/InstallActivity;I)V
.line 7
invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
sget v0, Lcom/google/ar/core/R$id;->__arcore_messageText:I
.line 8
invoke-virtual {p0, v0}, Landroid/app/Activity;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
.line 9
sget-object v1, Lcom/google/ar/core/t;->a:Lcom/google/ar/core/t;
sget-object v1, Lcom/google/ar/core/ArCoreApk$UserMessageType;->APPLICATION:Lcom/google/ar/core/ArCoreApk$UserMessageType;
sget-object v1, Lcom/google/ar/core/ArCoreApk$Availability;->UNKNOWN_ERROR:Lcom/google/ar/core/ArCoreApk$Availability;
iget-object v1, p0, Lcom/google/ar/core/InstallActivity;->messageType:Lcom/google/ar/core/ArCoreApk$UserMessageType;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
if-eq v1, v2, :cond_1
sget v1, Lcom/google/ar/core/R$string;->__arcore_install_app:I
.line 11
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V
return-void
:cond_1
sget v1, Lcom/google/ar/core/R$string;->__arcore_install_feature:I
.line 10
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V
return-void
.end method
.method private showSpinner()V
.locals 7
.line 1
new-instance v0, Landroid/util/DisplayMetrics;
invoke-direct {v0}, Landroid/util/DisplayMetrics;-><init>()V
.line 2
invoke-virtual {p0}, Landroid/app/Activity;->getWindowManager()Landroid/view/WindowManager;
move-result-object v1
invoke-interface {v1}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;
move-result-object v1
invoke-virtual {v1, v0}, Landroid/view/Display;->getMetrics(Landroid/util/DisplayMetrics;)V
iget v1, v0, Landroid/util/DisplayMetrics;->density:F
const/high16 v2, 0x438c0000 # 280.0f
mul-float/2addr v1, v2
float-to-int v1, v1
.line 4
invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
move-result-object v2
invoke-virtual {v2, v1, v1}, Landroid/view/Window;->setLayout(II)V
new-instance v2, Landroid/widget/RelativeLayout;
iget-object v3, p0, Lcom/google/ar/core/InstallActivity;->themeWrapper:Landroid/view/ContextThemeWrapper;
.line 5
invoke-direct {v2, v3}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V
new-instance v3, Landroid/widget/RelativeLayout$LayoutParams;
const/4 v4, -0x2
.line 6
invoke-direct {v3, v4, v4}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V
const/16 v5, 0xd
.line 7
invoke-virtual {v3, v5}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V
new-instance v5, Landroid/widget/ProgressBar;
iget-object v6, p0, Lcom/google/ar/core/InstallActivity;->themeWrapper:Landroid/view/ContextThemeWrapper;
.line 8
invoke-direct {v5, v6}, Landroid/widget/ProgressBar;-><init>(Landroid/content/Context;)V
const/4 v6, 0x1
.line 9
invoke-virtual {v5, v6}, Landroid/widget/ProgressBar;->setIndeterminate(Z)V
.line 10
invoke-virtual {v5, v3}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
.line 11
invoke-virtual {v2, v5}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V
new-instance v3, Landroid/widget/RelativeLayout$LayoutParams;
.line 12
invoke-direct {v3, v4, v4}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V
const/16 v4, 0xe
.line 13
invoke-virtual {v3, v4}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V
const/16 v4, 0xc
.line 14
invoke-virtual {v3, v4}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V
iget v0, v0, Landroid/util/DisplayMetrics;->density:F
const/high16 v4, 0x41f00000 # 30.0f
mul-float/2addr v0, v4
float-to-int v0, v0
iput v0, v3, Landroid/widget/RelativeLayout$LayoutParams;->bottomMargin:I
.line 15
new-instance v0, Landroid/widget/TextView;
iget-object v4, p0, Lcom/google/ar/core/InstallActivity;->themeWrapper:Landroid/view/ContextThemeWrapper;
.line 16
invoke-direct {v0, v4}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V
sget v4, Lcom/google/ar/core/R$string;->__arcore_installing:I
.line 17
invoke-virtual {v0, v4}, Landroid/widget/TextView;->setText(I)V
.line 18
invoke-virtual {v0, v3}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
.line 19
invoke-virtual {v2, v0}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V
.line 20
invoke-virtual {p0, v2}, Landroid/app/Activity;->setContentView(Landroid/view/View;)V
.line 21
invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
move-result-object v0
invoke-virtual {v0, v1, v1}, Landroid/view/Window;->setLayout(II)V
return-void
.end method
.method private startInstaller()V
.locals 2
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/google/ar/core/InstallActivity;->installStarted:Z
.line 1
sget-object v0, Lcom/google/ar/core/t;->b:Lcom/google/ar/core/t;
iput-object v0, p0, Lcom/google/ar/core/InstallActivity;->lastEvent:Lcom/google/ar/core/t;
invoke-static {}, Lcom/google/ar/core/j;->a()Lcom/google/ar/core/j;
move-result-object v0
.line 2
invoke-virtual {v0, p0}, Lcom/google/ar/core/j;->b(Landroid/content/Context;)Lcom/google/ar/core/u;
move-result-object v0
new-instance v1, Lcom/google/ar/core/s;
invoke-direct {v1, p0}, Lcom/google/ar/core/s;-><init>(Lcom/google/ar/core/InstallActivity;)V
.line 3
invoke-virtual {v0, p0, v1}, Lcom/google/ar/core/u;->d(Landroid/app/Activity;Lcom/google/ar/core/s;)V
return-void
.end method
# virtual methods
.method public finish()V
.locals 1
.line 1
new-instance v0, Lcom/google/ar/core/exceptions/UnavailableUserDeclinedInstallationException;
invoke-direct {v0}, Lcom/google/ar/core/exceptions/UnavailableUserDeclinedInstallationException;-><init>()V
invoke-direct {p0, v0}, Lcom/google/ar/core/InstallActivity;->finishWithFailure(Ljava/lang/Exception;)V
return-void
.end method
.method public onActivityResult(IILandroid/content/Intent;)V
.locals 0
.line 1
invoke-super {p0, p1, p2, p3}, Landroid/app/Activity;->onActivityResult(IILandroid/content/Intent;)V
new-instance p1, Ljava/lang/StringBuilder;
.line 2
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
const-string p3, "activityResult: "
invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
return-void
.end method
.method public onCreate(Landroid/os/Bundle;)V
.locals 3
.line 1
invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V
if-eqz p1, :cond_0
:try_start_0
new-instance p1, Lcom/google/ar/core/exceptions/FatalException;
const-string v0, "Install activity was suspended and recreated."
.line 2
invoke-direct {p1, v0}, Lcom/google/ar/core/exceptions/FatalException;-><init>(Ljava/lang/String;)V
invoke-direct {p0, p1}, Lcom/google/ar/core/InstallActivity;->finishWithFailure(Ljava/lang/Exception;)V
return-void
:catch_0
move-exception p1
goto/16 :goto_2
.line 3
:cond_0
invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;
move-result-object p1
const-string v0, "message"
invoke-virtual {p1, v0}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;
move-result-object p1
check-cast p1, Lcom/google/ar/core/ArCoreApk$UserMessageType;
iput-object p1, p0, Lcom/google/ar/core/InstallActivity;->messageType:Lcom/google/ar/core/ArCoreApk$UserMessageType;
.line 4
invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;
move-result-object p1
const-string v0, "behavior"
invoke-virtual {p1, v0}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;
move-result-object p1
check-cast p1, Lcom/google/ar/core/ArCoreApk$InstallBehavior;
iput-object p1, p0, Lcom/google/ar/core/InstallActivity;->installBehavior:Lcom/google/ar/core/ArCoreApk$InstallBehavior;
iget-object v0, p0, Lcom/google/ar/core/InstallActivity;->messageType:Lcom/google/ar/core/ArCoreApk$UserMessageType;
:try_end_0
.catch Ljava/lang/RuntimeException; {:try_start_0 .. :try_end_0} :catch_0
const-string v1, "ARCore-InstallActivity"
if-eqz v0, :cond_5
if-nez p1, :cond_1
goto :goto_1
:cond_1
const p1, 0x103023a
.line 7
:try_start_1
invoke-virtual {p0, p1}, Landroid/content/Context;->setTheme(I)V
.line 8
invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
move-result-object p1
const/4 v0, 0x1
invoke-virtual {p1, v0}, Landroid/view/Window;->requestFeature(I)Z
.line 9
invoke-direct {p0}, Lcom/google/ar/core/InstallActivity;->isOptional()Z
move-result p1
invoke-virtual {p0, p1}, Landroid/app/Activity;->setFinishOnTouchOutside(Z)V
iget-object p1, p0, Lcom/google/ar/core/InstallActivity;->messageType:Lcom/google/ar/core/ArCoreApk$UserMessageType;
.line 10
sget-object v0, Lcom/google/ar/core/ArCoreApk$UserMessageType;->USER_ALREADY_INFORMED:Lcom/google/ar/core/ArCoreApk$UserMessageType;
if-ne p1, v0, :cond_2
.line 11
invoke-direct {p0}, Lcom/google/ar/core/InstallActivity;->showSpinner()V
return-void
:cond_2
new-instance p1, Ljava/util/concurrent/atomic/AtomicReference;
.line 12
sget-object v0, Lcom/google/ar/core/ArCoreApk$Availability;->UNKNOWN_CHECKING:Lcom/google/ar/core/ArCoreApk$Availability;
invoke-direct {p1, v0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>(Ljava/lang/Object;)V
invoke-static {}, Lcom/google/ar/core/j;->a()Lcom/google/ar/core/j;
move-result-object v0
.line 13
invoke-virtual {v0, p0}, Lcom/google/ar/core/j;->b(Landroid/content/Context;)Lcom/google/ar/core/u;
move-result-object v0
new-instance v2, Lcom/google/ar/core/o;
invoke-direct {v2, p1}, Lcom/google/ar/core/o;-><init>(Ljava/util/concurrent/atomic/AtomicReference;)V
.line 14
invoke-virtual {v0, p0, v2}, Lcom/google/ar/core/u;->b(Landroid/content/Context;Lcom/google/ar/core/h;)V
.line 15
sget-object v0, Lcom/google/ar/core/t;->a:Lcom/google/ar/core/t;
invoke-virtual {p1}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/google/ar/core/ArCoreApk$Availability;
invoke-virtual {p1}, Ljava/lang/Enum;->ordinal()I
move-result p1
if-eqz p1, :cond_4
const/4 v0, 0x3
if-eq p1, v0, :cond_3
goto :goto_0
.line 18
:cond_3
new-instance p1, Lcom/google/ar/core/exceptions/UnavailableDeviceNotCompatibleException;
.line 16
invoke-direct {p1}, Lcom/google/ar/core/exceptions/UnavailableDeviceNotCompatibleException;-><init>()V
invoke-direct {p0, p1}, Lcom/google/ar/core/InstallActivity;->finishWithFailure(Ljava/lang/Exception;)V
return-void
:cond_4
const-string p1, "Preliminary compatibility check failed."
.line 17
invoke-static {v1, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
.line 18
:goto_0
invoke-direct {p0}, Lcom/google/ar/core/InstallActivity;->showEducationDialog()V
return-void
:cond_5
:goto_1
const-string p1, "missing intent data."
.line 5
invoke-static {v1, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
new-instance p1, Lcom/google/ar/core/exceptions/FatalException;
const-string v0, "Install activity launched without config data."
.line 6
invoke-direct {p1, v0}, Lcom/google/ar/core/exceptions/FatalException;-><init>(Ljava/lang/String;)V
invoke-direct {p0, p1}, Lcom/google/ar/core/InstallActivity;->finishWithFailure(Ljava/lang/Exception;)V
:try_end_1
.catch Ljava/lang/RuntimeException; {:try_start_1 .. :try_end_1} :catch_0
return-void
.line 16
:goto_2
new-instance v0, Lcom/google/ar/core/exceptions/FatalException;
const-string v1, "Exception starting install flow"
.line 19
invoke-direct {v0, v1, p1}, Lcom/google/ar/core/exceptions/FatalException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
invoke-direct {p0, v0}, Lcom/google/ar/core/InstallActivity;->finishWithFailure(Ljava/lang/Exception;)V
return-void
.end method
.method public onDestroy()V
.locals 1
iget-boolean v0, p0, Lcom/google/ar/core/InstallActivity;->finished:Z
if-nez v0, :cond_0
.line 1
invoke-static {}, Lcom/google/ar/core/j;->a()Lcom/google/ar/core/j;
move-result-object v0
invoke-virtual {v0}, Lcom/google/ar/core/j;->d()V
.line 2
:cond_0
invoke-super {p0}, Landroid/app/Activity;->onDestroy()V
return-void
.end method
.method public onNewIntent(Landroid/content/Intent;)V
.locals 0
return-void
.end method
.method public onResume()V
.locals 2
.line 1
invoke-super {p0}, Landroid/app/Activity;->onResume()V
iget-boolean v0, p0, Lcom/google/ar/core/InstallActivity;->installStarted:Z
if-nez v0, :cond_1
iget-object v0, p0, Lcom/google/ar/core/InstallActivity;->messageType:Lcom/google/ar/core/ArCoreApk$UserMessageType;
.line 2
sget-object v1, Lcom/google/ar/core/ArCoreApk$UserMessageType;->USER_ALREADY_INFORMED:Lcom/google/ar/core/ArCoreApk$UserMessageType;
if-ne v0, v1, :cond_0
.line 3
invoke-direct {p0}, Lcom/google/ar/core/InstallActivity;->startInstaller()V
:cond_0
return-void
:cond_1
iget-boolean v0, p0, Lcom/google/ar/core/InstallActivity;->finished:Z
if-nez v0, :cond_4
monitor-enter p0
:try_start_0
iget-object v0, p0, Lcom/google/ar/core/InstallActivity;->lastEvent:Lcom/google/ar/core/t;
.line 4
sget-object v1, Lcom/google/ar/core/t;->b:Lcom/google/ar/core/t;
if-ne v0, v1, :cond_2
.line 5
invoke-virtual {p0}, Lcom/google/ar/core/InstallActivity;->finish()V
goto :goto_0
:catchall_0
move-exception v0
goto :goto_1
.line 7
:cond_2
sget-object v1, Lcom/google/ar/core/t;->a:Lcom/google/ar/core/t;
if-ne v0, v1, :cond_3
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/google/ar/core/InstallActivity;->waitingForCompletion:Z
goto :goto_0
:cond_3
invoke-static {}, Lcom/google/ar/core/j;->a()Lcom/google/ar/core/j;
move-result-object v0
iget-object v0, v0, Lcom/google/ar/core/j;->a:Ljava/lang/Exception;
.line 6
invoke-direct {p0, v0}, Lcom/google/ar/core/InstallActivity;->finishWithFailure(Ljava/lang/Exception;)V
.line 7
:goto_0
monitor-exit p0
return-void
:goto_1
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v0
:cond_4
return-void
.end method
.method public onSaveInstanceState(Landroid/os/Bundle;)V
.locals 2
.line 1
invoke-super {p0, p1}, Landroid/app/Activity;->onSaveInstanceState(Landroid/os/Bundle;)V
const-string v0, "didResume"
const/4 v1, 0x1
.line 2
invoke-virtual {p1, v0, v1}, Landroid/os/BaseBundle;->putBoolean(Ljava/lang/String;Z)V
return-void
.end method

View File

@@ -0,0 +1,198 @@
.class public final enum Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/ar/core/InstantPlacementPoint;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "TrackingMethod"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;
.field public static final enum FULL_TRACKING:Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;
.field public static final enum NOT_TRACKING:Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;
.field public static final enum SCREENSPACE_WITH_APPROXIMATE_DISTANCE:Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;
# instance fields
.field final nativeCode:I
# direct methods
.method private static synthetic $values()[Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;
.locals 3
sget-object v0, Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;->NOT_TRACKING:Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;
sget-object v1, Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;->SCREENSPACE_WITH_APPROXIMATE_DISTANCE:Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;
sget-object v2, Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;->FULL_TRACKING:Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;
filled-new-array {v0, v1, v2}, [Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 3
.line 1
new-instance v0, Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;
const-string v1, "NOT_TRACKING"
const/4 v2, 0x0
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;->NOT_TRACKING:Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;
new-instance v0, Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;
const-string v1, "SCREENSPACE_WITH_APPROXIMATE_DISTANCE"
const/4 v2, 0x1
.line 2
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;->SCREENSPACE_WITH_APPROXIMATE_DISTANCE:Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;
new-instance v0, Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;
const-string v1, "FULL_TRACKING"
const/4 v2, 0x2
.line 3
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;->FULL_TRACKING:Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;
.line 4
invoke-static {}, Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;->$values()[Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;
move-result-object v0
sput-object v0, Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;->$VALUES:[Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput p3, p0, Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;->nativeCode:I
return-void
.end method
.method public static fromNumber(I)Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;
.locals 5
.line 1
invoke-static {}, Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;->values()[Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;
move-result-object v0
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_1
aget-object v3, v0, v2
.line 2
iget v4, v3, Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;->nativeCode:I
if-ne v4, p0, :cond_0
return-object v3
:cond_0
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
new-instance v0, Lcom/google/ar/core/exceptions/FatalException;
new-instance v1, Ljava/lang/StringBuilder;
.line 3
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Unexpected value for native InstantPlacementPoint TrackingMethod Mode, value="
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Lcom/google/ar/core/exceptions/FatalException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;
.locals 1
const-class v0, Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;
.line 1
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;
return-object p0
.end method
.method public static values()[Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;
.locals 1
sget-object v0, Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;->$VALUES:[Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;
.line 1
invoke-virtual {v0}, [Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;
return-object v0
.end method

View File

@@ -0,0 +1,133 @@
.class public Lcom/google/ar/core/InstantPlacementPoint;
.super Lcom/google/ar/core/TrackableBase;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;
}
.end annotation
# direct methods
.method public constructor <init>(JLcom/google/ar/core/Session;)V
.locals 0
.line 1
invoke-direct {p0, p1, p2, p3}, Lcom/google/ar/core/TrackableBase;-><init>(JLcom/google/ar/core/Session;)V
return-void
.end method
.method private native nativeGetPose(JJ)Lcom/google/ar/core/Pose;
.end method
.method private native nativeGetTrackingMethod(JJ)I
.end method
# virtual methods
.method public bridge synthetic createAnchor(Lcom/google/ar/core/Pose;)Lcom/google/ar/core/Anchor;
.locals 0
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-super {p0, p1}, Lcom/google/ar/core/TrackableBase;->createAnchor(Lcom/google/ar/core/Pose;)Lcom/google/ar/core/Anchor;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic equals(Ljava/lang/Object;)Z
.locals 0
.line 1
invoke-super {p0, p1}, Lcom/google/ar/core/TrackableBase;->equals(Ljava/lang/Object;)Z
move-result p1
return p1
.end method
.method public bridge synthetic getAnchors()Ljava/util/Collection;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-super {p0}, Lcom/google/ar/core/TrackableBase;->getAnchors()Ljava/util/Collection;
move-result-object v0
return-object v0
.end method
.method public getPose()Lcom/google/ar/core/Pose;
.locals 4
iget-object v0, p0, Lcom/google/ar/core/TrackableBase;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/TrackableBase;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/InstantPlacementPoint;->nativeGetPose(JJ)Lcom/google/ar/core/Pose;
move-result-object v0
return-object v0
.end method
.method public getTrackingMethod()Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;
.locals 4
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/TrackableBase;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/TrackableBase;->nativeHandle:J
.line 2
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/InstantPlacementPoint;->nativeGetTrackingMethod(JJ)I
move-result v0
.line 1
invoke-static {v0}, Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;->fromNumber(I)Lcom/google/ar/core/InstantPlacementPoint$TrackingMethod;
move-result-object v0
return-object v0
.end method
.method public bridge synthetic getTrackingState()Lcom/google/ar/core/TrackingState;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-super {p0}, Lcom/google/ar/core/TrackableBase;->getTrackingState()Lcom/google/ar/core/TrackingState;
move-result-object v0
return-object v0
.end method
.method public bridge synthetic hashCode()I
.locals 1
.line 1
invoke-super {p0}, Lcom/google/ar/core/TrackableBase;->hashCode()I
move-result v0
return v0
.end method

View File

@@ -0,0 +1,185 @@
.class public final enum Lcom/google/ar/core/LightEstimate$State;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/ar/core/LightEstimate;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "State"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/ar/core/LightEstimate$State;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/ar/core/LightEstimate$State;
.field public static final enum NOT_VALID:Lcom/google/ar/core/LightEstimate$State;
.field public static final enum VALID:Lcom/google/ar/core/LightEstimate$State;
# instance fields
.field final nativeCode:I
# direct methods
.method private static synthetic $values()[Lcom/google/ar/core/LightEstimate$State;
.locals 2
sget-object v0, Lcom/google/ar/core/LightEstimate$State;->NOT_VALID:Lcom/google/ar/core/LightEstimate$State;
sget-object v1, Lcom/google/ar/core/LightEstimate$State;->VALID:Lcom/google/ar/core/LightEstimate$State;
filled-new-array {v0, v1}, [Lcom/google/ar/core/LightEstimate$State;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 3
.line 1
new-instance v0, Lcom/google/ar/core/LightEstimate$State;
const-string v1, "NOT_VALID"
const/4 v2, 0x0
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/LightEstimate$State;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/LightEstimate$State;->NOT_VALID:Lcom/google/ar/core/LightEstimate$State;
new-instance v0, Lcom/google/ar/core/LightEstimate$State;
const-string v1, "VALID"
const/4 v2, 0x1
.line 2
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/LightEstimate$State;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/LightEstimate$State;->VALID:Lcom/google/ar/core/LightEstimate$State;
.line 3
invoke-static {}, Lcom/google/ar/core/LightEstimate$State;->$values()[Lcom/google/ar/core/LightEstimate$State;
move-result-object v0
sput-object v0, Lcom/google/ar/core/LightEstimate$State;->$VALUES:[Lcom/google/ar/core/LightEstimate$State;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput p3, p0, Lcom/google/ar/core/LightEstimate$State;->nativeCode:I
return-void
.end method
.method public static forNumber(I)Lcom/google/ar/core/LightEstimate$State;
.locals 5
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-static {}, Lcom/google/ar/core/LightEstimate$State;->values()[Lcom/google/ar/core/LightEstimate$State;
move-result-object v0
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_1
aget-object v3, v0, v2
.line 2
iget v4, v3, Lcom/google/ar/core/LightEstimate$State;->nativeCode:I
if-ne v4, p0, :cond_0
return-object v3
:cond_0
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
new-instance v0, Lcom/google/ar/core/exceptions/FatalException;
new-instance v1, Ljava/lang/StringBuilder;
.line 3
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Unexpected value for native LightEstimate.State, value="
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Lcom/google/ar/core/exceptions/FatalException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/ar/core/LightEstimate$State;
.locals 1
const-class v0, Lcom/google/ar/core/LightEstimate$State;
.line 1
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/ar/core/LightEstimate$State;
return-object p0
.end method
.method public static values()[Lcom/google/ar/core/LightEstimate$State;
.locals 1
sget-object v0, Lcom/google/ar/core/LightEstimate$State;->$VALUES:[Lcom/google/ar/core/LightEstimate$State;
.line 1
invoke-virtual {v0}, [Lcom/google/ar/core/LightEstimate$State;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/ar/core/LightEstimate$State;
return-object v0
.end method

View File

@@ -0,0 +1,334 @@
.class public Lcom/google/ar/core/LightEstimate;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/ar/core/LightEstimate$State;
}
.end annotation
# instance fields
.field nativeHandle:J
.field private final nativeSymbolTableHandle:J
.field private final session:Lcom/google/ar/core/Session;
# direct methods
.method public constructor <init>()V
.locals 3
.line 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const-wide/16 v0, 0x0
iput-wide v0, p0, Lcom/google/ar/core/LightEstimate;->nativeHandle:J
const/4 v2, 0x0
iput-object v2, p0, Lcom/google/ar/core/LightEstimate;->session:Lcom/google/ar/core/Session;
iput-wide v0, p0, Lcom/google/ar/core/LightEstimate;->nativeSymbolTableHandle:J
return-void
.end method
.method public constructor <init>(Lcom/google/ar/core/Session;)V
.locals 2
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const-wide/16 v0, 0x0
iput-wide v0, p0, Lcom/google/ar/core/LightEstimate;->nativeHandle:J
iput-object p1, p0, Lcom/google/ar/core/LightEstimate;->session:Lcom/google/ar/core/Session;
iget-wide v0, p1, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
invoke-static {v0, v1}, Lcom/google/ar/core/LightEstimate;->nativeCreateLightEstimate(J)J
move-result-wide v0
iput-wide v0, p0, Lcom/google/ar/core/LightEstimate;->nativeHandle:J
.line 2
iget-wide v0, p1, Lcom/google/ar/core/Session;->nativeSymbolTableHandle:J
iput-wide v0, p0, Lcom/google/ar/core/LightEstimate;->nativeSymbolTableHandle:J
return-void
.end method
.method private convertNativeArImageCubemapToArray([J)[Lcom/google/ar/core/ArImage;
.locals 6
.line 1
array-length v0, p1
new-array v0, v0, [Lcom/google/ar/core/ArImage;
const/4 v1, 0x0
.line 2
:goto_0
array-length v2, p1
if-ge v1, v2, :cond_0
.line 3
new-instance v2, Lcom/google/ar/core/ArImage;
iget-object v3, p0, Lcom/google/ar/core/LightEstimate;->session:Lcom/google/ar/core/Session;
aget-wide v4, p1, v1
invoke-direct {v2, v3, v4, v5}, Lcom/google/ar/core/ArImage;-><init>(Lcom/google/ar/core/Session;J)V
.line 4
aput-object v2, v0, v1
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_0
return-object v0
.end method
.method private native nativeAcquireEnvironmentalHdrCubeMap(JJ)[J
.end method
.method private static native nativeCreateLightEstimate(J)J
.end method
.method private static native nativeDestroyLightEstimate(JJ)V
.end method
.method private native nativeGetColorCorrection(JJ[FI)V
.end method
.method private native nativeGetEnvironmentalHdrAmbientSphericalHarmonics(JJ[F)V
.end method
.method private native nativeGetEnvironmentalHdrMainLightDirection(JJ[F)V
.end method
.method private native nativeGetEnvironmentalHdrMainLightIntensity(JJ[F)V
.end method
.method private native nativeGetPixelIntensity(JJ)F
.end method
.method private native nativeGetState(JJ)I
.end method
.method private native nativeGetTimestamp(JJ)J
.end method
# virtual methods
.method public acquireEnvironmentalHdrCubeMap()[Lcom/google/ar/core/ArImage;
.locals 4
iget-object v0, p0, Lcom/google/ar/core/LightEstimate;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/LightEstimate;->nativeHandle:J
.line 2
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/LightEstimate;->nativeAcquireEnvironmentalHdrCubeMap(JJ)[J
move-result-object v0
.line 3
invoke-direct {p0, v0}, Lcom/google/ar/core/LightEstimate;->convertNativeArImageCubemapToArray([J)[Lcom/google/ar/core/ArImage;
move-result-object v0
return-object v0
.end method
.method public finalize()V
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
iget-wide v0, p0, Lcom/google/ar/core/LightEstimate;->nativeHandle:J
const-wide/16 v2, 0x0
cmp-long v2, v0, v2
if-eqz v2, :cond_0
iget-wide v2, p0, Lcom/google/ar/core/LightEstimate;->nativeSymbolTableHandle:J
.line 1
invoke-static {v2, v3, v0, v1}, Lcom/google/ar/core/LightEstimate;->nativeDestroyLightEstimate(JJ)V
.line 2
:cond_0
invoke-super {p0}, Ljava/lang/Object;->finalize()V
return-void
.end method
.method public getColorCorrection([FI)V
.locals 8
iget-object v0, p0, Lcom/google/ar/core/LightEstimate;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v2, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v4, p0, Lcom/google/ar/core/LightEstimate;->nativeHandle:J
move-object v1, p0
move-object v6, p1
move v7, p2
invoke-direct/range {v1 .. v7}, Lcom/google/ar/core/LightEstimate;->nativeGetColorCorrection(JJ[FI)V
return-void
.end method
.method public getEnvironmentalHdrAmbientSphericalHarmonics()[F
.locals 7
const/16 v0, 0x1b
new-array v0, v0, [F
iget-object v1, p0, Lcom/google/ar/core/LightEstimate;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v2, v1, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v4, p0, Lcom/google/ar/core/LightEstimate;->nativeHandle:J
move-object v1, p0
move-object v6, v0
invoke-direct/range {v1 .. v6}, Lcom/google/ar/core/LightEstimate;->nativeGetEnvironmentalHdrAmbientSphericalHarmonics(JJ[F)V
return-object v0
.end method
.method public getEnvironmentalHdrMainLightDirection()[F
.locals 7
const/4 v0, 0x3
new-array v0, v0, [F
iget-object v1, p0, Lcom/google/ar/core/LightEstimate;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v2, v1, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v4, p0, Lcom/google/ar/core/LightEstimate;->nativeHandle:J
move-object v1, p0
move-object v6, v0
invoke-direct/range {v1 .. v6}, Lcom/google/ar/core/LightEstimate;->nativeGetEnvironmentalHdrMainLightDirection(JJ[F)V
return-object v0
.end method
.method public getEnvironmentalHdrMainLightIntensity()[F
.locals 7
const/4 v0, 0x3
new-array v0, v0, [F
iget-object v1, p0, Lcom/google/ar/core/LightEstimate;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v2, v1, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v4, p0, Lcom/google/ar/core/LightEstimate;->nativeHandle:J
move-object v1, p0
move-object v6, v0
invoke-direct/range {v1 .. v6}, Lcom/google/ar/core/LightEstimate;->nativeGetEnvironmentalHdrMainLightIntensity(JJ[F)V
return-object v0
.end method
.method public getPixelIntensity()F
.locals 4
iget-object v0, p0, Lcom/google/ar/core/LightEstimate;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/LightEstimate;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/LightEstimate;->nativeGetPixelIntensity(JJ)F
move-result v0
return v0
.end method
.method public getState()Lcom/google/ar/core/LightEstimate$State;
.locals 4
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/LightEstimate;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/LightEstimate;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/LightEstimate;->nativeGetState(JJ)I
move-result v0
invoke-static {v0}, Lcom/google/ar/core/LightEstimate$State;->forNumber(I)Lcom/google/ar/core/LightEstimate$State;
move-result-object v0
return-object v0
.end method
.method public getTimestamp()J
.locals 4
iget-object v0, p0, Lcom/google/ar/core/LightEstimate;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/LightEstimate;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/LightEstimate;->nativeGetTimestamp(JJ)J
move-result-wide v0
return-wide v0
.end method

View File

@@ -0,0 +1,200 @@
.class public final enum Lcom/google/ar/core/Plane$Type;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/ar/core/Plane;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "Type"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/ar/core/Plane$Type;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/ar/core/Plane$Type;
.field public static final enum HORIZONTAL_DOWNWARD_FACING:Lcom/google/ar/core/Plane$Type;
.field public static final enum HORIZONTAL_UPWARD_FACING:Lcom/google/ar/core/Plane$Type;
.field public static final enum VERTICAL:Lcom/google/ar/core/Plane$Type;
# instance fields
.field final nativeCode:I
# direct methods
.method private static synthetic $values()[Lcom/google/ar/core/Plane$Type;
.locals 3
sget-object v0, Lcom/google/ar/core/Plane$Type;->HORIZONTAL_UPWARD_FACING:Lcom/google/ar/core/Plane$Type;
sget-object v1, Lcom/google/ar/core/Plane$Type;->HORIZONTAL_DOWNWARD_FACING:Lcom/google/ar/core/Plane$Type;
sget-object v2, Lcom/google/ar/core/Plane$Type;->VERTICAL:Lcom/google/ar/core/Plane$Type;
filled-new-array {v0, v1, v2}, [Lcom/google/ar/core/Plane$Type;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 3
.line 1
new-instance v0, Lcom/google/ar/core/Plane$Type;
const-string v1, "HORIZONTAL_UPWARD_FACING"
const/4 v2, 0x0
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/Plane$Type;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Plane$Type;->HORIZONTAL_UPWARD_FACING:Lcom/google/ar/core/Plane$Type;
new-instance v0, Lcom/google/ar/core/Plane$Type;
const-string v1, "HORIZONTAL_DOWNWARD_FACING"
const/4 v2, 0x1
.line 2
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/Plane$Type;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Plane$Type;->HORIZONTAL_DOWNWARD_FACING:Lcom/google/ar/core/Plane$Type;
new-instance v0, Lcom/google/ar/core/Plane$Type;
const-string v1, "VERTICAL"
const/4 v2, 0x2
.line 3
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/Plane$Type;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Plane$Type;->VERTICAL:Lcom/google/ar/core/Plane$Type;
.line 4
invoke-static {}, Lcom/google/ar/core/Plane$Type;->$values()[Lcom/google/ar/core/Plane$Type;
move-result-object v0
sput-object v0, Lcom/google/ar/core/Plane$Type;->$VALUES:[Lcom/google/ar/core/Plane$Type;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput p3, p0, Lcom/google/ar/core/Plane$Type;->nativeCode:I
return-void
.end method
.method public static forNumber(I)Lcom/google/ar/core/Plane$Type;
.locals 5
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-static {}, Lcom/google/ar/core/Plane$Type;->values()[Lcom/google/ar/core/Plane$Type;
move-result-object v0
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_1
aget-object v3, v0, v2
.line 2
iget v4, v3, Lcom/google/ar/core/Plane$Type;->nativeCode:I
if-ne v4, p0, :cond_0
return-object v3
:cond_0
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
new-instance v0, Lcom/google/ar/core/exceptions/FatalException;
new-instance v1, Ljava/lang/StringBuilder;
.line 3
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Unexpected value for native Plane.Type, value="
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Lcom/google/ar/core/exceptions/FatalException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/ar/core/Plane$Type;
.locals 1
const-class v0, Lcom/google/ar/core/Plane$Type;
.line 1
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/ar/core/Plane$Type;
return-object p0
.end method
.method public static values()[Lcom/google/ar/core/Plane$Type;
.locals 1
sget-object v0, Lcom/google/ar/core/Plane$Type;->$VALUES:[Lcom/google/ar/core/Plane$Type;
.line 1
invoke-virtual {v0}, [Lcom/google/ar/core/Plane$Type;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/ar/core/Plane$Type;
return-object v0
.end method

View File

@@ -0,0 +1,297 @@
.class public Lcom/google/ar/core/Plane;
.super Lcom/google/ar/core/TrackableBase;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/ar/core/Plane$Type;
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 3
const-wide/16 v0, 0x0
const/4 v2, 0x0
.line 1
invoke-direct {p0, v0, v1, v2}, Lcom/google/ar/core/TrackableBase;-><init>(JLcom/google/ar/core/Session;)V
return-void
.end method
.method public constructor <init>(JLcom/google/ar/core/Session;)V
.locals 0
.line 2
invoke-direct {p0, p1, p2, p3}, Lcom/google/ar/core/TrackableBase;-><init>(JLcom/google/ar/core/Session;)V
return-void
.end method
.method private native nativeAcquireSubsumedBy(JJ)J
.end method
.method private native nativeGetCenterPose(JJ)Lcom/google/ar/core/Pose;
.end method
.method private native nativeGetExtentX(JJ)F
.end method
.method private native nativeGetExtentZ(JJ)F
.end method
.method private native nativeGetPolygon(JJ)[F
.end method
.method private native nativeGetType(JJ)I
.end method
.method private native nativeIsPoseInExtents(JJLcom/google/ar/core/Pose;)Z
.end method
.method private native nativeIsPoseInPolygon(JJLcom/google/ar/core/Pose;)Z
.end method
# virtual methods
.method public bridge synthetic createAnchor(Lcom/google/ar/core/Pose;)Lcom/google/ar/core/Anchor;
.locals 0
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-super {p0, p1}, Lcom/google/ar/core/TrackableBase;->createAnchor(Lcom/google/ar/core/Pose;)Lcom/google/ar/core/Anchor;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic equals(Ljava/lang/Object;)Z
.locals 0
.line 1
invoke-super {p0, p1}, Lcom/google/ar/core/TrackableBase;->equals(Ljava/lang/Object;)Z
move-result p1
return p1
.end method
.method public bridge synthetic getAnchors()Ljava/util/Collection;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-super {p0}, Lcom/google/ar/core/TrackableBase;->getAnchors()Ljava/util/Collection;
move-result-object v0
return-object v0
.end method
.method public getCenterPose()Lcom/google/ar/core/Pose;
.locals 4
iget-object v0, p0, Lcom/google/ar/core/TrackableBase;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/TrackableBase;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/Plane;->nativeGetCenterPose(JJ)Lcom/google/ar/core/Pose;
move-result-object v0
return-object v0
.end method
.method public getExtentX()F
.locals 4
iget-object v0, p0, Lcom/google/ar/core/TrackableBase;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/TrackableBase;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/Plane;->nativeGetExtentX(JJ)F
move-result v0
return v0
.end method
.method public getExtentZ()F
.locals 4
iget-object v0, p0, Lcom/google/ar/core/TrackableBase;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/TrackableBase;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/Plane;->nativeGetExtentZ(JJ)F
move-result v0
return v0
.end method
.method public getPolygon()Ljava/nio/FloatBuffer;
.locals 4
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/TrackableBase;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/TrackableBase;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/Plane;->nativeGetPolygon(JJ)[F
move-result-object v0
invoke-static {v0}, Ljava/nio/FloatBuffer;->wrap([F)Ljava/nio/FloatBuffer;
move-result-object v0
return-object v0
.end method
.method public getSubsumedBy()Lcom/google/ar/core/Plane;
.locals 4
.annotation build Landroidx/annotation/Nullable;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/TrackableBase;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/TrackableBase;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/Plane;->nativeAcquireSubsumedBy(JJ)J
move-result-wide v0
const-wide/16 v2, 0x0
cmp-long v2, v0, v2
if-nez v2, :cond_0
const/4 v0, 0x0
return-object v0
:cond_0
new-instance v2, Lcom/google/ar/core/Plane;
iget-object v3, p0, Lcom/google/ar/core/TrackableBase;->session:Lcom/google/ar/core/Session;
invoke-direct {v2, v0, v1, v3}, Lcom/google/ar/core/Plane;-><init>(JLcom/google/ar/core/Session;)V
return-object v2
.end method
.method public bridge synthetic getTrackingState()Lcom/google/ar/core/TrackingState;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-super {p0}, Lcom/google/ar/core/TrackableBase;->getTrackingState()Lcom/google/ar/core/TrackingState;
move-result-object v0
return-object v0
.end method
.method public getType()Lcom/google/ar/core/Plane$Type;
.locals 4
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/TrackableBase;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/TrackableBase;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/Plane;->nativeGetType(JJ)I
move-result v0
invoke-static {v0}, Lcom/google/ar/core/Plane$Type;->forNumber(I)Lcom/google/ar/core/Plane$Type;
move-result-object v0
return-object v0
.end method
.method public bridge synthetic hashCode()I
.locals 1
.line 1
invoke-super {p0}, Lcom/google/ar/core/TrackableBase;->hashCode()I
move-result v0
return v0
.end method
.method public isPoseInExtents(Lcom/google/ar/core/Pose;)Z
.locals 7
iget-object v0, p0, Lcom/google/ar/core/TrackableBase;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v2, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v4, p0, Lcom/google/ar/core/TrackableBase;->nativeHandle:J
move-object v1, p0
move-object v6, p1
invoke-direct/range {v1 .. v6}, Lcom/google/ar/core/Plane;->nativeIsPoseInExtents(JJLcom/google/ar/core/Pose;)Z
move-result p1
return p1
.end method
.method public isPoseInPolygon(Lcom/google/ar/core/Pose;)Z
.locals 7
iget-object v0, p0, Lcom/google/ar/core/TrackableBase;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v2, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v4, p0, Lcom/google/ar/core/TrackableBase;->nativeHandle:J
move-object v1, p0
move-object v6, p1
invoke-direct/range {v1 .. v6}, Lcom/google/ar/core/Plane;->nativeIsPoseInPolygon(JJLcom/google/ar/core/Pose;)Z
move-result p1
return p1
.end method

View File

@@ -0,0 +1,206 @@
.class public final enum Lcom/google/ar/core/PlaybackStatus;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/ar/core/PlaybackStatus;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/ar/core/PlaybackStatus;
.field public static final enum FINISHED:Lcom/google/ar/core/PlaybackStatus;
.field public static final enum IO_ERROR:Lcom/google/ar/core/PlaybackStatus;
.field public static final enum NONE:Lcom/google/ar/core/PlaybackStatus;
.field public static final enum OK:Lcom/google/ar/core/PlaybackStatus;
# instance fields
.field final nativeCode:I
# direct methods
.method private static synthetic $values()[Lcom/google/ar/core/PlaybackStatus;
.locals 4
sget-object v0, Lcom/google/ar/core/PlaybackStatus;->NONE:Lcom/google/ar/core/PlaybackStatus;
sget-object v1, Lcom/google/ar/core/PlaybackStatus;->OK:Lcom/google/ar/core/PlaybackStatus;
sget-object v2, Lcom/google/ar/core/PlaybackStatus;->IO_ERROR:Lcom/google/ar/core/PlaybackStatus;
sget-object v3, Lcom/google/ar/core/PlaybackStatus;->FINISHED:Lcom/google/ar/core/PlaybackStatus;
filled-new-array {v0, v1, v2, v3}, [Lcom/google/ar/core/PlaybackStatus;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 3
.line 1
new-instance v0, Lcom/google/ar/core/PlaybackStatus;
const-string v1, "NONE"
const/4 v2, 0x0
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/PlaybackStatus;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/PlaybackStatus;->NONE:Lcom/google/ar/core/PlaybackStatus;
new-instance v0, Lcom/google/ar/core/PlaybackStatus;
const-string v1, "OK"
const/4 v2, 0x1
.line 2
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/PlaybackStatus;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/PlaybackStatus;->OK:Lcom/google/ar/core/PlaybackStatus;
new-instance v0, Lcom/google/ar/core/PlaybackStatus;
const-string v1, "IO_ERROR"
const/4 v2, 0x2
.line 3
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/PlaybackStatus;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/PlaybackStatus;->IO_ERROR:Lcom/google/ar/core/PlaybackStatus;
new-instance v0, Lcom/google/ar/core/PlaybackStatus;
const-string v1, "FINISHED"
const/4 v2, 0x3
.line 4
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/PlaybackStatus;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/PlaybackStatus;->FINISHED:Lcom/google/ar/core/PlaybackStatus;
.line 5
invoke-static {}, Lcom/google/ar/core/PlaybackStatus;->$values()[Lcom/google/ar/core/PlaybackStatus;
move-result-object v0
sput-object v0, Lcom/google/ar/core/PlaybackStatus;->$VALUES:[Lcom/google/ar/core/PlaybackStatus;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput p3, p0, Lcom/google/ar/core/PlaybackStatus;->nativeCode:I
return-void
.end method
.method public static forNumber(I)Lcom/google/ar/core/PlaybackStatus;
.locals 5
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-static {}, Lcom/google/ar/core/PlaybackStatus;->values()[Lcom/google/ar/core/PlaybackStatus;
move-result-object v0
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_1
aget-object v3, v0, v2
.line 2
iget v4, v3, Lcom/google/ar/core/PlaybackStatus;->nativeCode:I
if-ne v4, p0, :cond_0
return-object v3
:cond_0
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
new-instance v0, Lcom/google/ar/core/exceptions/FatalException;
new-instance v1, Ljava/lang/StringBuilder;
.line 3
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Unexpected value for native PlaybackStatus, value="
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Lcom/google/ar/core/exceptions/FatalException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/ar/core/PlaybackStatus;
.locals 1
const-class v0, Lcom/google/ar/core/PlaybackStatus;
.line 1
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/ar/core/PlaybackStatus;
return-object p0
.end method
.method public static values()[Lcom/google/ar/core/PlaybackStatus;
.locals 1
sget-object v0, Lcom/google/ar/core/PlaybackStatus;->$VALUES:[Lcom/google/ar/core/PlaybackStatus;
.line 1
invoke-virtual {v0}, [Lcom/google/ar/core/PlaybackStatus;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/ar/core/PlaybackStatus;
return-object v0
.end method

View File

@@ -0,0 +1,185 @@
.class public final enum Lcom/google/ar/core/Point$OrientationMode;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/ar/core/Point;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "OrientationMode"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/ar/core/Point$OrientationMode;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/ar/core/Point$OrientationMode;
.field public static final enum ESTIMATED_SURFACE_NORMAL:Lcom/google/ar/core/Point$OrientationMode;
.field public static final enum INITIALIZED_TO_IDENTITY:Lcom/google/ar/core/Point$OrientationMode;
# instance fields
.field private final nativeCode:I
# direct methods
.method private static synthetic $values()[Lcom/google/ar/core/Point$OrientationMode;
.locals 2
sget-object v0, Lcom/google/ar/core/Point$OrientationMode;->INITIALIZED_TO_IDENTITY:Lcom/google/ar/core/Point$OrientationMode;
sget-object v1, Lcom/google/ar/core/Point$OrientationMode;->ESTIMATED_SURFACE_NORMAL:Lcom/google/ar/core/Point$OrientationMode;
filled-new-array {v0, v1}, [Lcom/google/ar/core/Point$OrientationMode;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 3
.line 1
new-instance v0, Lcom/google/ar/core/Point$OrientationMode;
const-string v1, "INITIALIZED_TO_IDENTITY"
const/4 v2, 0x0
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/Point$OrientationMode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Point$OrientationMode;->INITIALIZED_TO_IDENTITY:Lcom/google/ar/core/Point$OrientationMode;
new-instance v0, Lcom/google/ar/core/Point$OrientationMode;
const-string v1, "ESTIMATED_SURFACE_NORMAL"
const/4 v2, 0x1
.line 2
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/Point$OrientationMode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Point$OrientationMode;->ESTIMATED_SURFACE_NORMAL:Lcom/google/ar/core/Point$OrientationMode;
.line 3
invoke-static {}, Lcom/google/ar/core/Point$OrientationMode;->$values()[Lcom/google/ar/core/Point$OrientationMode;
move-result-object v0
sput-object v0, Lcom/google/ar/core/Point$OrientationMode;->$VALUES:[Lcom/google/ar/core/Point$OrientationMode;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput p3, p0, Lcom/google/ar/core/Point$OrientationMode;->nativeCode:I
return-void
.end method
.method public static forNumber(I)Lcom/google/ar/core/Point$OrientationMode;
.locals 5
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-static {}, Lcom/google/ar/core/Point$OrientationMode;->values()[Lcom/google/ar/core/Point$OrientationMode;
move-result-object v0
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_1
aget-object v3, v0, v2
.line 2
iget v4, v3, Lcom/google/ar/core/Point$OrientationMode;->nativeCode:I
if-ne v4, p0, :cond_0
return-object v3
:cond_0
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
new-instance v0, Lcom/google/ar/core/exceptions/FatalException;
new-instance v1, Ljava/lang/StringBuilder;
.line 3
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Unexpected value for native Point Orientation Mode, value="
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Lcom/google/ar/core/exceptions/FatalException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/ar/core/Point$OrientationMode;
.locals 1
const-class v0, Lcom/google/ar/core/Point$OrientationMode;
.line 1
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/ar/core/Point$OrientationMode;
return-object p0
.end method
.method public static values()[Lcom/google/ar/core/Point$OrientationMode;
.locals 1
sget-object v0, Lcom/google/ar/core/Point$OrientationMode;->$VALUES:[Lcom/google/ar/core/Point$OrientationMode;
.line 1
invoke-virtual {v0}, [Lcom/google/ar/core/Point$OrientationMode;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/ar/core/Point$OrientationMode;
return-object v0
.end method

View File

@@ -0,0 +1,146 @@
.class public Lcom/google/ar/core/Point;
.super Lcom/google/ar/core/TrackableBase;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/ar/core/Point$OrientationMode;
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 3
const-wide/16 v0, 0x0
const/4 v2, 0x0
.line 1
invoke-direct {p0, v0, v1, v2}, Lcom/google/ar/core/TrackableBase;-><init>(JLcom/google/ar/core/Session;)V
return-void
.end method
.method public constructor <init>(JLcom/google/ar/core/Session;)V
.locals 0
.line 2
invoke-direct {p0, p1, p2, p3}, Lcom/google/ar/core/TrackableBase;-><init>(JLcom/google/ar/core/Session;)V
return-void
.end method
.method private native nativeGetOrientationMode(JJ)I
.end method
.method private native nativeGetPose(JJ)Lcom/google/ar/core/Pose;
.end method
# virtual methods
.method public bridge synthetic createAnchor(Lcom/google/ar/core/Pose;)Lcom/google/ar/core/Anchor;
.locals 0
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-super {p0, p1}, Lcom/google/ar/core/TrackableBase;->createAnchor(Lcom/google/ar/core/Pose;)Lcom/google/ar/core/Anchor;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic equals(Ljava/lang/Object;)Z
.locals 0
.line 1
invoke-super {p0, p1}, Lcom/google/ar/core/TrackableBase;->equals(Ljava/lang/Object;)Z
move-result p1
return p1
.end method
.method public bridge synthetic getAnchors()Ljava/util/Collection;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-super {p0}, Lcom/google/ar/core/TrackableBase;->getAnchors()Ljava/util/Collection;
move-result-object v0
return-object v0
.end method
.method public getOrientationMode()Lcom/google/ar/core/Point$OrientationMode;
.locals 4
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/TrackableBase;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/TrackableBase;->nativeHandle:J
.line 2
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/Point;->nativeGetOrientationMode(JJ)I
move-result v0
.line 1
invoke-static {v0}, Lcom/google/ar/core/Point$OrientationMode;->forNumber(I)Lcom/google/ar/core/Point$OrientationMode;
move-result-object v0
return-object v0
.end method
.method public getPose()Lcom/google/ar/core/Pose;
.locals 4
iget-object v0, p0, Lcom/google/ar/core/TrackableBase;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/TrackableBase;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/Point;->nativeGetPose(JJ)Lcom/google/ar/core/Pose;
move-result-object v0
return-object v0
.end method
.method public bridge synthetic getTrackingState()Lcom/google/ar/core/TrackingState;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-super {p0}, Lcom/google/ar/core/TrackableBase;->getTrackingState()Lcom/google/ar/core/TrackingState;
move-result-object v0
return-object v0
.end method
.method public bridge synthetic hashCode()I
.locals 1
.line 1
invoke-super {p0}, Lcom/google/ar/core/TrackableBase;->hashCode()I
move-result v0
return v0
.end method

View File

@@ -0,0 +1,235 @@
.class public Lcom/google/ar/core/PointCloud;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/io/Closeable;
# instance fields
.field private nativeHandle:J
.field private final nativeSymbolTableHandle:J
.field private final session:Lcom/google/ar/core/Session;
# direct methods
.method public constructor <init>()V
.locals 3
.line 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const-wide/16 v0, 0x0
iput-wide v0, p0, Lcom/google/ar/core/PointCloud;->nativeHandle:J
const/4 v2, 0x0
iput-object v2, p0, Lcom/google/ar/core/PointCloud;->session:Lcom/google/ar/core/Session;
iput-wide v0, p0, Lcom/google/ar/core/PointCloud;->nativeSymbolTableHandle:J
return-void
.end method
.method public constructor <init>(Lcom/google/ar/core/Session;J)V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/ar/core/PointCloud;->session:Lcom/google/ar/core/Session;
iput-wide p2, p0, Lcom/google/ar/core/PointCloud;->nativeHandle:J
iget-wide p1, p1, Lcom/google/ar/core/Session;->nativeSymbolTableHandle:J
iput-wide p1, p0, Lcom/google/ar/core/PointCloud;->nativeSymbolTableHandle:J
return-void
.end method
.method private native nativeGetData(JJ)Ljava/nio/ByteBuffer;
.end method
.method private native nativeGetIds(JJ)Ljava/nio/ByteBuffer;
.end method
.method private native nativeGetTimestamp(JJ)J
.end method
.method private native nativeReleasePointCloud(JJ)V
.end method
# virtual methods
.method public close()V
.locals 0
.line 1
invoke-virtual {p0}, Lcom/google/ar/core/PointCloud;->release()V
return-void
.end method
.method public finalize()V
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
iget-wide v0, p0, Lcom/google/ar/core/PointCloud;->nativeHandle:J
const-wide/16 v2, 0x0
cmp-long v2, v0, v2
if-eqz v2, :cond_0
iget-wide v2, p0, Lcom/google/ar/core/PointCloud;->nativeSymbolTableHandle:J
.line 1
invoke-direct {p0, v2, v3, v0, v1}, Lcom/google/ar/core/PointCloud;->nativeReleasePointCloud(JJ)V
.line 2
:cond_0
invoke-super {p0}, Ljava/lang/Object;->finalize()V
return-void
.end method
.method public getIds()Ljava/nio/IntBuffer;
.locals 4
iget-wide v0, p0, Lcom/google/ar/core/PointCloud;->nativeHandle:J
const-wide/16 v2, 0x0
cmp-long v2, v0, v2
if-eqz v2, :cond_0
iget-object v2, p0, Lcom/google/ar/core/PointCloud;->session:Lcom/google/ar/core/Session;
.line 2
iget-wide v2, v2, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
.line 3
invoke-direct {p0, v2, v3, v0, v1}, Lcom/google/ar/core/PointCloud;->nativeGetIds(JJ)Ljava/nio/ByteBuffer;
move-result-object v0
.line 2
invoke-static {v0}, Lcom/google/ar/core/Session;->directByteBufferOrDefault(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
move-result-object v0
.line 4
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->asIntBuffer()Ljava/nio/IntBuffer;
move-result-object v0
return-object v0
.line 1
:cond_0
new-instance v0, Lcom/google/ar/core/exceptions/DeadlineExceededException;
invoke-direct {v0}, Lcom/google/ar/core/exceptions/DeadlineExceededException;-><init>()V
throw v0
.end method
.method public getPoints()Ljava/nio/FloatBuffer;
.locals 4
iget-wide v0, p0, Lcom/google/ar/core/PointCloud;->nativeHandle:J
const-wide/16 v2, 0x0
cmp-long v2, v0, v2
if-eqz v2, :cond_0
iget-object v2, p0, Lcom/google/ar/core/PointCloud;->session:Lcom/google/ar/core/Session;
.line 2
iget-wide v2, v2, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
.line 3
invoke-direct {p0, v2, v3, v0, v1}, Lcom/google/ar/core/PointCloud;->nativeGetData(JJ)Ljava/nio/ByteBuffer;
move-result-object v0
.line 2
invoke-static {v0}, Lcom/google/ar/core/Session;->directByteBufferOrDefault(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
move-result-object v0
.line 4
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->asFloatBuffer()Ljava/nio/FloatBuffer;
move-result-object v0
return-object v0
.line 1
:cond_0
new-instance v0, Lcom/google/ar/core/exceptions/DeadlineExceededException;
invoke-direct {v0}, Lcom/google/ar/core/exceptions/DeadlineExceededException;-><init>()V
throw v0
.end method
.method public getTimestamp()J
.locals 4
iget-wide v0, p0, Lcom/google/ar/core/PointCloud;->nativeHandle:J
const-wide/16 v2, 0x0
cmp-long v2, v0, v2
if-eqz v2, :cond_0
iget-object v2, p0, Lcom/google/ar/core/PointCloud;->session:Lcom/google/ar/core/Session;
.line 2
iget-wide v2, v2, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
invoke-direct {p0, v2, v3, v0, v1}, Lcom/google/ar/core/PointCloud;->nativeGetTimestamp(JJ)J
move-result-wide v0
return-wide v0
.line 1
:cond_0
new-instance v0, Lcom/google/ar/core/exceptions/DeadlineExceededException;
invoke-direct {v0}, Lcom/google/ar/core/exceptions/DeadlineExceededException;-><init>()V
throw v0
.end method
.method public release()V
.locals 4
iget-wide v0, p0, Lcom/google/ar/core/PointCloud;->nativeSymbolTableHandle:J
iget-wide v2, p0, Lcom/google/ar/core/PointCloud;->nativeHandle:J
.line 1
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/PointCloud;->nativeReleasePointCloud(JJ)V
const-wide/16 v0, 0x0
iput-wide v0, p0, Lcom/google/ar/core/PointCloud;->nativeHandle:J
return-void
.end method

View File

@@ -0,0 +1,960 @@
.class public Lcom/google/ar/core/Pose;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation build Lcom/google/ar/core/annotations/UsedByNative;
value = "session_jni_wrapper.cc"
.end annotation
# static fields
.field public static final IDENTITY:Lcom/google/ar/core/Pose;
# instance fields
.field private final quaternion:Lcom/google/ar/core/Quaternion;
.annotation build Lcom/google/ar/core/annotations/UsedByNative;
value = "session_jni_wrapper.cc"
.end annotation
.end field
.field private final translation:[F
.annotation build Lcom/google/ar/core/annotations/UsedByNative;
value = "session_jni_wrapper.cc"
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.locals 3
.line 1
new-instance v0, Lcom/google/ar/core/Pose;
const/4 v1, 0x3
new-array v1, v1, [F
fill-array-data v1, :array_0
sget-object v2, Lcom/google/ar/core/Quaternion;->a:Lcom/google/ar/core/Quaternion;
invoke-direct {v0, v1, v2}, Lcom/google/ar/core/Pose;-><init>([FLcom/google/ar/core/Quaternion;)V
sput-object v0, Lcom/google/ar/core/Pose;->IDENTITY:Lcom/google/ar/core/Pose;
return-void
:array_0
.array-data 4
0x0
0x0
0x0
.end array-data
.end method
.method private constructor <init>(FFFFFFF)V
.locals 1
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance v0, Lcom/google/ar/core/Quaternion;
invoke-direct {v0, p4, p5, p6, p7}, Lcom/google/ar/core/Quaternion;-><init>(FFFF)V
iput-object v0, p0, Lcom/google/ar/core/Pose;->quaternion:Lcom/google/ar/core/Quaternion;
const/4 p4, 0x3
new-array p4, p4, [F
const/4 p5, 0x0
aput p1, p4, p5
const/4 p1, 0x1
aput p2, p4, p1
const/4 p1, 0x2
aput p3, p4, p1
iput-object p4, p0, Lcom/google/ar/core/Pose;->translation:[F
return-void
.end method
.method private constructor <init>([FLcom/google/ar/core/Quaternion;)V
.locals 0
.annotation build Lcom/google/ar/core/annotations/UsedByNative;
value = "session_jni_wrapper.cc"
.end annotation
.line 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/ar/core/Pose;->translation:[F
iput-object p2, p0, Lcom/google/ar/core/Pose;->quaternion:Lcom/google/ar/core/Quaternion;
return-void
.end method
.method public constructor <init>([F[F)V
.locals 9
const/4 v0, 0x0
.line 2
aget v2, p1, v0
const/4 v1, 0x1
aget v3, p1, v1
const/4 v4, 0x2
aget p1, p1, v4
aget v5, p2, v0
aget v6, p2, v1
aget v7, p2, v4
const/4 v0, 0x3
aget v8, p2, v0
move-object v1, p0
move v4, p1
invoke-direct/range {v1 .. v8}, Lcom/google/ar/core/Pose;-><init>(FFFFFFF)V
return-void
.end method
.method public static makeInterpolated(Lcom/google/ar/core/Pose;Lcom/google/ar/core/Pose;F)Lcom/google/ar/core/Pose;
.locals 6
.annotation build Landroidx/annotation/NonNull;
.end annotation
const/4 v0, 0x0
cmpl-float v0, p2, v0
if-nez v0, :cond_0
return-object p0
:cond_0
const/high16 v0, 0x3f800000 # 1.0f
cmpl-float v1, p2, v0
if-nez v1, :cond_1
return-object p1
:cond_1
const/4 v1, 0x3
new-array v2, v1, [F
const/4 v3, 0x0
:goto_0
if-ge v3, v1, :cond_2
.line 1
iget-object v4, p0, Lcom/google/ar/core/Pose;->translation:[F
aget v4, v4, v3
sub-float v5, v0, p2
mul-float/2addr v4, v5
iget-object v5, p1, Lcom/google/ar/core/Pose;->translation:[F
aget v5, v5, v3
mul-float/2addr v5, p2
add-float/2addr v4, v5
aput v4, v2, v3
add-int/lit8 v3, v3, 0x1
goto :goto_0
.line 2
:cond_2
iget-object p0, p0, Lcom/google/ar/core/Pose;->quaternion:Lcom/google/ar/core/Quaternion;
iget-object p1, p1, Lcom/google/ar/core/Pose;->quaternion:Lcom/google/ar/core/Quaternion;
invoke-static {p0, p1, p2}, Lcom/google/ar/core/Quaternion;->g(Lcom/google/ar/core/Quaternion;Lcom/google/ar/core/Quaternion;F)Lcom/google/ar/core/Quaternion;
move-result-object p0
new-instance p1, Lcom/google/ar/core/Pose;
invoke-direct {p1, v2, p0}, Lcom/google/ar/core/Pose;-><init>([FLcom/google/ar/core/Quaternion;)V
return-object p1
.end method
.method public static makeRotation(FFFF)Lcom/google/ar/core/Pose;
.locals 3
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
new-instance v0, Lcom/google/ar/core/Pose;
sget-object v1, Lcom/google/ar/core/Pose;->IDENTITY:Lcom/google/ar/core/Pose;
iget-object v1, v1, Lcom/google/ar/core/Pose;->translation:[F
new-instance v2, Lcom/google/ar/core/Quaternion;
invoke-direct {v2, p0, p1, p2, p3}, Lcom/google/ar/core/Quaternion;-><init>(FFFF)V
invoke-direct {v0, v1, v2}, Lcom/google/ar/core/Pose;-><init>([FLcom/google/ar/core/Quaternion;)V
return-object v0
.end method
.method public static makeRotation([F)Lcom/google/ar/core/Pose;
.locals 4
.annotation build Landroidx/annotation/NonNull;
.end annotation
const/4 v0, 0x0
.line 2
aget v0, p0, v0
const/4 v1, 0x1
aget v1, p0, v1
const/4 v2, 0x2
aget v2, p0, v2
const/4 v3, 0x3
aget p0, p0, v3
invoke-static {v0, v1, v2, p0}, Lcom/google/ar/core/Pose;->makeRotation(FFFF)Lcom/google/ar/core/Pose;
move-result-object p0
return-object p0
.end method
.method public static makeTranslation(FFF)Lcom/google/ar/core/Pose;
.locals 3
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
new-instance v0, Lcom/google/ar/core/Pose;
const/4 v1, 0x3
new-array v1, v1, [F
const/4 v2, 0x0
aput p0, v1, v2
const/4 p0, 0x1
aput p1, v1, p0
const/4 p0, 0x2
aput p2, v1, p0
sget-object p0, Lcom/google/ar/core/Pose;->IDENTITY:Lcom/google/ar/core/Pose;
iget-object p0, p0, Lcom/google/ar/core/Pose;->quaternion:Lcom/google/ar/core/Quaternion;
invoke-direct {v0, v1, p0}, Lcom/google/ar/core/Pose;-><init>([FLcom/google/ar/core/Quaternion;)V
return-object v0
.end method
.method public static makeTranslation([F)Lcom/google/ar/core/Pose;
.locals 3
.annotation build Landroidx/annotation/NonNull;
.end annotation
const/4 v0, 0x0
.line 2
aget v0, p0, v0
const/4 v1, 0x1
aget v1, p0, v1
const/4 v2, 0x2
aget p0, p0, v2
invoke-static {v0, v1, p0}, Lcom/google/ar/core/Pose;->makeTranslation(FFF)Lcom/google/ar/core/Pose;
move-result-object p0
return-object p0
.end method
# virtual methods
.method public compose(Lcom/google/ar/core/Pose;)Lcom/google/ar/core/Pose;
.locals 5
.annotation build Landroidx/annotation/NonNull;
.end annotation
const/4 v0, 0x3
new-array v0, v0, [F
iget-object v1, p0, Lcom/google/ar/core/Pose;->quaternion:Lcom/google/ar/core/Quaternion;
.line 1
iget-object v2, p1, Lcom/google/ar/core/Pose;->translation:[F
const/4 v3, 0x0
invoke-static {v1, v2, v3, v0, v3}, Lcom/google/ar/core/Quaternion;->i(Lcom/google/ar/core/Quaternion;[FI[FI)V
aget v1, v0, v3
iget-object v2, p0, Lcom/google/ar/core/Pose;->translation:[F
.line 2
aget v4, v2, v3
add-float/2addr v1, v4
aput v1, v0, v3
const/4 v1, 0x1
aget v3, v0, v1
.line 3
aget v4, v2, v1
add-float/2addr v3, v4
aput v3, v0, v1
const/4 v1, 0x2
aget v3, v0, v1
.line 4
aget v2, v2, v1
add-float/2addr v3, v2
aput v3, v0, v1
new-instance v1, Lcom/google/ar/core/Pose;
iget-object v2, p0, Lcom/google/ar/core/Pose;->quaternion:Lcom/google/ar/core/Quaternion;
.line 5
iget-object p1, p1, Lcom/google/ar/core/Pose;->quaternion:Lcom/google/ar/core/Quaternion;
invoke-virtual {v2, p1}, Lcom/google/ar/core/Quaternion;->e(Lcom/google/ar/core/Quaternion;)Lcom/google/ar/core/Quaternion;
move-result-object p1
invoke-direct {v1, v0, p1}, Lcom/google/ar/core/Pose;-><init>([FLcom/google/ar/core/Quaternion;)V
return-object v1
.end method
.method public extractRotation()Lcom/google/ar/core/Pose;
.locals 3
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
new-instance v0, Lcom/google/ar/core/Pose;
sget-object v1, Lcom/google/ar/core/Pose;->IDENTITY:Lcom/google/ar/core/Pose;
iget-object v1, v1, Lcom/google/ar/core/Pose;->translation:[F
iget-object v2, p0, Lcom/google/ar/core/Pose;->quaternion:Lcom/google/ar/core/Quaternion;
invoke-direct {v0, v1, v2}, Lcom/google/ar/core/Pose;-><init>([FLcom/google/ar/core/Quaternion;)V
return-object v0
.end method
.method public extractTranslation()Lcom/google/ar/core/Pose;
.locals 3
.line 1
new-instance v0, Lcom/google/ar/core/Pose;
iget-object v1, p0, Lcom/google/ar/core/Pose;->translation:[F
sget-object v2, Lcom/google/ar/core/Pose;->IDENTITY:Lcom/google/ar/core/Pose;
iget-object v2, v2, Lcom/google/ar/core/Pose;->quaternion:Lcom/google/ar/core/Quaternion;
invoke-direct {v0, v1, v2}, Lcom/google/ar/core/Pose;-><init>([FLcom/google/ar/core/Quaternion;)V
return-object v0
.end method
.method public getQuaternion()Lcom/google/ar/core/Quaternion;
.locals 1
iget-object v0, p0, Lcom/google/ar/core/Pose;->quaternion:Lcom/google/ar/core/Quaternion;
return-object v0
.end method
.method public getRotationQuaternion([FI)V
.locals 1
iget-object v0, p0, Lcom/google/ar/core/Pose;->quaternion:Lcom/google/ar/core/Quaternion;
.line 2
invoke-virtual {v0, p1, p2}, Lcom/google/ar/core/Quaternion;->h([FI)V
return-void
.end method
.method public getRotationQuaternion()[F
.locals 2
const/4 v0, 0x4
new-array v0, v0, [F
const/4 v1, 0x0
.line 1
invoke-virtual {p0, v0, v1}, Lcom/google/ar/core/Pose;->getRotationQuaternion([FI)V
return-object v0
.end method
.method public getTransformedAxis(IF[FI)V
.locals 2
iget-object v0, p0, Lcom/google/ar/core/Pose;->quaternion:Lcom/google/ar/core/Quaternion;
const/4 v1, 0x3
new-array v1, v1, [F
fill-array-data v1, :array_0
.line 2
aput p2, v1, p1
const/4 p1, 0x0
.line 3
invoke-static {v0, v1, p1, p3, p4}, Lcom/google/ar/core/Quaternion;->i(Lcom/google/ar/core/Quaternion;[FI[FI)V
return-void
nop
:array_0
.array-data 4
0x0
0x0
0x0
.end array-data
.end method
.method public getTransformedAxis(IF)[F
.locals 2
const/4 v0, 0x3
new-array v0, v0, [F
const/4 v1, 0x0
.line 1
invoke-virtual {p0, p1, p2, v0, v1}, Lcom/google/ar/core/Pose;->getTransformedAxis(IF[FI)V
return-object v0
.end method
.method public getTranslation([FI)V
.locals 3
iget-object v0, p0, Lcom/google/ar/core/Pose;->translation:[F
const/4 v1, 0x0
const/4 v2, 0x3
.line 2
invoke-static {v0, v1, p1, p2, v2}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
return-void
.end method
.method public getTranslation()[F
.locals 2
const/4 v0, 0x3
new-array v0, v0, [F
const/4 v1, 0x0
.line 1
invoke-virtual {p0, v0, v1}, Lcom/google/ar/core/Pose;->getTranslation([FI)V
return-object v0
.end method
.method public getXAxis()[F
.locals 2
const/4 v0, 0x0
const/high16 v1, 0x3f800000 # 1.0f
.line 1
invoke-virtual {p0, v0, v1}, Lcom/google/ar/core/Pose;->getTransformedAxis(IF)[F
move-result-object v0
return-object v0
.end method
.method public getYAxis()[F
.locals 2
const/4 v0, 0x1
const/high16 v1, 0x3f800000 # 1.0f
.line 1
invoke-virtual {p0, v0, v1}, Lcom/google/ar/core/Pose;->getTransformedAxis(IF)[F
move-result-object v0
return-object v0
.end method
.method public getZAxis()[F
.locals 2
const/4 v0, 0x2
const/high16 v1, 0x3f800000 # 1.0f
.line 1
invoke-virtual {p0, v0, v1}, Lcom/google/ar/core/Pose;->getTransformedAxis(IF)[F
move-result-object v0
return-object v0
.end method
.method public inverse()Lcom/google/ar/core/Pose;
.locals 4
.annotation build Landroidx/annotation/NonNull;
.end annotation
const/4 v0, 0x3
new-array v0, v0, [F
iget-object v1, p0, Lcom/google/ar/core/Pose;->quaternion:Lcom/google/ar/core/Quaternion;
.line 1
invoke-virtual {v1}, Lcom/google/ar/core/Quaternion;->f()Lcom/google/ar/core/Quaternion;
move-result-object v1
iget-object v2, p0, Lcom/google/ar/core/Pose;->translation:[F
const/4 v3, 0x0
.line 2
invoke-static {v1, v2, v3, v0, v3}, Lcom/google/ar/core/Quaternion;->i(Lcom/google/ar/core/Quaternion;[FI[FI)V
aget v2, v0, v3
neg-float v2, v2
aput v2, v0, v3
const/4 v2, 0x1
aget v3, v0, v2
neg-float v3, v3
aput v3, v0, v2
const/4 v2, 0x2
aget v3, v0, v2
neg-float v3, v3
aput v3, v0, v2
new-instance v2, Lcom/google/ar/core/Pose;
invoke-direct {v2, v0, v1}, Lcom/google/ar/core/Pose;-><init>([FLcom/google/ar/core/Quaternion;)V
return-object v2
.end method
.method public qw()F
.locals 1
iget-object v0, p0, Lcom/google/ar/core/Pose;->quaternion:Lcom/google/ar/core/Quaternion;
.line 1
invoke-virtual {v0}, Lcom/google/ar/core/Quaternion;->a()F
move-result v0
return v0
.end method
.method public qx()F
.locals 1
iget-object v0, p0, Lcom/google/ar/core/Pose;->quaternion:Lcom/google/ar/core/Quaternion;
.line 1
invoke-virtual {v0}, Lcom/google/ar/core/Quaternion;->b()F
move-result v0
return v0
.end method
.method public qy()F
.locals 1
iget-object v0, p0, Lcom/google/ar/core/Pose;->quaternion:Lcom/google/ar/core/Quaternion;
.line 1
invoke-virtual {v0}, Lcom/google/ar/core/Quaternion;->c()F
move-result v0
return v0
.end method
.method public qz()F
.locals 1
iget-object v0, p0, Lcom/google/ar/core/Pose;->quaternion:Lcom/google/ar/core/Quaternion;
.line 1
invoke-virtual {v0}, Lcom/google/ar/core/Quaternion;->d()F
move-result v0
return v0
.end method
.method public rotateVector([FI[FI)V
.locals 1
iget-object v0, p0, Lcom/google/ar/core/Pose;->quaternion:Lcom/google/ar/core/Quaternion;
.line 2
invoke-static {v0, p1, p2, p3, p4}, Lcom/google/ar/core/Quaternion;->i(Lcom/google/ar/core/Quaternion;[FI[FI)V
return-void
.end method
.method public rotateVector([F)[F
.locals 2
const/4 v0, 0x3
new-array v0, v0, [F
const/4 v1, 0x0
.line 1
invoke-virtual {p0, p1, v1, v0, v1}, Lcom/google/ar/core/Pose;->rotateVector([FI[FI)V
return-object v0
.end method
.method public toMatrix([FI)V
.locals 3
iget-object v0, p0, Lcom/google/ar/core/Pose;->quaternion:Lcom/google/ar/core/Quaternion;
.line 1
invoke-virtual {v0, p1, p2}, Lcom/google/ar/core/Quaternion;->k([FI)V
iget-object v0, p0, Lcom/google/ar/core/Pose;->translation:[F
add-int/lit8 v1, p2, 0xc
const/4 v2, 0x0
.line 2
aget v2, v0, v2
aput v2, p1, v1
add-int/lit8 v1, p2, 0xd
const/4 v2, 0x1
.line 3
aget v2, v0, v2
aput v2, p1, v1
add-int/lit8 v1, p2, 0xe
const/4 v2, 0x2
.line 4
aget v0, v0, v2
aput v0, p1, v1
add-int/lit8 v0, p2, 0x3
const/4 v1, 0x0
.line 5
aput v1, p1, v0
add-int/lit8 v0, p2, 0x7
.line 6
aput v1, p1, v0
add-int/lit8 v0, p2, 0xb
.line 7
aput v1, p1, v0
add-int/lit8 p2, p2, 0xf
const/high16 v0, 0x3f800000 # 1.0f
.line 8
aput v0, p1, p2
return-void
.end method
.method public toString()Ljava/lang/String;
.locals 9
.line 1
sget-object v0, Ljava/util/Locale;->ENGLISH:Ljava/util/Locale;
iget-object v1, p0, Lcom/google/ar/core/Pose;->translation:[F
const/4 v2, 0x0
aget v1, v1, v2
.line 2
invoke-static {v1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
move-result-object v2
iget-object v1, p0, Lcom/google/ar/core/Pose;->translation:[F
const/4 v3, 0x1
aget v1, v1, v3
.line 3
invoke-static {v1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
move-result-object v3
iget-object v1, p0, Lcom/google/ar/core/Pose;->translation:[F
const/4 v4, 0x2
aget v1, v1, v4
.line 4
invoke-static {v1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
move-result-object v4
iget-object v1, p0, Lcom/google/ar/core/Pose;->quaternion:Lcom/google/ar/core/Quaternion;
.line 5
invoke-virtual {v1}, Lcom/google/ar/core/Quaternion;->b()F
move-result v1
invoke-static {v1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
move-result-object v5
iget-object v1, p0, Lcom/google/ar/core/Pose;->quaternion:Lcom/google/ar/core/Quaternion;
.line 6
invoke-virtual {v1}, Lcom/google/ar/core/Quaternion;->c()F
move-result v1
invoke-static {v1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
move-result-object v6
iget-object v1, p0, Lcom/google/ar/core/Pose;->quaternion:Lcom/google/ar/core/Quaternion;
.line 7
invoke-virtual {v1}, Lcom/google/ar/core/Quaternion;->d()F
move-result v1
invoke-static {v1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
move-result-object v7
iget-object v1, p0, Lcom/google/ar/core/Pose;->quaternion:Lcom/google/ar/core/Quaternion;
.line 8
invoke-virtual {v1}, Lcom/google/ar/core/Quaternion;->a()F
move-result v1
invoke-static {v1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
move-result-object v8
filled-new-array/range {v2 .. v8}, [Ljava/lang/Object;
move-result-object v1
const-string v2, "t:[x:%.3f, y:%.3f, z:%.3f], q:[x:%.2f, y:%.2f, z:%.2f, w:%.2f]"
.line 1
invoke-static {v0, v2, v1}, Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public transformPoint([FI[FI)V
.locals 2
.line 2
invoke-virtual {p0, p1, p2, p3, p4}, Lcom/google/ar/core/Pose;->rotateVector([FI[FI)V
const/4 p1, 0x0
:goto_0
const/4 p2, 0x3
if-ge p1, p2, :cond_0
add-int p2, p1, p4
.line 3
aget v0, p3, p2
iget-object v1, p0, Lcom/google/ar/core/Pose;->translation:[F
aget v1, v1, p1
add-float/2addr v0, v1
aput v0, p3, p2
add-int/lit8 p1, p1, 0x1
goto :goto_0
:cond_0
return-void
.end method
.method public transformPoint([F)[F
.locals 2
const/4 v0, 0x3
new-array v0, v0, [F
const/4 v1, 0x0
.line 1
invoke-virtual {p0, p1, v1, v0, v1}, Lcom/google/ar/core/Pose;->transformPoint([FI[FI)V
return-object v0
.end method
.method public tx()F
.locals 2
iget-object v0, p0, Lcom/google/ar/core/Pose;->translation:[F
const/4 v1, 0x0
.line 1
aget v0, v0, v1
return v0
.end method
.method public ty()F
.locals 2
iget-object v0, p0, Lcom/google/ar/core/Pose;->translation:[F
const/4 v1, 0x1
.line 1
aget v0, v0, v1
return v0
.end method
.method public tz()F
.locals 2
iget-object v0, p0, Lcom/google/ar/core/Pose;->translation:[F
const/4 v1, 0x2
.line 1
aget v0, v0, v1
return v0
.end method

View File

@@ -0,0 +1,907 @@
.class Lcom/google/ar/core/Quaternion;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation build Lcom/google/ar/core/annotations/UsedByNative;
value = "session_jni_wrapper.cc"
.end annotation
# static fields
.field public static final a:Lcom/google/ar/core/Quaternion;
# instance fields
.field private w:F
.annotation build Lcom/google/ar/core/annotations/UsedByNative;
value = "session_jni_wrapper.cc"
.end annotation
.end field
.field private x:F
.annotation build Lcom/google/ar/core/annotations/UsedByNative;
value = "session_jni_wrapper.cc"
.end annotation
.end field
.field private y:F
.annotation build Lcom/google/ar/core/annotations/UsedByNative;
value = "session_jni_wrapper.cc"
.end annotation
.end field
.field private z:F
.annotation build Lcom/google/ar/core/annotations/UsedByNative;
value = "session_jni_wrapper.cc"
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.locals 1
.line 1
new-instance v0, Lcom/google/ar/core/Quaternion;
invoke-direct {v0}, Lcom/google/ar/core/Quaternion;-><init>()V
sput-object v0, Lcom/google/ar/core/Quaternion;->a:Lcom/google/ar/core/Quaternion;
return-void
.end method
.method public constructor <init>()V
.locals 2
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput v0, p0, Lcom/google/ar/core/Quaternion;->x:F
iput v0, p0, Lcom/google/ar/core/Quaternion;->y:F
iput v0, p0, Lcom/google/ar/core/Quaternion;->z:F
const/high16 v1, 0x3f800000 # 1.0f
iput v1, p0, Lcom/google/ar/core/Quaternion;->w:F
invoke-virtual {p0, v0, v0, v0, v1}, Lcom/google/ar/core/Quaternion;->j(FFFF)V
return-void
.end method
.method public constructor <init>(FFFF)V
.locals 1
.annotation build Lcom/google/ar/core/annotations/UsedByNative;
value = "session_jni_wrapper.cc"
.end annotation
.line 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput v0, p0, Lcom/google/ar/core/Quaternion;->x:F
iput v0, p0, Lcom/google/ar/core/Quaternion;->y:F
iput v0, p0, Lcom/google/ar/core/Quaternion;->z:F
const/high16 v0, 0x3f800000 # 1.0f
iput v0, p0, Lcom/google/ar/core/Quaternion;->w:F
invoke-virtual {p0, p1, p2, p3, p4}, Lcom/google/ar/core/Quaternion;->j(FFFF)V
return-void
.end method
.method public constructor <init>(Lcom/google/ar/core/Quaternion;)V
.locals 3
.line 3
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput v0, p0, Lcom/google/ar/core/Quaternion;->x:F
iput v0, p0, Lcom/google/ar/core/Quaternion;->y:F
iput v0, p0, Lcom/google/ar/core/Quaternion;->z:F
const/high16 v0, 0x3f800000 # 1.0f
iput v0, p0, Lcom/google/ar/core/Quaternion;->w:F
iget v0, p1, Lcom/google/ar/core/Quaternion;->x:F
iget v1, p1, Lcom/google/ar/core/Quaternion;->y:F
iget v2, p1, Lcom/google/ar/core/Quaternion;->z:F
iget p1, p1, Lcom/google/ar/core/Quaternion;->w:F
invoke-virtual {p0, v0, v1, v2, p1}, Lcom/google/ar/core/Quaternion;->j(FFFF)V
return-void
.end method
.method public static g(Lcom/google/ar/core/Quaternion;Lcom/google/ar/core/Quaternion;F)Lcom/google/ar/core/Quaternion;
.locals 8
.line 1
new-instance v0, Lcom/google/ar/core/Quaternion;
invoke-direct {v0}, Lcom/google/ar/core/Quaternion;-><init>()V
.line 2
iget v1, p0, Lcom/google/ar/core/Quaternion;->x:F
iget v2, p1, Lcom/google/ar/core/Quaternion;->x:F
mul-float/2addr v1, v2
iget v2, p0, Lcom/google/ar/core/Quaternion;->y:F
iget v3, p1, Lcom/google/ar/core/Quaternion;->y:F
mul-float/2addr v2, v3
add-float/2addr v1, v2
iget v2, p0, Lcom/google/ar/core/Quaternion;->z:F
iget v3, p1, Lcom/google/ar/core/Quaternion;->z:F
mul-float/2addr v2, v3
add-float/2addr v1, v2
iget v2, p0, Lcom/google/ar/core/Quaternion;->w:F
iget v3, p1, Lcom/google/ar/core/Quaternion;->w:F
mul-float/2addr v2, v3
add-float/2addr v1, v2
const/4 v2, 0x0
cmpg-float v2, v1, v2
if-gez v2, :cond_0
new-instance v2, Lcom/google/ar/core/Quaternion;
.line 3
invoke-direct {v2, p1}, Lcom/google/ar/core/Quaternion;-><init>(Lcom/google/ar/core/Quaternion;)V
neg-float v1, v1
iget p1, v2, Lcom/google/ar/core/Quaternion;->x:F
neg-float p1, p1
iput p1, v2, Lcom/google/ar/core/Quaternion;->x:F
iget p1, v2, Lcom/google/ar/core/Quaternion;->y:F
neg-float p1, p1
iput p1, v2, Lcom/google/ar/core/Quaternion;->y:F
iget p1, v2, Lcom/google/ar/core/Quaternion;->z:F
neg-float p1, p1
iput p1, v2, Lcom/google/ar/core/Quaternion;->z:F
iget p1, v2, Lcom/google/ar/core/Quaternion;->w:F
neg-float p1, p1
iput p1, v2, Lcom/google/ar/core/Quaternion;->w:F
move-object p1, v2
:cond_0
float-to-double v2, v1
.line 4
invoke-static {v2, v3}, Ljava/lang/Math;->acos(D)D
move-result-wide v2
double-to-float v2, v2
mul-float/2addr v1, v1
const/high16 v3, 0x3f800000 # 1.0f
sub-float v1, v3, v1
float-to-double v4, v1
.line 5
invoke-static {v4, v5}, Ljava/lang/Math;->sqrt(D)D
move-result-wide v4
double-to-float v1, v4
.line 6
invoke-static {v1}, Ljava/lang/Math;->abs(F)F
move-result v4
float-to-double v4, v4
const-wide v6, 0x3f50624dd2f1a9fcL # 0.001
cmpl-double v4, v4, v6
if-lez v4, :cond_1
div-float v1, v3, v1
sub-float/2addr v3, p2
mul-float/2addr v3, v2
float-to-double v3, v3
.line 7
invoke-static {v3, v4}, Ljava/lang/Math;->sin(D)D
move-result-wide v3
double-to-float v3, v3
mul-float/2addr v3, v1
mul-float/2addr p2, v2
float-to-double v4, p2
.line 8
invoke-static {v4, v5}, Ljava/lang/Math;->sin(D)D
move-result-wide v4
double-to-float p2, v4
mul-float/2addr p2, v1
goto :goto_0
:cond_1
sub-float/2addr v3, p2
.line 9
:goto_0
iget v1, p0, Lcom/google/ar/core/Quaternion;->x:F
mul-float/2addr v1, v3
iget v2, p1, Lcom/google/ar/core/Quaternion;->x:F
mul-float/2addr v2, p2
add-float/2addr v1, v2
iput v1, v0, Lcom/google/ar/core/Quaternion;->x:F
.line 10
iget v2, p0, Lcom/google/ar/core/Quaternion;->y:F
mul-float/2addr v2, v3
iget v4, p1, Lcom/google/ar/core/Quaternion;->y:F
mul-float/2addr v4, p2
add-float/2addr v2, v4
iput v2, v0, Lcom/google/ar/core/Quaternion;->y:F
.line 11
iget v4, p0, Lcom/google/ar/core/Quaternion;->z:F
mul-float/2addr v4, v3
iget v5, p1, Lcom/google/ar/core/Quaternion;->z:F
mul-float/2addr v5, p2
add-float/2addr v4, v5
iput v4, v0, Lcom/google/ar/core/Quaternion;->z:F
.line 12
iget p0, p0, Lcom/google/ar/core/Quaternion;->w:F
mul-float/2addr v3, p0
iget p0, p1, Lcom/google/ar/core/Quaternion;->w:F
mul-float/2addr p2, p0
add-float/2addr v3, p2
iput v3, v0, Lcom/google/ar/core/Quaternion;->w:F
mul-float/2addr v1, v1
mul-float/2addr v2, v2
add-float/2addr v1, v2
mul-float/2addr v4, v4
add-float/2addr v1, v4
mul-float/2addr v3, v3
add-float/2addr v1, v3
float-to-double p0, v1
.line 13
invoke-static {p0, p1}, Ljava/lang/Math;->sqrt(D)D
move-result-wide p0
const-wide/high16 v1, 0x3ff0000000000000L # 1.0
div-double/2addr v1, p0
double-to-float p0, v1
iget p1, v0, Lcom/google/ar/core/Quaternion;->x:F
mul-float/2addr p1, p0
iput p1, v0, Lcom/google/ar/core/Quaternion;->x:F
iget p1, v0, Lcom/google/ar/core/Quaternion;->y:F
mul-float/2addr p1, p0
iput p1, v0, Lcom/google/ar/core/Quaternion;->y:F
iget p1, v0, Lcom/google/ar/core/Quaternion;->z:F
mul-float/2addr p1, p0
iput p1, v0, Lcom/google/ar/core/Quaternion;->z:F
iget p1, v0, Lcom/google/ar/core/Quaternion;->w:F
mul-float/2addr p1, p0
iput p1, v0, Lcom/google/ar/core/Quaternion;->w:F
return-object v0
.end method
.method public static i(Lcom/google/ar/core/Quaternion;[FI[FI)V
.locals 8
.line 1
aget v0, p1, p2
add-int/lit8 v1, p2, 0x1
.line 2
aget v1, p1, v1
add-int/lit8 p2, p2, 0x2
.line 3
aget p1, p1, p2
iget p2, p0, Lcom/google/ar/core/Quaternion;->x:F
iget v2, p0, Lcom/google/ar/core/Quaternion;->y:F
iget v3, p0, Lcom/google/ar/core/Quaternion;->z:F
iget p0, p0, Lcom/google/ar/core/Quaternion;->w:F
mul-float v4, p0, v0
mul-float v5, v2, p1
add-float/2addr v4, v5
mul-float v5, v3, v1
sub-float/2addr v4, v5
mul-float v5, p0, v1
mul-float v6, v3, v0
add-float/2addr v5, v6
mul-float v6, p2, p1
sub-float/2addr v5, v6
mul-float v6, p0, p1
mul-float v7, p2, v1
add-float/2addr v6, v7
mul-float v7, v2, v0
sub-float/2addr v6, v7
neg-float p2, p2
mul-float/2addr v0, p2
mul-float/2addr v1, v2
sub-float/2addr v0, v1
mul-float/2addr p1, v3
sub-float/2addr v0, p1
neg-float p1, v3
neg-float v1, v2
mul-float v2, v4, p0
mul-float v3, v0, p2
add-float/2addr v2, v3
mul-float v3, v5, p1
add-float/2addr v2, v3
mul-float v3, v6, v1
sub-float/2addr v2, v3
.line 4
aput v2, p3, p4
add-int/lit8 v2, p4, 0x1
mul-float v3, v5, p0
mul-float v7, v0, v1
add-float/2addr v3, v7
mul-float v7, v6, p2
add-float/2addr v3, v7
mul-float v7, v4, p1
sub-float/2addr v3, v7
.line 5
aput v3, p3, v2
add-int/lit8 p4, p4, 0x2
mul-float/2addr v6, p0
mul-float/2addr v0, p1
add-float/2addr v6, v0
mul-float/2addr v4, v1
add-float/2addr v6, v4
mul-float/2addr v5, p2
sub-float/2addr v6, v5
.line 6
aput v6, p3, p4
return-void
.end method
# virtual methods
.method public final a()F
.locals 1
iget v0, p0, Lcom/google/ar/core/Quaternion;->w:F
return v0
.end method
.method public final b()F
.locals 1
iget v0, p0, Lcom/google/ar/core/Quaternion;->x:F
return v0
.end method
.method public final c()F
.locals 1
iget v0, p0, Lcom/google/ar/core/Quaternion;->y:F
return v0
.end method
.method public final d()F
.locals 1
iget v0, p0, Lcom/google/ar/core/Quaternion;->z:F
return v0
.end method
.method public final e(Lcom/google/ar/core/Quaternion;)Lcom/google/ar/core/Quaternion;
.locals 11
.line 1
new-instance v0, Lcom/google/ar/core/Quaternion;
invoke-direct {v0}, Lcom/google/ar/core/Quaternion;-><init>()V
iget v1, p0, Lcom/google/ar/core/Quaternion;->x:F
.line 2
iget v2, p1, Lcom/google/ar/core/Quaternion;->w:F
iget v3, p0, Lcom/google/ar/core/Quaternion;->y:F
iget v4, p1, Lcom/google/ar/core/Quaternion;->z:F
iget v5, p0, Lcom/google/ar/core/Quaternion;->z:F
iget v6, p1, Lcom/google/ar/core/Quaternion;->y:F
iget v7, p0, Lcom/google/ar/core/Quaternion;->w:F
mul-float/2addr v1, v2
mul-float v8, v3, v4
add-float/2addr v1, v8
mul-float v8, v5, v6
sub-float/2addr v1, v8
iget v8, p1, Lcom/google/ar/core/Quaternion;->x:F
mul-float/2addr v8, v7
add-float/2addr v1, v8
iput v1, v0, Lcom/google/ar/core/Quaternion;->x:F
iget v1, p0, Lcom/google/ar/core/Quaternion;->x:F
neg-float v8, v1
.line 3
iget v9, p1, Lcom/google/ar/core/Quaternion;->x:F
mul-float v10, v8, v4
mul-float/2addr v3, v2
add-float/2addr v10, v3
mul-float v3, v5, v9
add-float/2addr v10, v3
mul-float/2addr v6, v7
add-float/2addr v10, v6
iput v10, v0, Lcom/google/ar/core/Quaternion;->y:F
.line 4
iget v3, p1, Lcom/google/ar/core/Quaternion;->y:F
iget v6, p0, Lcom/google/ar/core/Quaternion;->y:F
mul-float/2addr v1, v3
mul-float v10, v6, v9
sub-float/2addr v1, v10
mul-float/2addr v5, v2
add-float/2addr v1, v5
mul-float/2addr v4, v7
add-float/2addr v1, v4
iput v1, v0, Lcom/google/ar/core/Quaternion;->z:F
mul-float/2addr v8, v9
mul-float/2addr v6, v3
sub-float/2addr v8, v6
iget v1, p0, Lcom/google/ar/core/Quaternion;->z:F
.line 5
iget p1, p1, Lcom/google/ar/core/Quaternion;->z:F
mul-float/2addr v1, p1
sub-float/2addr v8, v1
mul-float/2addr v7, v2
add-float/2addr v8, v7
iput v8, v0, Lcom/google/ar/core/Quaternion;->w:F
return-object v0
.end method
.method public final f()Lcom/google/ar/core/Quaternion;
.locals 5
.line 1
new-instance v0, Lcom/google/ar/core/Quaternion;
iget v1, p0, Lcom/google/ar/core/Quaternion;->x:F
neg-float v1, v1
iget v2, p0, Lcom/google/ar/core/Quaternion;->y:F
neg-float v2, v2
iget v3, p0, Lcom/google/ar/core/Quaternion;->z:F
neg-float v3, v3
iget v4, p0, Lcom/google/ar/core/Quaternion;->w:F
invoke-direct {v0, v1, v2, v3, v4}, Lcom/google/ar/core/Quaternion;-><init>(FFFF)V
return-object v0
.end method
.method public final h([FI)V
.locals 2
iget v0, p0, Lcom/google/ar/core/Quaternion;->x:F
.line 1
aput v0, p1, p2
add-int/lit8 v0, p2, 0x1
iget v1, p0, Lcom/google/ar/core/Quaternion;->y:F
.line 2
aput v1, p1, v0
add-int/lit8 v0, p2, 0x2
iget v1, p0, Lcom/google/ar/core/Quaternion;->z:F
.line 3
aput v1, p1, v0
add-int/lit8 p2, p2, 0x3
iget v0, p0, Lcom/google/ar/core/Quaternion;->w:F
.line 4
aput v0, p1, p2
return-void
.end method
.method public final j(FFFF)V
.locals 0
iput p1, p0, Lcom/google/ar/core/Quaternion;->x:F
iput p2, p0, Lcom/google/ar/core/Quaternion;->y:F
iput p3, p0, Lcom/google/ar/core/Quaternion;->z:F
iput p4, p0, Lcom/google/ar/core/Quaternion;->w:F
return-void
.end method
.method public final k([FI)V
.locals 12
iget v0, p0, Lcom/google/ar/core/Quaternion;->x:F
iget v1, p0, Lcom/google/ar/core/Quaternion;->y:F
iget v2, p0, Lcom/google/ar/core/Quaternion;->z:F
iget v3, p0, Lcom/google/ar/core/Quaternion;->w:F
mul-float v4, v0, v0
mul-float v5, v1, v1
add-float/2addr v4, v5
mul-float v5, v2, v2
add-float/2addr v4, v5
mul-float v5, v3, v3
add-float/2addr v4, v5
const/4 v5, 0x0
cmpl-float v6, v4, v5
if-lez v6, :cond_0
const/high16 v5, 0x40000000 # 2.0f
div-float/2addr v5, v4
:cond_0
mul-float v4, v0, v5
mul-float v6, v1, v5
mul-float/2addr v5, v2
mul-float v7, v3, v4
mul-float v8, v3, v6
mul-float/2addr v3, v5
mul-float/2addr v4, v0
mul-float v9, v0, v6
mul-float/2addr v0, v5
mul-float/2addr v6, v1
mul-float/2addr v1, v5
mul-float/2addr v2, v5
add-float v5, v6, v2
const/high16 v10, 0x3f800000 # 1.0f
sub-float v5, v10, v5
.line 1
aput v5, p1, p2
add-int/lit8 v5, p2, 0x4
sub-float v11, v9, v3
.line 2
aput v11, p1, v5
add-int/lit8 v5, p2, 0x8
add-float v11, v0, v8
.line 3
aput v11, p1, v5
add-int/lit8 v5, p2, 0x1
add-float/2addr v9, v3
.line 4
aput v9, p1, v5
add-int/lit8 v3, p2, 0x5
add-float/2addr v2, v4
sub-float v2, v10, v2
.line 5
aput v2, p1, v3
add-int/lit8 v2, p2, 0x9
sub-float v3, v1, v7
.line 6
aput v3, p1, v2
add-int/lit8 v2, p2, 0x2
sub-float/2addr v0, v8
.line 7
aput v0, p1, v2
add-int/lit8 v0, p2, 0x6
add-float/2addr v1, v7
.line 8
aput v1, p1, v0
add-int/lit8 p2, p2, 0xa
add-float/2addr v4, v6
sub-float/2addr v10, v4
.line 9
aput v10, p1, p2
return-void
.end method
.method public final toString()Ljava/lang/String;
.locals 4
iget v0, p0, Lcom/google/ar/core/Quaternion;->x:F
.line 1
invoke-static {v0}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
move-result-object v0
iget v1, p0, Lcom/google/ar/core/Quaternion;->y:F
invoke-static {v1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
move-result-object v1
iget v2, p0, Lcom/google/ar/core/Quaternion;->z:F
invoke-static {v2}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
move-result-object v2
iget v3, p0, Lcom/google/ar/core/Quaternion;->w:F
invoke-static {v3}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
move-result-object v3
filled-new-array {v0, v1, v2, v3}, [Ljava/lang/Object;
move-result-object v0
const-string v1, "[%.3f, %.3f, %.3f, %.3f]"
invoke-static {v1, v0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method

View File

@@ -0,0 +1,22 @@
.class public final Lcom/google/ar/core/R$id;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/ar/core/R;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "id"
.end annotation
# static fields
.field public static __arcore_cancelButton:I = 0x7f0a0006
.field public static __arcore_continueButton:I = 0x7f0a0007
.field public static __arcore_messageText:I = 0x7f0a0008

View File

@@ -0,0 +1,18 @@
.class public final Lcom/google/ar/core/R$layout;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/ar/core/R;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "layout"
.end annotation
# static fields
.field public static __arcore_education:I = 0x7f0d0000

View File

@@ -0,0 +1,18 @@
.class public final Lcom/google/ar/core/R$raw;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/ar/core/R;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "raw"
.end annotation
# static fields
.field public static keep_arcore:I = 0x7f110006

View File

@@ -0,0 +1,26 @@
.class public final Lcom/google/ar/core/R$string;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/ar/core/R;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "string"
.end annotation
# static fields
.field public static __arcore_cancel:I = 0x7f120012
.field public static __arcore_continue:I = 0x7f120013
.field public static __arcore_install_app:I = 0x7f120014
.field public static __arcore_install_feature:I = 0x7f120015
.field public static __arcore_installing:I = 0x7f120016

View File

@@ -0,0 +1,24 @@
.class public final Lcom/google/ar/core/R;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/ar/core/R$id;,
Lcom/google/ar/core/R$layout;,
Lcom/google/ar/core/R$raw;,
Lcom/google/ar/core/R$string;
}
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method

View File

@@ -0,0 +1,320 @@
.class public Lcom/google/ar/core/RecordingConfig;
.super Ljava/lang/Object;
.source "SourceFile"
# instance fields
.field nativeHandle:J
.field private final nativeSymbolTableHandle:J
.field private final session:Lcom/google/ar/core/Session;
# direct methods
.method public constructor <init>()V
.locals 2
.line 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput-object v0, p0, Lcom/google/ar/core/RecordingConfig;->session:Lcom/google/ar/core/Session;
const-wide/16 v0, 0x0
iput-wide v0, p0, Lcom/google/ar/core/RecordingConfig;->nativeHandle:J
iput-wide v0, p0, Lcom/google/ar/core/RecordingConfig;->nativeSymbolTableHandle:J
return-void
.end method
.method public constructor <init>(Lcom/google/ar/core/Session;)V
.locals 2
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/ar/core/RecordingConfig;->session:Lcom/google/ar/core/Session;
iget-wide v0, p1, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
invoke-static {v0, v1}, Lcom/google/ar/core/RecordingConfig;->nativeCreateRecordingConfig(J)J
move-result-wide v0
iput-wide v0, p0, Lcom/google/ar/core/RecordingConfig;->nativeHandle:J
.line 2
iget-wide v0, p1, Lcom/google/ar/core/Session;->nativeSymbolTableHandle:J
iput-wide v0, p0, Lcom/google/ar/core/RecordingConfig;->nativeSymbolTableHandle:J
return-void
.end method
.method private native nativeAddTrack(JJJ)V
.end method
.method private static native nativeCreateRecordingConfig(J)J
.end method
.method private static native nativeDestroyRecordingConfig(JJ)V
.end method
.method private native nativeGetAutoStopOnPause(JJ)Z
.end method
.method private native nativeGetMp4DatasetFilePath(JJ)Ljava/lang/String;
.end method
.method private native nativeGetMp4DatasetUri(JJ)Ljava/lang/String;
.end method
.method private native nativeGetRecordingRotation(JJ)I
.end method
.method private native nativeSetAutoStopOnPause(JJZ)V
.end method
.method private native nativeSetMp4DatasetFilePath(JJLjava/lang/String;)V
.end method
.method private native nativeSetMp4DatasetUri(JJLjava/lang/String;)V
.end method
.method private native nativeSetRecordingRotation(JJI)V
.end method
# virtual methods
.method public addTrack(Lcom/google/ar/core/Track;)Lcom/google/ar/core/RecordingConfig;
.locals 8
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/RecordingConfig;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v2, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v4, p0, Lcom/google/ar/core/RecordingConfig;->nativeHandle:J
iget-wide v6, p1, Lcom/google/ar/core/Track;->nativeHandle:J
move-object v1, p0
invoke-direct/range {v1 .. v7}, Lcom/google/ar/core/RecordingConfig;->nativeAddTrack(JJJ)V
return-object p0
.end method
.method public finalize()V
.locals 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
iget-wide v0, p0, Lcom/google/ar/core/RecordingConfig;->nativeHandle:J
const-wide/16 v2, 0x0
cmp-long v4, v0, v2
if-eqz v4, :cond_0
iget-wide v4, p0, Lcom/google/ar/core/RecordingConfig;->nativeSymbolTableHandle:J
.line 1
invoke-static {v4, v5, v0, v1}, Lcom/google/ar/core/RecordingConfig;->nativeDestroyRecordingConfig(JJ)V
iput-wide v2, p0, Lcom/google/ar/core/RecordingConfig;->nativeHandle:J
.line 2
:cond_0
invoke-super {p0}, Ljava/lang/Object;->finalize()V
return-void
.end method
.method public getAutoStopOnPause()Z
.locals 4
iget-object v0, p0, Lcom/google/ar/core/RecordingConfig;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/RecordingConfig;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/RecordingConfig;->nativeGetAutoStopOnPause(JJ)Z
move-result v0
return v0
.end method
.method public getMp4DatasetFilePath()Ljava/lang/String;
.locals 4
.annotation build Landroidx/annotation/Nullable;
.end annotation
.annotation runtime Ljava/lang/Deprecated;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/RecordingConfig;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/RecordingConfig;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/RecordingConfig;->nativeGetMp4DatasetFilePath(JJ)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public getMp4DatasetUri()Landroid/net/Uri;
.locals 4
.annotation build Landroidx/annotation/Nullable;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/RecordingConfig;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/RecordingConfig;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/RecordingConfig;->nativeGetMp4DatasetUri(JJ)Ljava/lang/String;
move-result-object v0
if-nez v0, :cond_0
const/4 v0, 0x0
return-object v0
.line 2
:cond_0
invoke-static {v0}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
move-result-object v0
return-object v0
.end method
.method public getRecordingRotation()I
.locals 4
iget-object v0, p0, Lcom/google/ar/core/RecordingConfig;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/RecordingConfig;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/RecordingConfig;->nativeGetRecordingRotation(JJ)I
move-result v0
return v0
.end method
.method public setAutoStopOnPause(Z)Lcom/google/ar/core/RecordingConfig;
.locals 7
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/RecordingConfig;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v2, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v4, p0, Lcom/google/ar/core/RecordingConfig;->nativeHandle:J
move-object v1, p0
move v6, p1
invoke-direct/range {v1 .. v6}, Lcom/google/ar/core/RecordingConfig;->nativeSetAutoStopOnPause(JJZ)V
return-object p0
.end method
.method public setMp4DatasetFilePath(Ljava/lang/String;)Lcom/google/ar/core/RecordingConfig;
.locals 7
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation runtime Ljava/lang/Deprecated;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/RecordingConfig;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v2, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v4, p0, Lcom/google/ar/core/RecordingConfig;->nativeHandle:J
move-object v1, p0
move-object v6, p1
invoke-direct/range {v1 .. v6}, Lcom/google/ar/core/RecordingConfig;->nativeSetMp4DatasetFilePath(JJLjava/lang/String;)V
return-object p0
.end method
.method public setMp4DatasetUri(Landroid/net/Uri;)Lcom/google/ar/core/RecordingConfig;
.locals 7
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/RecordingConfig;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v2, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v4, p0, Lcom/google/ar/core/RecordingConfig;->nativeHandle:J
.line 2
invoke-virtual {p1}, Landroid/net/Uri;->toString()Ljava/lang/String;
move-result-object v6
move-object v1, p0
.line 1
invoke-direct/range {v1 .. v6}, Lcom/google/ar/core/RecordingConfig;->nativeSetMp4DatasetUri(JJLjava/lang/String;)V
return-object p0
.end method
.method public setRecordingRotation(I)Lcom/google/ar/core/RecordingConfig;
.locals 7
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/RecordingConfig;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v2, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v4, p0, Lcom/google/ar/core/RecordingConfig;->nativeHandle:J
move-object v1, p0
move v6, p1
invoke-direct/range {v1 .. v6}, Lcom/google/ar/core/RecordingConfig;->nativeSetRecordingRotation(JJI)V
return-object p0
.end method

View File

@@ -0,0 +1,191 @@
.class public final enum Lcom/google/ar/core/RecordingStatus;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/ar/core/RecordingStatus;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/ar/core/RecordingStatus;
.field public static final enum IO_ERROR:Lcom/google/ar/core/RecordingStatus;
.field public static final enum NONE:Lcom/google/ar/core/RecordingStatus;
.field public static final enum OK:Lcom/google/ar/core/RecordingStatus;
# instance fields
.field final nativeCode:I
# direct methods
.method private static synthetic $values()[Lcom/google/ar/core/RecordingStatus;
.locals 3
sget-object v0, Lcom/google/ar/core/RecordingStatus;->NONE:Lcom/google/ar/core/RecordingStatus;
sget-object v1, Lcom/google/ar/core/RecordingStatus;->OK:Lcom/google/ar/core/RecordingStatus;
sget-object v2, Lcom/google/ar/core/RecordingStatus;->IO_ERROR:Lcom/google/ar/core/RecordingStatus;
filled-new-array {v0, v1, v2}, [Lcom/google/ar/core/RecordingStatus;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 3
.line 1
new-instance v0, Lcom/google/ar/core/RecordingStatus;
const-string v1, "NONE"
const/4 v2, 0x0
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/RecordingStatus;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/RecordingStatus;->NONE:Lcom/google/ar/core/RecordingStatus;
new-instance v0, Lcom/google/ar/core/RecordingStatus;
const-string v1, "OK"
const/4 v2, 0x1
.line 2
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/RecordingStatus;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/RecordingStatus;->OK:Lcom/google/ar/core/RecordingStatus;
new-instance v0, Lcom/google/ar/core/RecordingStatus;
const-string v1, "IO_ERROR"
const/4 v2, 0x2
.line 3
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/RecordingStatus;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/RecordingStatus;->IO_ERROR:Lcom/google/ar/core/RecordingStatus;
.line 4
invoke-static {}, Lcom/google/ar/core/RecordingStatus;->$values()[Lcom/google/ar/core/RecordingStatus;
move-result-object v0
sput-object v0, Lcom/google/ar/core/RecordingStatus;->$VALUES:[Lcom/google/ar/core/RecordingStatus;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput p3, p0, Lcom/google/ar/core/RecordingStatus;->nativeCode:I
return-void
.end method
.method public static forNumber(I)Lcom/google/ar/core/RecordingStatus;
.locals 5
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-static {}, Lcom/google/ar/core/RecordingStatus;->values()[Lcom/google/ar/core/RecordingStatus;
move-result-object v0
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_1
aget-object v3, v0, v2
.line 2
iget v4, v3, Lcom/google/ar/core/RecordingStatus;->nativeCode:I
if-ne v4, p0, :cond_0
return-object v3
:cond_0
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
new-instance v0, Lcom/google/ar/core/exceptions/FatalException;
new-instance v1, Ljava/lang/StringBuilder;
.line 3
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Unexpected value for native RecordingStatus, value="
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Lcom/google/ar/core/exceptions/FatalException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/ar/core/RecordingStatus;
.locals 1
const-class v0, Lcom/google/ar/core/RecordingStatus;
.line 1
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/ar/core/RecordingStatus;
return-object p0
.end method
.method public static values()[Lcom/google/ar/core/RecordingStatus;
.locals 1
sget-object v0, Lcom/google/ar/core/RecordingStatus;->$VALUES:[Lcom/google/ar/core/RecordingStatus;
.line 1
invoke-virtual {v0}, [Lcom/google/ar/core/RecordingStatus;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/ar/core/RecordingStatus;
return-object v0
.end method

View File

@@ -0,0 +1,136 @@
.class public final enum Lcom/google/ar/core/Session$Feature;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/ar/core/Session;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "Feature"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/ar/core/Session$Feature;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/ar/core/Session$Feature;
.field public static final enum FRONT_CAMERA:Lcom/google/ar/core/Session$Feature;
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.end field
.field public static final enum SHARED_CAMERA:Lcom/google/ar/core/Session$Feature;
# instance fields
.field final nativeCode:I
# direct methods
.method private static synthetic $values()[Lcom/google/ar/core/Session$Feature;
.locals 2
sget-object v0, Lcom/google/ar/core/Session$Feature;->FRONT_CAMERA:Lcom/google/ar/core/Session$Feature;
sget-object v1, Lcom/google/ar/core/Session$Feature;->SHARED_CAMERA:Lcom/google/ar/core/Session$Feature;
filled-new-array {v0, v1}, [Lcom/google/ar/core/Session$Feature;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 4
.line 1
new-instance v0, Lcom/google/ar/core/Session$Feature;
const-string v1, "FRONT_CAMERA"
const/4 v2, 0x0
const/4 v3, 0x1
invoke-direct {v0, v1, v2, v3}, Lcom/google/ar/core/Session$Feature;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Session$Feature;->FRONT_CAMERA:Lcom/google/ar/core/Session$Feature;
new-instance v0, Lcom/google/ar/core/Session$Feature;
const-string v1, "SHARED_CAMERA"
const/16 v2, 0x3e8
.line 2
invoke-direct {v0, v1, v3, v2}, Lcom/google/ar/core/Session$Feature;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Session$Feature;->SHARED_CAMERA:Lcom/google/ar/core/Session$Feature;
.line 3
invoke-static {}, Lcom/google/ar/core/Session$Feature;->$values()[Lcom/google/ar/core/Session$Feature;
move-result-object v0
sput-object v0, Lcom/google/ar/core/Session$Feature;->$VALUES:[Lcom/google/ar/core/Session$Feature;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput p3, p0, Lcom/google/ar/core/Session$Feature;->nativeCode:I
return-void
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/ar/core/Session$Feature;
.locals 1
const-class v0, Lcom/google/ar/core/Session$Feature;
.line 1
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/ar/core/Session$Feature;
return-object p0
.end method
.method public static values()[Lcom/google/ar/core/Session$Feature;
.locals 1
sget-object v0, Lcom/google/ar/core/Session$Feature;->$VALUES:[Lcom/google/ar/core/Session$Feature;
.line 1
invoke-virtual {v0}, [Lcom/google/ar/core/Session$Feature;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/ar/core/Session$Feature;
return-object v0
.end method

View File

@@ -0,0 +1,200 @@
.class public final enum Lcom/google/ar/core/Session$FeatureMapQuality;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/ar/core/Session;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "FeatureMapQuality"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/ar/core/Session$FeatureMapQuality;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/ar/core/Session$FeatureMapQuality;
.field public static final enum GOOD:Lcom/google/ar/core/Session$FeatureMapQuality;
.field public static final enum INSUFFICIENT:Lcom/google/ar/core/Session$FeatureMapQuality;
.field public static final enum SUFFICIENT:Lcom/google/ar/core/Session$FeatureMapQuality;
# instance fields
.field final nativeCode:I
# direct methods
.method private static synthetic $values()[Lcom/google/ar/core/Session$FeatureMapQuality;
.locals 3
sget-object v0, Lcom/google/ar/core/Session$FeatureMapQuality;->INSUFFICIENT:Lcom/google/ar/core/Session$FeatureMapQuality;
sget-object v1, Lcom/google/ar/core/Session$FeatureMapQuality;->SUFFICIENT:Lcom/google/ar/core/Session$FeatureMapQuality;
sget-object v2, Lcom/google/ar/core/Session$FeatureMapQuality;->GOOD:Lcom/google/ar/core/Session$FeatureMapQuality;
filled-new-array {v0, v1, v2}, [Lcom/google/ar/core/Session$FeatureMapQuality;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 3
.line 1
new-instance v0, Lcom/google/ar/core/Session$FeatureMapQuality;
const-string v1, "INSUFFICIENT"
const/4 v2, 0x0
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/Session$FeatureMapQuality;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Session$FeatureMapQuality;->INSUFFICIENT:Lcom/google/ar/core/Session$FeatureMapQuality;
new-instance v0, Lcom/google/ar/core/Session$FeatureMapQuality;
const-string v1, "SUFFICIENT"
const/4 v2, 0x1
.line 2
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/Session$FeatureMapQuality;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Session$FeatureMapQuality;->SUFFICIENT:Lcom/google/ar/core/Session$FeatureMapQuality;
new-instance v0, Lcom/google/ar/core/Session$FeatureMapQuality;
const-string v1, "GOOD"
const/4 v2, 0x2
.line 3
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/Session$FeatureMapQuality;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/Session$FeatureMapQuality;->GOOD:Lcom/google/ar/core/Session$FeatureMapQuality;
.line 4
invoke-static {}, Lcom/google/ar/core/Session$FeatureMapQuality;->$values()[Lcom/google/ar/core/Session$FeatureMapQuality;
move-result-object v0
sput-object v0, Lcom/google/ar/core/Session$FeatureMapQuality;->$VALUES:[Lcom/google/ar/core/Session$FeatureMapQuality;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput p3, p0, Lcom/google/ar/core/Session$FeatureMapQuality;->nativeCode:I
return-void
.end method
.method public static forNumber(I)Lcom/google/ar/core/Session$FeatureMapQuality;
.locals 5
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-static {}, Lcom/google/ar/core/Session$FeatureMapQuality;->values()[Lcom/google/ar/core/Session$FeatureMapQuality;
move-result-object v0
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_1
aget-object v3, v0, v2
.line 2
iget v4, v3, Lcom/google/ar/core/Session$FeatureMapQuality;->nativeCode:I
if-ne v4, p0, :cond_0
return-object v3
:cond_0
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
new-instance v0, Lcom/google/ar/core/exceptions/FatalException;
new-instance v1, Ljava/lang/StringBuilder;
.line 3
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Unexpected value for native FeatureMapQuality, value="
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Lcom/google/ar/core/exceptions/FatalException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/ar/core/Session$FeatureMapQuality;
.locals 1
const-class v0, Lcom/google/ar/core/Session$FeatureMapQuality;
.line 1
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/ar/core/Session$FeatureMapQuality;
return-object p0
.end method
.method public static values()[Lcom/google/ar/core/Session$FeatureMapQuality;
.locals 1
sget-object v0, Lcom/google/ar/core/Session$FeatureMapQuality;->$VALUES:[Lcom/google/ar/core/Session$FeatureMapQuality;
.line 1
invoke-virtual {v0}, [Lcom/google/ar/core/Session$FeatureMapQuality;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/ar/core/Session$FeatureMapQuality;
return-object v0
.end method

View File

@@ -0,0 +1,3 @@
.class public final synthetic Lcom/google/ar/core/Session$TrackableType$1-IA;
.super Ljava/lang/Object;
.source "SourceFile"

View File

@@ -0,0 +1,3 @@
.class public final synthetic Lcom/google/ar/core/Session$TrackableType$2-IA;
.super Ljava/lang/Object;
.source "SourceFile"

View File

@@ -0,0 +1,3 @@
.class public final synthetic Lcom/google/ar/core/Session$TrackableType$3-IA;
.super Ljava/lang/Object;
.source "SourceFile"

View File

@@ -0,0 +1,3 @@
.class public final synthetic Lcom/google/ar/core/Session$TrackableType$4-IA;
.super Ljava/lang/Object;
.source "SourceFile"

View File

@@ -0,0 +1,3 @@
.class public final synthetic Lcom/google/ar/core/Session$TrackableType$5-IA;
.super Ljava/lang/Object;
.source "SourceFile"

View File

@@ -0,0 +1,3 @@
.class public final synthetic Lcom/google/ar/core/Session$TrackableType$6-IA;
.super Ljava/lang/Object;
.source "SourceFile"

View File

@@ -0,0 +1,3 @@
.class public final synthetic Lcom/google/ar/core/Session$TrackableType$7-IA;
.super Ljava/lang/Object;
.source "SourceFile"

View File

@@ -0,0 +1,3 @@
.class public final synthetic Lcom/google/ar/core/Session$TrackableType$8-IA;
.super Ljava/lang/Object;
.source "SourceFile"

View File

@@ -0,0 +1,3 @@
.class public final synthetic Lcom/google/ar/core/Session$TrackableType$9-IA;
.super Ljava/lang/Object;
.source "SourceFile"

View File

@@ -0,0 +1,3 @@
.class public final synthetic Lcom/google/ar/core/Session$TrackableType-IA;
.super Ljava/lang/Object;
.source "SourceFile"

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,267 @@
.class final Lcom/google/ar/core/SessionCreateJniHelper;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation build Lcom/google/ar/core/annotations/UsedByNative;
value = "session_create.cc"
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static checkApkSignature(Landroid/content/Context;)Z
.locals 10
.annotation build Lcom/google/ar/core/annotations/UsedByNative;
value = "session_create.cc"
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Landroid/content/pm/PackageManager$NameNotFoundException;
}
.end annotation
const/4 v0, 0x1
.line 1
:try_start_0
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v1
const-string v2, "com.google.ar.core"
const/16 v3, 0x40
.line 2
invoke-virtual {v1, v2, v3}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;
move-result-object v1
:try_end_0
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
new-instance v2, Landroid/content/pm/Signature;
const-string v3, "308203c7308202afa003020102021500dc286b43b4ea12039958a00a6655eb84720e46c9300d06092a864886f70d01010b05003074310b3009060355040613025553311330110603550408130a43616c69666f726e6961311630140603550407130d4d6f756e7461696e205669657731143012060355040a130b476f6f676c6520496e632e3110300e060355040b1307416e64726f69643110300e06035504031307416e64726f6964301e170d3137303830343136353333375a170d3437303830343136353333375a3074310b3009060355040613025553311330110603550408130a43616c69666f726e6961311630140603550407130d4d6f756e7461696e205669657731143012060355040a130b476f6f676c6520496e632e3110300e060355040b1307416e64726f69643110300e06035504031307416e64726f696430820122300d06092a864886f70d01010105000382010f003082010a02820101008998646f47fc333db09644c303104ed183e904e351152aa66a603b77f63389d45d6fcffae3c94fadf1f28038e265d697fea347327f9081a7f0b9074d5b148db5bf357c611a77f87f844a15068818bdcd5b21d187e93fa2551676170eedce04a150c35ec0a791eef507fa9b406573c36f6f207764842e5677e35a281a422659e91e26eb4fecfb053b5c936d0976c37f8757adb57a37953da5844ea350695854d343a61ad341b63a1c425d22855af7ebfee018e1736cee98536be5b9947f288e2a26f99eb9f91b5de93fecc513019d2e90f12b38610d1f02eaa81deca4ce91c19cbce36d6c3025ce2432b3d178616beafaf437c08451bc469c6bc6f4517a714a5b0203010001a350304e300c0603551d13040530030101ff301d0603551d0e0416041419a864c0f2618c67c803a23da909bc70521f269b301f0603551d2304183016801419a864c0f2618c67c803a23da909bc70521f269b300d06092a864886f70d01010b050003820101005403fc56fdefc440376a0337815002b96a15bffc2fe42de6c58f52fae4d80652e3704455b885409eef81ffbb4c44dba104b6b8e24c9e2e0e7a04338ee73baa5b71bfb4488f8e04bef3d0eaf7d43aa42b03b278c33cc1f0dd3802571624baa161d851fab37db4bc92b9094b6885dff62b400ecd81f069d56a1be1db46d8198c50c9628cdb6e38686ef640fd386775f50376f957e24ea45ed1942968f20c82f189607fdb22f11cfdfd0760a77a60ceb3416cfb3f48f13f9f83f3834a01001750a7c78bc1fd81f0b53a7c41dcba9f5a0118259d083c32bb9ebb84d645d6f6b9c31923d8ab70e7f0a25940ecc9f4945144419f86e8c421d3b99774f4b8f3d09262e7"
.line 3
invoke-direct {v2, v3}, Landroid/content/pm/Signature;-><init>(Ljava/lang/String;)V
.line 4
iget-object v1, v1, Landroid/content/pm/PackageInfo;->signatures:[Landroid/content/pm/Signature;
array-length v3, v1
const/4 v4, 0x0
move v5, v4
:goto_0
if-ge v5, v3, :cond_1
aget-object v6, v1, v5
.line 5
invoke-virtual {v6, v2}, Landroid/content/pm/Signature;->equals(Ljava/lang/Object;)Z
move-result v7
if-eqz v7, :cond_0
return v0
.line 6
:cond_0
invoke-virtual {v2}, Landroid/content/pm/Signature;->toCharsString()Ljava/lang/String;
move-result-object v7
.line 7
invoke-virtual {v6}, Landroid/content/pm/Signature;->toCharsString()Ljava/lang/String;
move-result-object v6
new-instance v8, Ljava/lang/StringBuilder;
invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V
const-string v9, "Signature mismatch. Expected \'"
invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v8, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v7, "\' got \'"
invoke-virtual {v8, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v8, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v6, "\'"
invoke-virtual {v8, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v6, "ARCore-SessionCreateJniHelper"
invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v7
.line 8
invoke-static {v6, v7}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
add-int/lit8 v5, v5, 0x1
goto :goto_0
.line 9
:cond_1
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v0
.line 10
invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object p0
const/16 v1, 0x80
invoke-virtual {v0, p0, v1}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;
move-result-object p0
iget-object p0, p0, Landroid/content/pm/ApplicationInfo;->metaData:Landroid/os/Bundle;
const-string v0, "com.google.ar.core.disable_security_check"
.line 11
invoke-virtual {p0, v0, v4}, Landroid/os/BaseBundle;->getBoolean(Ljava/lang/String;Z)Z
move-result p0
return p0
:catch_0
return v0
.end method
.method public static getArCoreApkVersionCode(Landroid/content/Context;)I
.locals 2
.annotation build Lcom/google/ar/core/annotations/UsedByNative;
value = "session_create.cc"
.end annotation
.line 1
:try_start_0
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object p0
const-string v0, "com.google.ar.core"
const/4 v1, 0x0
invoke-virtual {p0, v0, v1}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;
move-result-object p0
.line 2
iget p0, p0, Landroid/content/pm/PackageInfo;->versionCode:I
:try_end_0
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
return p0
:catch_0
move-exception p0
const-string v0, "ARCore-SessionCreateJniHelper"
const-string v1, "Could not load application package metadata"
.line 3
invoke-static {v0, v1, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
const/4 p0, -0x1
return p0
.end method
.method public static getMinApkVersion(Landroid/content/Context;)I
.locals 3
.annotation build Lcom/google/ar/core/annotations/UsedByNative;
value = "session_create.cc"
.end annotation
const-string v0, "com.google.ar.core.min_apk_version"
.line 1
:try_start_0
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v1
.line 2
invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object p0
const/16 v2, 0x80
invoke-virtual {v1, p0, v2}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;
move-result-object p0
iget-object p0, p0, Landroid/content/pm/ApplicationInfo;->metaData:Landroid/os/Bundle;
.line 3
invoke-virtual {p0, v0}, Landroid/os/BaseBundle;->containsKey(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_0
.line 4
invoke-virtual {p0, v0}, Landroid/os/BaseBundle;->getInt(Ljava/lang/String;)I
move-result p0
return p0
:catch_0
move-exception p0
goto :goto_0
:cond_0
new-instance p0, Ljava/lang/RuntimeException;
const-string v0, "Application manifest must contain meta-data com.google.ar.core.min_apk_version"
.line 5
invoke-direct {p0, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
throw p0
:try_end_0
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
:goto_0
new-instance v0, Ljava/lang/RuntimeException;
const-string v1, "Could not load application package metadata"
.line 6
invoke-direct {v0, v1, p0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v0
.end method

View File

@@ -0,0 +1,42 @@
.class public final synthetic Lcom/google/ar/core/SharedCamera$$ExternalSyntheticLambda0;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Landroid/media/ImageReader$OnImageAvailableListener;
# static fields
.field public static final synthetic INSTANCE:Lcom/google/ar/core/SharedCamera$$ExternalSyntheticLambda0;
# direct methods
.method static synthetic constructor <clinit>()V
.locals 1
new-instance v0, Lcom/google/ar/core/SharedCamera$$ExternalSyntheticLambda0;
invoke-direct {v0}, Lcom/google/ar/core/SharedCamera$$ExternalSyntheticLambda0;-><init>()V
sput-object v0, Lcom/google/ar/core/SharedCamera$$ExternalSyntheticLambda0;->INSTANCE:Lcom/google/ar/core/SharedCamera$$ExternalSyntheticLambda0;
return-void
.end method
.method private synthetic constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final onImageAvailable(Landroid/media/ImageReader;)V
.locals 0
invoke-static {p1}, Lcom/google/ar/core/SharedCamera;->lambda$setDummyOnImageAvailableListener$0(Landroid/media/ImageReader;)V
return-void
.end method

View File

@@ -0,0 +1,49 @@
.class public final synthetic Lcom/google/ar/core/SharedCamera$1$$ExternalSyntheticLambda0;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# instance fields
.field public synthetic f$0:Landroid/hardware/camera2/CameraDevice$StateCallback;
.field public synthetic f$1:Landroid/hardware/camera2/CameraDevice;
.field public synthetic f$2:I
# direct methods
.method public synthetic constructor <init>(Landroid/hardware/camera2/CameraDevice$StateCallback;Landroid/hardware/camera2/CameraDevice;I)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/ar/core/SharedCamera$1$$ExternalSyntheticLambda0;->f$0:Landroid/hardware/camera2/CameraDevice$StateCallback;
iput-object p2, p0, Lcom/google/ar/core/SharedCamera$1$$ExternalSyntheticLambda0;->f$1:Landroid/hardware/camera2/CameraDevice;
iput p3, p0, Lcom/google/ar/core/SharedCamera$1$$ExternalSyntheticLambda0;->f$2:I
return-void
.end method
# virtual methods
.method public final run()V
.locals 4
iget-object v0, p0, Lcom/google/ar/core/SharedCamera$1$$ExternalSyntheticLambda0;->f$0:Landroid/hardware/camera2/CameraDevice$StateCallback;
iget-object v1, p0, Lcom/google/ar/core/SharedCamera$1$$ExternalSyntheticLambda0;->f$1:Landroid/hardware/camera2/CameraDevice;
iget v2, p0, Lcom/google/ar/core/SharedCamera$1$$ExternalSyntheticLambda0;->f$2:I
sget v3, Lcom/google/ar/core/ah;->$r8$clinit:I
.line 1
invoke-virtual {v0, v1, v2}, Landroid/hardware/camera2/CameraDevice$StateCallback;->onError(Landroid/hardware/camera2/CameraDevice;I)V
return-void
.end method

View File

@@ -0,0 +1,43 @@
.class public final synthetic Lcom/google/ar/core/SharedCamera$1$$ExternalSyntheticLambda1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# instance fields
.field public synthetic f$0:Landroid/hardware/camera2/CameraDevice$StateCallback;
.field public synthetic f$1:Landroid/hardware/camera2/CameraDevice;
# direct methods
.method public synthetic constructor <init>(Landroid/hardware/camera2/CameraDevice$StateCallback;Landroid/hardware/camera2/CameraDevice;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/ar/core/SharedCamera$1$$ExternalSyntheticLambda1;->f$0:Landroid/hardware/camera2/CameraDevice$StateCallback;
iput-object p2, p0, Lcom/google/ar/core/SharedCamera$1$$ExternalSyntheticLambda1;->f$1:Landroid/hardware/camera2/CameraDevice;
return-void
.end method
# virtual methods
.method public final run()V
.locals 3
iget-object v0, p0, Lcom/google/ar/core/SharedCamera$1$$ExternalSyntheticLambda1;->f$0:Landroid/hardware/camera2/CameraDevice$StateCallback;
iget-object v1, p0, Lcom/google/ar/core/SharedCamera$1$$ExternalSyntheticLambda1;->f$1:Landroid/hardware/camera2/CameraDevice;
sget v2, Lcom/google/ar/core/ah;->$r8$clinit:I
.line 1
invoke-virtual {v0, v1}, Landroid/hardware/camera2/CameraDevice$StateCallback;->onDisconnected(Landroid/hardware/camera2/CameraDevice;)V
return-void
.end method

View File

@@ -0,0 +1,43 @@
.class public final synthetic Lcom/google/ar/core/SharedCamera$1$$ExternalSyntheticLambda2;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# instance fields
.field public synthetic f$0:Landroid/hardware/camera2/CameraDevice$StateCallback;
.field public synthetic f$1:Landroid/hardware/camera2/CameraDevice;
# direct methods
.method public synthetic constructor <init>(Landroid/hardware/camera2/CameraDevice$StateCallback;Landroid/hardware/camera2/CameraDevice;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/ar/core/SharedCamera$1$$ExternalSyntheticLambda2;->f$0:Landroid/hardware/camera2/CameraDevice$StateCallback;
iput-object p2, p0, Lcom/google/ar/core/SharedCamera$1$$ExternalSyntheticLambda2;->f$1:Landroid/hardware/camera2/CameraDevice;
return-void
.end method
# virtual methods
.method public final run()V
.locals 3
iget-object v0, p0, Lcom/google/ar/core/SharedCamera$1$$ExternalSyntheticLambda2;->f$0:Landroid/hardware/camera2/CameraDevice$StateCallback;
iget-object v1, p0, Lcom/google/ar/core/SharedCamera$1$$ExternalSyntheticLambda2;->f$1:Landroid/hardware/camera2/CameraDevice;
sget v2, Lcom/google/ar/core/ah;->$r8$clinit:I
.line 1
invoke-virtual {v0, v1}, Landroid/hardware/camera2/CameraDevice$StateCallback;->onClosed(Landroid/hardware/camera2/CameraDevice;)V
return-void
.end method

View File

@@ -0,0 +1,43 @@
.class public final synthetic Lcom/google/ar/core/SharedCamera$1$$ExternalSyntheticLambda3;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# instance fields
.field public synthetic f$0:Landroid/hardware/camera2/CameraDevice$StateCallback;
.field public synthetic f$1:Landroid/hardware/camera2/CameraDevice;
# direct methods
.method public synthetic constructor <init>(Landroid/hardware/camera2/CameraDevice$StateCallback;Landroid/hardware/camera2/CameraDevice;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/ar/core/SharedCamera$1$$ExternalSyntheticLambda3;->f$0:Landroid/hardware/camera2/CameraDevice$StateCallback;
iput-object p2, p0, Lcom/google/ar/core/SharedCamera$1$$ExternalSyntheticLambda3;->f$1:Landroid/hardware/camera2/CameraDevice;
return-void
.end method
# virtual methods
.method public final run()V
.locals 3
iget-object v0, p0, Lcom/google/ar/core/SharedCamera$1$$ExternalSyntheticLambda3;->f$0:Landroid/hardware/camera2/CameraDevice$StateCallback;
iget-object v1, p0, Lcom/google/ar/core/SharedCamera$1$$ExternalSyntheticLambda3;->f$1:Landroid/hardware/camera2/CameraDevice;
sget v2, Lcom/google/ar/core/ah;->$r8$clinit:I
.line 1
invoke-virtual {v0, v1}, Landroid/hardware/camera2/CameraDevice$StateCallback;->onOpened(Landroid/hardware/camera2/CameraDevice;)V
return-void
.end method

View File

@@ -0,0 +1,43 @@
.class public final synthetic Lcom/google/ar/core/SharedCamera$2$$ExternalSyntheticLambda0;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# instance fields
.field public synthetic f$0:Landroid/hardware/camera2/CameraCaptureSession$StateCallback;
.field public synthetic f$1:Landroid/hardware/camera2/CameraCaptureSession;
# direct methods
.method public synthetic constructor <init>(Landroid/hardware/camera2/CameraCaptureSession$StateCallback;Landroid/hardware/camera2/CameraCaptureSession;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/ar/core/SharedCamera$2$$ExternalSyntheticLambda0;->f$0:Landroid/hardware/camera2/CameraCaptureSession$StateCallback;
iput-object p2, p0, Lcom/google/ar/core/SharedCamera$2$$ExternalSyntheticLambda0;->f$1:Landroid/hardware/camera2/CameraCaptureSession;
return-void
.end method
# virtual methods
.method public final run()V
.locals 3
iget-object v0, p0, Lcom/google/ar/core/SharedCamera$2$$ExternalSyntheticLambda0;->f$0:Landroid/hardware/camera2/CameraCaptureSession$StateCallback;
iget-object v1, p0, Lcom/google/ar/core/SharedCamera$2$$ExternalSyntheticLambda0;->f$1:Landroid/hardware/camera2/CameraCaptureSession;
sget v2, Lcom/google/ar/core/ai;->$r8$clinit:I
.line 1
invoke-virtual {v0, v1}, Landroid/hardware/camera2/CameraCaptureSession$StateCallback;->onActive(Landroid/hardware/camera2/CameraCaptureSession;)V
return-void
.end method

View File

@@ -0,0 +1,43 @@
.class public final synthetic Lcom/google/ar/core/SharedCamera$2$$ExternalSyntheticLambda1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# instance fields
.field public synthetic f$0:Landroid/hardware/camera2/CameraCaptureSession$StateCallback;
.field public synthetic f$1:Landroid/hardware/camera2/CameraCaptureSession;
# direct methods
.method public synthetic constructor <init>(Landroid/hardware/camera2/CameraCaptureSession$StateCallback;Landroid/hardware/camera2/CameraCaptureSession;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/ar/core/SharedCamera$2$$ExternalSyntheticLambda1;->f$0:Landroid/hardware/camera2/CameraCaptureSession$StateCallback;
iput-object p2, p0, Lcom/google/ar/core/SharedCamera$2$$ExternalSyntheticLambda1;->f$1:Landroid/hardware/camera2/CameraCaptureSession;
return-void
.end method
# virtual methods
.method public final run()V
.locals 3
iget-object v0, p0, Lcom/google/ar/core/SharedCamera$2$$ExternalSyntheticLambda1;->f$0:Landroid/hardware/camera2/CameraCaptureSession$StateCallback;
iget-object v1, p0, Lcom/google/ar/core/SharedCamera$2$$ExternalSyntheticLambda1;->f$1:Landroid/hardware/camera2/CameraCaptureSession;
sget v2, Lcom/google/ar/core/ai;->$r8$clinit:I
.line 1
invoke-virtual {v0, v1}, Landroid/hardware/camera2/CameraCaptureSession$StateCallback;->onClosed(Landroid/hardware/camera2/CameraCaptureSession;)V
return-void
.end method

View File

@@ -0,0 +1,43 @@
.class public final synthetic Lcom/google/ar/core/SharedCamera$2$$ExternalSyntheticLambda2;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# instance fields
.field public synthetic f$0:Landroid/hardware/camera2/CameraCaptureSession$StateCallback;
.field public synthetic f$1:Landroid/hardware/camera2/CameraCaptureSession;
# direct methods
.method public synthetic constructor <init>(Landroid/hardware/camera2/CameraCaptureSession$StateCallback;Landroid/hardware/camera2/CameraCaptureSession;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/ar/core/SharedCamera$2$$ExternalSyntheticLambda2;->f$0:Landroid/hardware/camera2/CameraCaptureSession$StateCallback;
iput-object p2, p0, Lcom/google/ar/core/SharedCamera$2$$ExternalSyntheticLambda2;->f$1:Landroid/hardware/camera2/CameraCaptureSession;
return-void
.end method
# virtual methods
.method public final run()V
.locals 3
iget-object v0, p0, Lcom/google/ar/core/SharedCamera$2$$ExternalSyntheticLambda2;->f$0:Landroid/hardware/camera2/CameraCaptureSession$StateCallback;
iget-object v1, p0, Lcom/google/ar/core/SharedCamera$2$$ExternalSyntheticLambda2;->f$1:Landroid/hardware/camera2/CameraCaptureSession;
sget v2, Lcom/google/ar/core/ai;->$r8$clinit:I
.line 1
invoke-virtual {v0, v1}, Landroid/hardware/camera2/CameraCaptureSession$StateCallback;->onReady(Landroid/hardware/camera2/CameraCaptureSession;)V
return-void
.end method

View File

@@ -0,0 +1,43 @@
.class public final synthetic Lcom/google/ar/core/SharedCamera$2$$ExternalSyntheticLambda3;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# instance fields
.field public synthetic f$0:Landroid/hardware/camera2/CameraCaptureSession$StateCallback;
.field public synthetic f$1:Landroid/hardware/camera2/CameraCaptureSession;
# direct methods
.method public synthetic constructor <init>(Landroid/hardware/camera2/CameraCaptureSession$StateCallback;Landroid/hardware/camera2/CameraCaptureSession;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/ar/core/SharedCamera$2$$ExternalSyntheticLambda3;->f$0:Landroid/hardware/camera2/CameraCaptureSession$StateCallback;
iput-object p2, p0, Lcom/google/ar/core/SharedCamera$2$$ExternalSyntheticLambda3;->f$1:Landroid/hardware/camera2/CameraCaptureSession;
return-void
.end method
# virtual methods
.method public final run()V
.locals 3
iget-object v0, p0, Lcom/google/ar/core/SharedCamera$2$$ExternalSyntheticLambda3;->f$0:Landroid/hardware/camera2/CameraCaptureSession$StateCallback;
iget-object v1, p0, Lcom/google/ar/core/SharedCamera$2$$ExternalSyntheticLambda3;->f$1:Landroid/hardware/camera2/CameraCaptureSession;
sget v2, Lcom/google/ar/core/ai;->$r8$clinit:I
.line 1
invoke-virtual {v0, v1}, Landroid/hardware/camera2/CameraCaptureSession$StateCallback;->onConfigureFailed(Landroid/hardware/camera2/CameraCaptureSession;)V
return-void
.end method

View File

@@ -0,0 +1,43 @@
.class public final synthetic Lcom/google/ar/core/SharedCamera$2$$ExternalSyntheticLambda4;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# instance fields
.field public synthetic f$0:Landroid/hardware/camera2/CameraCaptureSession$StateCallback;
.field public synthetic f$1:Landroid/hardware/camera2/CameraCaptureSession;
# direct methods
.method public synthetic constructor <init>(Landroid/hardware/camera2/CameraCaptureSession$StateCallback;Landroid/hardware/camera2/CameraCaptureSession;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/ar/core/SharedCamera$2$$ExternalSyntheticLambda4;->f$0:Landroid/hardware/camera2/CameraCaptureSession$StateCallback;
iput-object p2, p0, Lcom/google/ar/core/SharedCamera$2$$ExternalSyntheticLambda4;->f$1:Landroid/hardware/camera2/CameraCaptureSession;
return-void
.end method
# virtual methods
.method public final run()V
.locals 3
iget-object v0, p0, Lcom/google/ar/core/SharedCamera$2$$ExternalSyntheticLambda4;->f$0:Landroid/hardware/camera2/CameraCaptureSession$StateCallback;
iget-object v1, p0, Lcom/google/ar/core/SharedCamera$2$$ExternalSyntheticLambda4;->f$1:Landroid/hardware/camera2/CameraCaptureSession;
sget v2, Lcom/google/ar/core/ai;->$r8$clinit:I
.line 1
invoke-virtual {v0, v1}, Landroid/hardware/camera2/CameraCaptureSession$StateCallback;->onConfigured(Landroid/hardware/camera2/CameraCaptureSession;)V
return-void
.end method

View File

@@ -0,0 +1,3 @@
.class public final synthetic Lcom/google/ar/core/SharedCamera$SharedCameraInfo-IA;
.super Ljava/lang/Object;
.source "SourceFile"

View File

@@ -0,0 +1,670 @@
.class public Lcom/google/ar/core/SharedCamera;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field private static final TAG:Ljava/lang/String; = "ArSdk-SharedCamera"
# instance fields
.field private cameraSharedWithAr:Z
.field private final session:Lcom/google/ar/core/Session;
.field private sharedCameraHandler:Landroid/os/Handler;
.field private final sharedCameraInfo:Lcom/google/ar/core/aj;
# direct methods
.method public static bridge synthetic -$$Nest$fgetsharedCameraInfo(Lcom/google/ar/core/SharedCamera;)Lcom/google/ar/core/aj;
.locals 0
iget-object p0, p0, Lcom/google/ar/core/SharedCamera;->sharedCameraInfo:Lcom/google/ar/core/aj;
return-object p0
.end method
.method public static bridge synthetic -$$Nest$mclose(Lcom/google/ar/core/SharedCamera;)V
.locals 0
invoke-direct {p0}, Lcom/google/ar/core/SharedCamera;->close()V
return-void
.end method
.method public static bridge synthetic -$$Nest$mgetGpuSurface(Lcom/google/ar/core/SharedCamera;)Landroid/view/Surface;
.locals 0
invoke-direct {p0}, Lcom/google/ar/core/SharedCamera;->getGpuSurface()Landroid/view/Surface;
move-result-object p0
return-object p0
.end method
.method public static bridge synthetic -$$Nest$mgetGpuSurfaceTexture(Lcom/google/ar/core/SharedCamera;)Landroid/graphics/SurfaceTexture;
.locals 0
invoke-direct {p0}, Lcom/google/ar/core/SharedCamera;->getGpuSurfaceTexture()Landroid/graphics/SurfaceTexture;
move-result-object p0
return-object p0
.end method
.method public static bridge synthetic -$$Nest$monCaptureSessionActive(Lcom/google/ar/core/SharedCamera;Landroid/hardware/camera2/CameraCaptureSession;)V
.locals 0
invoke-direct {p0, p1}, Lcom/google/ar/core/SharedCamera;->onCaptureSessionActive(Landroid/hardware/camera2/CameraCaptureSession;)V
return-void
.end method
.method public static bridge synthetic -$$Nest$monCaptureSessionClosed(Lcom/google/ar/core/SharedCamera;Landroid/hardware/camera2/CameraCaptureSession;)V
.locals 0
invoke-direct {p0, p1}, Lcom/google/ar/core/SharedCamera;->onCaptureSessionClosed(Landroid/hardware/camera2/CameraCaptureSession;)V
return-void
.end method
.method public static bridge synthetic -$$Nest$monCaptureSessionConfigureFailed(Lcom/google/ar/core/SharedCamera;Landroid/hardware/camera2/CameraCaptureSession;)V
.locals 0
invoke-direct {p0, p1}, Lcom/google/ar/core/SharedCamera;->onCaptureSessionConfigureFailed(Landroid/hardware/camera2/CameraCaptureSession;)V
return-void
.end method
.method public static bridge synthetic -$$Nest$monCaptureSessionConfigured(Lcom/google/ar/core/SharedCamera;Landroid/hardware/camera2/CameraCaptureSession;)V
.locals 0
invoke-direct {p0, p1}, Lcom/google/ar/core/SharedCamera;->onCaptureSessionConfigured(Landroid/hardware/camera2/CameraCaptureSession;)V
return-void
.end method
.method public static bridge synthetic -$$Nest$monCaptureSessionReady(Lcom/google/ar/core/SharedCamera;Landroid/hardware/camera2/CameraCaptureSession;)V
.locals 0
invoke-direct {p0, p1}, Lcom/google/ar/core/SharedCamera;->onCaptureSessionReady(Landroid/hardware/camera2/CameraCaptureSession;)V
return-void
.end method
.method public static bridge synthetic -$$Nest$monDeviceClosed(Lcom/google/ar/core/SharedCamera;Landroid/hardware/camera2/CameraDevice;)V
.locals 0
invoke-direct {p0, p1}, Lcom/google/ar/core/SharedCamera;->onDeviceClosed(Landroid/hardware/camera2/CameraDevice;)V
return-void
.end method
.method public static bridge synthetic -$$Nest$monDeviceDisconnected(Lcom/google/ar/core/SharedCamera;Landroid/hardware/camera2/CameraDevice;)V
.locals 0
invoke-direct {p0, p1}, Lcom/google/ar/core/SharedCamera;->onDeviceDisconnected(Landroid/hardware/camera2/CameraDevice;)V
return-void
.end method
.method public static bridge synthetic -$$Nest$monDeviceOpened(Lcom/google/ar/core/SharedCamera;Landroid/hardware/camera2/CameraDevice;)V
.locals 0
invoke-direct {p0, p1}, Lcom/google/ar/core/SharedCamera;->onDeviceOpened(Landroid/hardware/camera2/CameraDevice;)V
return-void
.end method
.method public static bridge synthetic -$$Nest$msetDummyListenerToAvoidImageBufferStarvation(Lcom/google/ar/core/SharedCamera;)V
.locals 0
invoke-direct {p0}, Lcom/google/ar/core/SharedCamera;->setDummyListenerToAvoidImageBufferStarvation()V
return-void
.end method
.method public constructor <init>(Lcom/google/ar/core/Session;)V
.locals 2
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance v0, Lcom/google/ar/core/aj;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lcom/google/ar/core/aj;-><init>([B)V
iput-object v0, p0, Lcom/google/ar/core/SharedCamera;->sharedCameraInfo:Lcom/google/ar/core/aj;
const/4 v0, 0x0
iput-boolean v0, p0, Lcom/google/ar/core/SharedCamera;->cameraSharedWithAr:Z
new-instance v0, Landroid/os/HandlerThread;
const-string v1, "SharedCameraHandlerThread"
.line 2
invoke-direct {v0, v1}, Landroid/os/HandlerThread;-><init>(Ljava/lang/String;)V
.line 3
invoke-virtual {v0}, Ljava/lang/Thread;->start()V
.line 4
invoke-virtual {v0}, Landroid/os/HandlerThread;->getLooper()Landroid/os/Looper;
move-result-object v0
new-instance v1, Landroid/os/Handler;
.line 5
invoke-direct {v1, v0}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V
iput-object v1, p0, Lcom/google/ar/core/SharedCamera;->sharedCameraHandler:Landroid/os/Handler;
iput-object p1, p0, Lcom/google/ar/core/SharedCamera;->session:Lcom/google/ar/core/Session;
return-void
.end method
.method private close()V
.locals 2
iget-object v0, p0, Lcom/google/ar/core/SharedCamera;->sharedCameraHandler:Landroid/os/Handler;
const/4 v1, 0x0
.line 1
invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacksAndMessages(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/google/ar/core/SharedCamera;->sharedCameraHandler:Landroid/os/Handler;
.line 2
invoke-virtual {v0}, Landroid/os/Handler;->getLooper()Landroid/os/Looper;
move-result-object v0
invoke-virtual {v0}, Landroid/os/Looper;->quit()V
iput-object v1, p0, Lcom/google/ar/core/SharedCamera;->sharedCameraHandler:Landroid/os/Handler;
return-void
.end method
.method private getCpuImageReader()Landroid/media/ImageReader;
.locals 3
iget-object v0, p0, Lcom/google/ar/core/SharedCamera;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-object v2, p0, Lcom/google/ar/core/SharedCamera;->sharedCameraInfo:Lcom/google/ar/core/aj;
.line 2
invoke-virtual {v2}, Lcom/google/ar/core/aj;->b()Landroid/hardware/camera2/CameraDevice;
move-result-object v2
.line 1
invoke-direct {p0, v0, v1, v2}, Lcom/google/ar/core/SharedCamera;->nativeSharedCameraGetImageReader(JLandroid/hardware/camera2/CameraDevice;)Landroid/media/ImageReader;
move-result-object v0
return-object v0
.end method
.method private getCpuImageReaderMotionTracking()Landroid/media/ImageReader;
.locals 3
iget-object v0, p0, Lcom/google/ar/core/SharedCamera;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-object v2, p0, Lcom/google/ar/core/SharedCamera;->sharedCameraInfo:Lcom/google/ar/core/aj;
.line 2
invoke-virtual {v2}, Lcom/google/ar/core/aj;->b()Landroid/hardware/camera2/CameraDevice;
move-result-object v2
.line 1
invoke-direct {p0, v0, v1, v2}, Lcom/google/ar/core/SharedCamera;->nativeSharedCameraGetImageReaderMotionTracking(JLandroid/hardware/camera2/CameraDevice;)Landroid/media/ImageReader;
move-result-object v0
return-object v0
.end method
.method private getGpuSurface()Landroid/view/Surface;
.locals 3
iget-object v0, p0, Lcom/google/ar/core/SharedCamera;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-object v2, p0, Lcom/google/ar/core/SharedCamera;->sharedCameraInfo:Lcom/google/ar/core/aj;
.line 2
invoke-virtual {v2}, Lcom/google/ar/core/aj;->b()Landroid/hardware/camera2/CameraDevice;
move-result-object v2
.line 1
invoke-direct {p0, v0, v1, v2}, Lcom/google/ar/core/SharedCamera;->nativeSharedCameraGetSurface(JLandroid/hardware/camera2/CameraDevice;)Landroid/view/Surface;
move-result-object v0
return-object v0
.end method
.method private getGpuSurfaceTexture()Landroid/graphics/SurfaceTexture;
.locals 3
iget-object v0, p0, Lcom/google/ar/core/SharedCamera;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-object v2, p0, Lcom/google/ar/core/SharedCamera;->sharedCameraInfo:Lcom/google/ar/core/aj;
.line 2
invoke-virtual {v2}, Lcom/google/ar/core/aj;->b()Landroid/hardware/camera2/CameraDevice;
move-result-object v2
.line 1
invoke-direct {p0, v0, v1, v2}, Lcom/google/ar/core/SharedCamera;->nativeSharedCameraGetSurfaceTexture(JLandroid/hardware/camera2/CameraDevice;)Landroid/graphics/SurfaceTexture;
move-result-object v0
return-object v0
.end method
.method public static synthetic lambda$setDummyOnImageAvailableListener$0(Landroid/media/ImageReader;)V
.locals 0
.line 1
invoke-virtual {p0}, Landroid/media/ImageReader;->acquireLatestImage()Landroid/media/Image;
move-result-object p0
if-eqz p0, :cond_0
.line 2
invoke-virtual {p0}, Landroid/media/Image;->close()V
:cond_0
return-void
.end method
.method private native nativeSharedCameraCaptureSessionActive(JLandroid/hardware/camera2/CameraCaptureSession;)V
.end method
.method private native nativeSharedCameraCaptureSessionClosed(JLandroid/hardware/camera2/CameraCaptureSession;)V
.end method
.method private native nativeSharedCameraCaptureSessionConfigureFailed(JLandroid/hardware/camera2/CameraCaptureSession;)V
.end method
.method private native nativeSharedCameraCaptureSessionConfigured(JLandroid/hardware/camera2/CameraCaptureSession;)V
.end method
.method private native nativeSharedCameraCaptureSessionReady(JLandroid/hardware/camera2/CameraCaptureSession;)V
.end method
.method private native nativeSharedCameraGetImageReader(JLandroid/hardware/camera2/CameraDevice;)Landroid/media/ImageReader;
.end method
.method private native nativeSharedCameraGetImageReaderMotionTracking(JLandroid/hardware/camera2/CameraDevice;)Landroid/media/ImageReader;
.end method
.method private native nativeSharedCameraGetSurface(JLandroid/hardware/camera2/CameraDevice;)Landroid/view/Surface;
.end method
.method private native nativeSharedCameraGetSurfaceTexture(JLandroid/hardware/camera2/CameraDevice;)Landroid/graphics/SurfaceTexture;
.end method
.method private native nativeSharedCameraOnClosed(JLandroid/hardware/camera2/CameraDevice;)V
.end method
.method private native nativeSharedCameraOnDisconnected(JLandroid/hardware/camera2/CameraDevice;)V
.end method
.method private native nativeSharedCameraOnOpened(JLandroid/hardware/camera2/CameraDevice;)V
.end method
.method private native nativeSharedCameraSetAppSurfaces(JLjava/lang/String;Ljava/util/List;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(J",
"Ljava/lang/String;",
"Ljava/util/List<",
"Landroid/view/Surface;",
">;)V"
}
.end annotation
.end method
.method private native nativeSharedCameraSetCaptureCallback(JLandroid/hardware/camera2/CameraCaptureSession$CaptureCallback;Landroid/os/Handler;)V
.end method
.method private onCaptureSessionActive(Landroid/hardware/camera2/CameraCaptureSession;)V
.locals 2
iget-object v0, p0, Lcom/google/ar/core/SharedCamera;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
invoke-direct {p0, v0, v1, p1}, Lcom/google/ar/core/SharedCamera;->nativeSharedCameraCaptureSessionActive(JLandroid/hardware/camera2/CameraCaptureSession;)V
return-void
.end method
.method private onCaptureSessionClosed(Landroid/hardware/camera2/CameraCaptureSession;)V
.locals 2
iget-object v0, p0, Lcom/google/ar/core/SharedCamera;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
invoke-direct {p0, v0, v1, p1}, Lcom/google/ar/core/SharedCamera;->nativeSharedCameraCaptureSessionClosed(JLandroid/hardware/camera2/CameraCaptureSession;)V
return-void
.end method
.method private onCaptureSessionConfigureFailed(Landroid/hardware/camera2/CameraCaptureSession;)V
.locals 2
iget-object v0, p0, Lcom/google/ar/core/SharedCamera;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
invoke-direct {p0, v0, v1, p1}, Lcom/google/ar/core/SharedCamera;->nativeSharedCameraCaptureSessionConfigureFailed(JLandroid/hardware/camera2/CameraCaptureSession;)V
return-void
.end method
.method private onCaptureSessionConfigured(Landroid/hardware/camera2/CameraCaptureSession;)V
.locals 2
iget-object v0, p0, Lcom/google/ar/core/SharedCamera;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
invoke-direct {p0, v0, v1, p1}, Lcom/google/ar/core/SharedCamera;->nativeSharedCameraCaptureSessionConfigured(JLandroid/hardware/camera2/CameraCaptureSession;)V
return-void
.end method
.method private onCaptureSessionReady(Landroid/hardware/camera2/CameraCaptureSession;)V
.locals 2
iget-object v0, p0, Lcom/google/ar/core/SharedCamera;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
invoke-direct {p0, v0, v1, p1}, Lcom/google/ar/core/SharedCamera;->nativeSharedCameraCaptureSessionReady(JLandroid/hardware/camera2/CameraCaptureSession;)V
return-void
.end method
.method private onDeviceClosed(Landroid/hardware/camera2/CameraDevice;)V
.locals 2
iget-object v0, p0, Lcom/google/ar/core/SharedCamera;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
invoke-direct {p0, v0, v1, p1}, Lcom/google/ar/core/SharedCamera;->nativeSharedCameraOnClosed(JLandroid/hardware/camera2/CameraDevice;)V
const/4 p1, 0x0
iput-boolean p1, p0, Lcom/google/ar/core/SharedCamera;->cameraSharedWithAr:Z
return-void
.end method
.method private onDeviceDisconnected(Landroid/hardware/camera2/CameraDevice;)V
.locals 2
iget-object v0, p0, Lcom/google/ar/core/SharedCamera;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
invoke-direct {p0, v0, v1, p1}, Lcom/google/ar/core/SharedCamera;->nativeSharedCameraOnDisconnected(JLandroid/hardware/camera2/CameraDevice;)V
const/4 p1, 0x0
iput-boolean p1, p0, Lcom/google/ar/core/SharedCamera;->cameraSharedWithAr:Z
iget-object p1, p0, Lcom/google/ar/core/SharedCamera;->sharedCameraInfo:Lcom/google/ar/core/aj;
const/4 v0, 0x0
.line 2
invoke-virtual {p1, v0}, Lcom/google/ar/core/aj;->d(Landroid/hardware/camera2/CameraDevice;)V
return-void
.end method
.method private onDeviceOpened(Landroid/hardware/camera2/CameraDevice;)V
.locals 2
iget-object v0, p0, Lcom/google/ar/core/SharedCamera;->sharedCameraInfo:Lcom/google/ar/core/aj;
.line 1
invoke-virtual {v0, p1}, Lcom/google/ar/core/aj;->d(Landroid/hardware/camera2/CameraDevice;)V
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/google/ar/core/SharedCamera;->cameraSharedWithAr:Z
iget-object v0, p0, Lcom/google/ar/core/SharedCamera;->session:Lcom/google/ar/core/Session;
.line 2
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
invoke-direct {p0, v0, v1, p1}, Lcom/google/ar/core/SharedCamera;->nativeSharedCameraOnOpened(JLandroid/hardware/camera2/CameraDevice;)V
return-void
.end method
.method private setDummyListenerToAvoidImageBufferStarvation()V
.locals 1
.line 1
invoke-direct {p0}, Lcom/google/ar/core/SharedCamera;->getCpuImageReader()Landroid/media/ImageReader;
move-result-object v0
invoke-direct {p0, v0}, Lcom/google/ar/core/SharedCamera;->setDummyOnImageAvailableListener(Landroid/media/ImageReader;)V
.line 2
invoke-direct {p0}, Lcom/google/ar/core/SharedCamera;->getCpuImageReaderMotionTracking()Landroid/media/ImageReader;
move-result-object v0
invoke-direct {p0, v0}, Lcom/google/ar/core/SharedCamera;->setDummyOnImageAvailableListener(Landroid/media/ImageReader;)V
return-void
.end method
.method private setDummyOnImageAvailableListener(Landroid/media/ImageReader;)V
.locals 2
if-eqz p1, :cond_0
.line 1
sget-object v0, Lcom/google/ar/core/SharedCamera$$ExternalSyntheticLambda0;->INSTANCE:Lcom/google/ar/core/SharedCamera$$ExternalSyntheticLambda0;
iget-object v1, p0, Lcom/google/ar/core/SharedCamera;->sharedCameraHandler:Landroid/os/Handler;
invoke-virtual {p1, v0, v1}, Landroid/media/ImageReader;->setOnImageAvailableListener(Landroid/media/ImageReader$OnImageAvailableListener;Landroid/os/Handler;)V
:cond_0
return-void
.end method
# virtual methods
.method public createARDeviceStateCallback(Landroid/hardware/camera2/CameraDevice$StateCallback;Landroid/os/Handler;)Landroid/hardware/camera2/CameraDevice$StateCallback;
.locals 1
.line 1
new-instance v0, Lcom/google/ar/core/ah;
invoke-direct {v0, p0, p2, p1}, Lcom/google/ar/core/ah;-><init>(Lcom/google/ar/core/SharedCamera;Landroid/os/Handler;Landroid/hardware/camera2/CameraDevice$StateCallback;)V
return-object v0
.end method
.method public createARSessionStateCallback(Landroid/hardware/camera2/CameraCaptureSession$StateCallback;Landroid/os/Handler;)Landroid/hardware/camera2/CameraCaptureSession$StateCallback;
.locals 1
.line 1
new-instance v0, Lcom/google/ar/core/ai;
invoke-direct {v0, p0, p2, p1}, Lcom/google/ar/core/ai;-><init>(Lcom/google/ar/core/SharedCamera;Landroid/os/Handler;Landroid/hardware/camera2/CameraCaptureSession$StateCallback;)V
return-object v0
.end method
.method public getArCoreSurfaces()Ljava/util/List;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Landroid/view/Surface;",
">;"
}
.end annotation
.line 1
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iget-object v1, p0, Lcom/google/ar/core/SharedCamera;->sharedCameraInfo:Lcom/google/ar/core/aj;
.line 2
invoke-virtual {v1}, Lcom/google/ar/core/aj;->c()Landroid/view/Surface;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 3
invoke-direct {p0}, Lcom/google/ar/core/SharedCamera;->getCpuImageReaderMotionTracking()Landroid/media/ImageReader;
move-result-object v1
if-eqz v1, :cond_0
.line 4
invoke-virtual {v1}, Landroid/media/ImageReader;->getSurface()Landroid/view/Surface;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 5
:cond_0
invoke-direct {p0}, Lcom/google/ar/core/SharedCamera;->getCpuImageReader()Landroid/media/ImageReader;
move-result-object v1
invoke-virtual {v1}, Landroid/media/ImageReader;->getSurface()Landroid/view/Surface;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
return-object v0
.end method
.method public getSurfaceTexture()Landroid/graphics/SurfaceTexture;
.locals 1
iget-object v0, p0, Lcom/google/ar/core/SharedCamera;->sharedCameraInfo:Lcom/google/ar/core/aj;
.line 1
invoke-virtual {v0}, Lcom/google/ar/core/aj;->a()Landroid/graphics/SurfaceTexture;
move-result-object v0
return-object v0
.end method
.method public pause()V
.locals 1
iget-object v0, p0, Lcom/google/ar/core/SharedCamera;->sharedCameraInfo:Lcom/google/ar/core/aj;
.line 1
invoke-virtual {v0}, Lcom/google/ar/core/aj;->b()Landroid/hardware/camera2/CameraDevice;
move-result-object v0
if-eqz v0, :cond_0
.line 2
invoke-direct {p0}, Lcom/google/ar/core/SharedCamera;->setDummyListenerToAvoidImageBufferStarvation()V
:cond_0
return-void
.end method
.method public setAppSurfaces(Ljava/lang/String;Ljava/util/List;)V
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Ljava/util/List<",
"Landroid/view/Surface;",
">;)V"
}
.end annotation
iget-object v0, p0, Lcom/google/ar/core/SharedCamera;->sharedCameraInfo:Lcom/google/ar/core/aj;
.line 1
invoke-virtual {v0, p1, p2}, Lcom/google/ar/core/aj;->e(Ljava/lang/String;Ljava/util/List;)V
iget-object v0, p0, Lcom/google/ar/core/SharedCamera;->session:Lcom/google/ar/core/Session;
.line 2
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
invoke-direct {p0, v0, v1, p1, p2}, Lcom/google/ar/core/SharedCamera;->nativeSharedCameraSetAppSurfaces(JLjava/lang/String;Ljava/util/List;)V
return-void
.end method
.method public setCaptureCallback(Landroid/hardware/camera2/CameraCaptureSession$CaptureCallback;Landroid/os/Handler;)V
.locals 2
iget-object v0, p0, Lcom/google/ar/core/SharedCamera;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
invoke-direct {p0, v0, v1, p1, p2}, Lcom/google/ar/core/SharedCamera;->nativeSharedCameraSetCaptureCallback(JLandroid/hardware/camera2/CameraCaptureSession$CaptureCallback;Landroid/os/Handler;)V
return-void
.end method

View File

@@ -0,0 +1,204 @@
.class public Lcom/google/ar/core/Track;
.super Ljava/lang/Object;
.source "SourceFile"
# instance fields
.field nativeHandle:J
.field private final nativeSymbolTableHandle:J
.field private final session:Lcom/google/ar/core/Session;
# direct methods
.method public constructor <init>()V
.locals 2
.line 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput-object v0, p0, Lcom/google/ar/core/Track;->session:Lcom/google/ar/core/Session;
const-wide/16 v0, 0x0
iput-wide v0, p0, Lcom/google/ar/core/Track;->nativeHandle:J
iput-wide v0, p0, Lcom/google/ar/core/Track;->nativeSymbolTableHandle:J
return-void
.end method
.method public constructor <init>(Lcom/google/ar/core/Session;)V
.locals 2
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/ar/core/Track;->session:Lcom/google/ar/core/Session;
iget-wide v0, p1, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
invoke-static {v0, v1}, Lcom/google/ar/core/Track;->nativeCreateTrack(J)J
move-result-wide v0
iput-wide v0, p0, Lcom/google/ar/core/Track;->nativeHandle:J
.line 2
iget-wide v0, p1, Lcom/google/ar/core/Session;->nativeSymbolTableHandle:J
iput-wide v0, p0, Lcom/google/ar/core/Track;->nativeSymbolTableHandle:J
return-void
.end method
.method private static native nativeCreateTrack(J)J
.end method
.method private static native nativeDestroyTrack(JJ)V
.end method
.method private native nativeSetId(JJ[B)V
.end method
.method private native nativeSetMetadata(JJ[B)V
.end method
.method private native nativeSetMimeType(JJLjava/lang/String;)V
.end method
# virtual methods
.method public finalize()V
.locals 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
iget-wide v0, p0, Lcom/google/ar/core/Track;->nativeHandle:J
const-wide/16 v2, 0x0
cmp-long v4, v0, v2
if-eqz v4, :cond_0
iget-wide v4, p0, Lcom/google/ar/core/Track;->nativeSymbolTableHandle:J
.line 1
invoke-static {v4, v5, v0, v1}, Lcom/google/ar/core/Track;->nativeDestroyTrack(JJ)V
iput-wide v2, p0, Lcom/google/ar/core/Track;->nativeHandle:J
.line 2
:cond_0
invoke-super {p0}, Ljava/lang/Object;->finalize()V
return-void
.end method
.method public setId(Ljava/util/UUID;)Lcom/google/ar/core/Track;
.locals 7
.annotation build Landroidx/annotation/NonNull;
.end annotation
const/16 v0, 0x10
new-array v0, v0, [B
.line 1
invoke-static {v0}, Ljava/nio/ByteBuffer;->wrap([B)Ljava/nio/ByteBuffer;
move-result-object v0
.line 2
invoke-virtual {p1}, Ljava/util/UUID;->getMostSignificantBits()J
move-result-wide v1
invoke-virtual {v0, v1, v2}, Ljava/nio/ByteBuffer;->putLong(J)Ljava/nio/ByteBuffer;
.line 3
invoke-virtual {p1}, Ljava/util/UUID;->getLeastSignificantBits()J
move-result-wide v1
invoke-virtual {v0, v1, v2}, Ljava/nio/ByteBuffer;->putLong(J)Ljava/nio/ByteBuffer;
iget-object p1, p0, Lcom/google/ar/core/Track;->session:Lcom/google/ar/core/Session;
.line 4
iget-wide v2, p1, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v4, p0, Lcom/google/ar/core/Track;->nativeHandle:J
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->array()[B
move-result-object v6
move-object v1, p0
invoke-direct/range {v1 .. v6}, Lcom/google/ar/core/Track;->nativeSetId(JJ[B)V
return-object p0
.end method
.method public setMetadata(Ljava/nio/ByteBuffer;)Lcom/google/ar/core/Track;
.locals 7
.annotation build Landroidx/annotation/NonNull;
.end annotation
const/4 v0, 0x0
.line 1
invoke-virtual {p1, v0}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;
.line 2
invoke-virtual {p1}, Ljava/nio/Buffer;->remaining()I
move-result v0
new-array v6, v0, [B
.line 3
invoke-virtual {p1, v6}, Ljava/nio/ByteBuffer;->get([B)Ljava/nio/ByteBuffer;
iget-object p1, p0, Lcom/google/ar/core/Track;->session:Lcom/google/ar/core/Session;
.line 4
iget-wide v2, p1, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v4, p0, Lcom/google/ar/core/Track;->nativeHandle:J
move-object v1, p0
invoke-direct/range {v1 .. v6}, Lcom/google/ar/core/Track;->nativeSetMetadata(JJ[B)V
return-object p0
.end method
.method public setMimeType(Ljava/lang/String;)Lcom/google/ar/core/Track;
.locals 7
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Lcom/google/ar/core/Track;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v2, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v4, p0, Lcom/google/ar/core/Track;->nativeHandle:J
move-object v1, p0
move-object v6, p1
invoke-direct/range {v1 .. v6}, Lcom/google/ar/core/Track;->nativeSetMimeType(JJLjava/lang/String;)V
return-object p0
.end method

View File

@@ -0,0 +1,123 @@
.class public Lcom/google/ar/core/TrackData;
.super Ljava/lang/Object;
.source "SourceFile"
# instance fields
.field nativeHandle:J
.field final nativeSymbolTableHandle:J
.field private final session:Lcom/google/ar/core/Session;
# direct methods
.method public constructor <init>(JLcom/google/ar/core/Session;)V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p3, p0, Lcom/google/ar/core/TrackData;->session:Lcom/google/ar/core/Session;
iput-wide p1, p0, Lcom/google/ar/core/TrackData;->nativeHandle:J
iget-wide p1, p3, Lcom/google/ar/core/Session;->nativeSymbolTableHandle:J
iput-wide p1, p0, Lcom/google/ar/core/TrackData;->nativeSymbolTableHandle:J
return-void
.end method
.method private native nativeGetData(JJ)Ljava/nio/ByteBuffer;
.end method
.method private native nativeGetFrameTimestamp(JJ)J
.end method
.method private static native nativeReleaseTrackData(JJ)V
.end method
.method private release()V
.locals 6
iget-wide v0, p0, Lcom/google/ar/core/TrackData;->nativeHandle:J
const-wide/16 v2, 0x0
cmp-long v4, v0, v2
if-eqz v4, :cond_0
iget-wide v4, p0, Lcom/google/ar/core/TrackData;->nativeSymbolTableHandle:J
.line 1
invoke-static {v4, v5, v0, v1}, Lcom/google/ar/core/TrackData;->nativeReleaseTrackData(JJ)V
iput-wide v2, p0, Lcom/google/ar/core/TrackData;->nativeHandle:J
:cond_0
return-void
.end method
# virtual methods
.method public close()V
.locals 0
.line 1
invoke-direct {p0}, Lcom/google/ar/core/TrackData;->release()V
return-void
.end method
.method public finalize()V
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
.line 1
invoke-direct {p0}, Lcom/google/ar/core/TrackData;->release()V
.line 2
invoke-super {p0}, Ljava/lang/Object;->finalize()V
return-void
.end method
.method public getData()Ljava/nio/ByteBuffer;
.locals 4
iget-object v0, p0, Lcom/google/ar/core/TrackData;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/TrackData;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/TrackData;->nativeGetData(JJ)Ljava/nio/ByteBuffer;
move-result-object v0
return-object v0
.end method
.method public getFrameTimestamp()J
.locals 4
iget-object v0, p0, Lcom/google/ar/core/TrackData;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/TrackData;->nativeHandle:J
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/TrackData;->nativeGetFrameTimestamp(JJ)J
move-result-wide v0
return-wide v0
.end method

View File

@@ -0,0 +1,29 @@
.class public interface abstract Lcom/google/ar/core/Trackable;
.super Ljava/lang/Object;
.source "SourceFile"
# virtual methods
.method public abstract createAnchor(Lcom/google/ar/core/Pose;)Lcom/google/ar/core/Anchor;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end method
.method public abstract getAnchors()Ljava/util/Collection;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Collection<",
"Lcom/google/ar/core/Anchor;",
">;"
}
.end annotation
.end method
.method public abstract getTrackingState()Lcom/google/ar/core/TrackingState;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end method

View File

@@ -0,0 +1,236 @@
.class Lcom/google/ar/core/TrackableBase;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/google/ar/core/Trackable;
# annotations
.annotation build Lcom/google/ar/core/annotations/UsedByNative;
value = "trackable_base_jni.cc"
.end annotation
# instance fields
.field nativeHandle:J
.field protected final nativeSymbolTableHandle:J
.field protected final session:Lcom/google/ar/core/Session;
# direct methods
.method public constructor <init>(JLcom/google/ar/core/Session;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p3, p0, Lcom/google/ar/core/TrackableBase;->session:Lcom/google/ar/core/Session;
iput-wide p1, p0, Lcom/google/ar/core/TrackableBase;->nativeHandle:J
if-nez p3, :cond_0
const-wide/16 p1, 0x0
goto :goto_0
:cond_0
iget-wide p1, p3, Lcom/google/ar/core/Session;->nativeSymbolTableHandle:J
:goto_0
iput-wide p1, p0, Lcom/google/ar/core/TrackableBase;->nativeSymbolTableHandle:J
return-void
.end method
.method public static internalGetType(JJ)I
.locals 0
.line 1
invoke-static {p0, p1, p2, p3}, Lcom/google/ar/core/TrackableBase;->nativeGetType(JJ)I
move-result p0
return p0
.end method
.method public static internalReleaseNativeHandle(JJ)V
.locals 0
.line 1
invoke-static {p0, p1, p2, p3}, Lcom/google/ar/core/TrackableBase;->nativeReleaseTrackable(JJ)V
return-void
.end method
.method private native nativeCreateAnchor(JJLcom/google/ar/core/Pose;)J
.end method
.method private native nativeGetAnchors(JJ)[J
.end method
.method private native nativeGetTrackingState(JJ)I
.end method
.method private static native nativeGetType(JJ)I
.end method
.method private static native nativeReleaseTrackable(JJ)V
.end method
# virtual methods
.method public createAnchor(Lcom/google/ar/core/Pose;)Lcom/google/ar/core/Anchor;
.locals 8
.line 1
new-instance v0, Lcom/google/ar/core/Anchor;
iget-object v1, p0, Lcom/google/ar/core/TrackableBase;->session:Lcom/google/ar/core/Session;
iget-wide v3, v1, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v5, p0, Lcom/google/ar/core/TrackableBase;->nativeHandle:J
move-object v2, p0
move-object v7, p1
invoke-direct/range {v2 .. v7}, Lcom/google/ar/core/TrackableBase;->nativeCreateAnchor(JJLcom/google/ar/core/Pose;)J
move-result-wide v1
iget-object p1, p0, Lcom/google/ar/core/TrackableBase;->session:Lcom/google/ar/core/Session;
invoke-direct {v0, v1, v2, p1}, Lcom/google/ar/core/Anchor;-><init>(JLcom/google/ar/core/Session;)V
return-object v0
.end method
.method public equals(Ljava/lang/Object;)Z
.locals 6
.line 1
instance-of v0, p1, Lcom/google/ar/core/TrackableBase;
const/4 v1, 0x0
if-nez v0, :cond_0
return v1
.line 2
:cond_0
check-cast p1, Lcom/google/ar/core/TrackableBase;
.line 3
iget-wide v2, p1, Lcom/google/ar/core/TrackableBase;->nativeHandle:J
iget-wide v4, p0, Lcom/google/ar/core/TrackableBase;->nativeHandle:J
cmp-long p1, v2, v4
if-nez p1, :cond_1
const/4 p1, 0x1
return p1
:cond_1
return v1
.end method
.method public finalize()V
.locals 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
iget-wide v0, p0, Lcom/google/ar/core/TrackableBase;->nativeHandle:J
const-wide/16 v2, 0x0
cmp-long v4, v0, v2
if-eqz v4, :cond_0
iget-wide v4, p0, Lcom/google/ar/core/TrackableBase;->nativeSymbolTableHandle:J
.line 1
invoke-static {v4, v5, v0, v1}, Lcom/google/ar/core/TrackableBase;->nativeReleaseTrackable(JJ)V
iput-wide v2, p0, Lcom/google/ar/core/TrackableBase;->nativeHandle:J
.line 2
:cond_0
invoke-super {p0}, Ljava/lang/Object;->finalize()V
return-void
.end method
.method public getAnchors()Ljava/util/Collection;
.locals 5
iget-object v0, p0, Lcom/google/ar/core/TrackableBase;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v1, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v3, p0, Lcom/google/ar/core/TrackableBase;->nativeHandle:J
.line 2
invoke-direct {p0, v1, v2, v3, v4}, Lcom/google/ar/core/TrackableBase;->nativeGetAnchors(JJ)[J
move-result-object v1
.line 1
invoke-virtual {v0, v1}, Lcom/google/ar/core/Session;->convertNativeAnchorsToCollection([J)Ljava/util/Collection;
move-result-object v0
return-object v0
.end method
.method public getTrackingState()Lcom/google/ar/core/TrackingState;
.locals 4
iget-object v0, p0, Lcom/google/ar/core/TrackableBase;->session:Lcom/google/ar/core/Session;
.line 1
iget-wide v0, v0, Lcom/google/ar/core/Session;->nativeWrapperHandle:J
iget-wide v2, p0, Lcom/google/ar/core/TrackableBase;->nativeHandle:J
.line 2
invoke-direct {p0, v0, v1, v2, v3}, Lcom/google/ar/core/TrackableBase;->nativeGetTrackingState(JJ)I
move-result v0
.line 1
invoke-static {v0}, Lcom/google/ar/core/TrackingState;->forNumber(I)Lcom/google/ar/core/TrackingState;
move-result-object v0
return-object v0
.end method
.method public hashCode()I
.locals 2
iget-wide v0, p0, Lcom/google/ar/core/TrackableBase;->nativeHandle:J
.line 1
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Long;->hashCode()I
move-result v0
return v0
.end method

View File

@@ -0,0 +1,236 @@
.class public final enum Lcom/google/ar/core/TrackingFailureReason;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/ar/core/TrackingFailureReason;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/ar/core/TrackingFailureReason;
.field public static final enum BAD_STATE:Lcom/google/ar/core/TrackingFailureReason;
.field public static final enum CAMERA_UNAVAILABLE:Lcom/google/ar/core/TrackingFailureReason;
.field public static final enum EXCESSIVE_MOTION:Lcom/google/ar/core/TrackingFailureReason;
.field public static final enum INSUFFICIENT_FEATURES:Lcom/google/ar/core/TrackingFailureReason;
.field public static final enum INSUFFICIENT_LIGHT:Lcom/google/ar/core/TrackingFailureReason;
.field public static final enum NONE:Lcom/google/ar/core/TrackingFailureReason;
# instance fields
.field final nativeCode:I
# direct methods
.method private static synthetic $values()[Lcom/google/ar/core/TrackingFailureReason;
.locals 6
sget-object v0, Lcom/google/ar/core/TrackingFailureReason;->NONE:Lcom/google/ar/core/TrackingFailureReason;
sget-object v1, Lcom/google/ar/core/TrackingFailureReason;->BAD_STATE:Lcom/google/ar/core/TrackingFailureReason;
sget-object v2, Lcom/google/ar/core/TrackingFailureReason;->INSUFFICIENT_LIGHT:Lcom/google/ar/core/TrackingFailureReason;
sget-object v3, Lcom/google/ar/core/TrackingFailureReason;->EXCESSIVE_MOTION:Lcom/google/ar/core/TrackingFailureReason;
sget-object v4, Lcom/google/ar/core/TrackingFailureReason;->INSUFFICIENT_FEATURES:Lcom/google/ar/core/TrackingFailureReason;
sget-object v5, Lcom/google/ar/core/TrackingFailureReason;->CAMERA_UNAVAILABLE:Lcom/google/ar/core/TrackingFailureReason;
filled-new-array/range {v0 .. v5}, [Lcom/google/ar/core/TrackingFailureReason;
move-result-object v0
return-object v0
.end method
.method static constructor <clinit>()V
.locals 3
.line 1
new-instance v0, Lcom/google/ar/core/TrackingFailureReason;
const-string v1, "NONE"
const/4 v2, 0x0
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/TrackingFailureReason;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/TrackingFailureReason;->NONE:Lcom/google/ar/core/TrackingFailureReason;
new-instance v0, Lcom/google/ar/core/TrackingFailureReason;
const-string v1, "BAD_STATE"
const/4 v2, 0x1
.line 2
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/TrackingFailureReason;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/TrackingFailureReason;->BAD_STATE:Lcom/google/ar/core/TrackingFailureReason;
new-instance v0, Lcom/google/ar/core/TrackingFailureReason;
const-string v1, "INSUFFICIENT_LIGHT"
const/4 v2, 0x2
.line 3
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/TrackingFailureReason;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/TrackingFailureReason;->INSUFFICIENT_LIGHT:Lcom/google/ar/core/TrackingFailureReason;
new-instance v0, Lcom/google/ar/core/TrackingFailureReason;
const-string v1, "EXCESSIVE_MOTION"
const/4 v2, 0x3
.line 4
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/TrackingFailureReason;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/TrackingFailureReason;->EXCESSIVE_MOTION:Lcom/google/ar/core/TrackingFailureReason;
new-instance v0, Lcom/google/ar/core/TrackingFailureReason;
const-string v1, "INSUFFICIENT_FEATURES"
const/4 v2, 0x4
.line 5
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/TrackingFailureReason;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/TrackingFailureReason;->INSUFFICIENT_FEATURES:Lcom/google/ar/core/TrackingFailureReason;
new-instance v0, Lcom/google/ar/core/TrackingFailureReason;
const-string v1, "CAMERA_UNAVAILABLE"
const/4 v2, 0x5
.line 6
invoke-direct {v0, v1, v2, v2}, Lcom/google/ar/core/TrackingFailureReason;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/ar/core/TrackingFailureReason;->CAMERA_UNAVAILABLE:Lcom/google/ar/core/TrackingFailureReason;
.line 7
invoke-static {}, Lcom/google/ar/core/TrackingFailureReason;->$values()[Lcom/google/ar/core/TrackingFailureReason;
move-result-object v0
sput-object v0, Lcom/google/ar/core/TrackingFailureReason;->$VALUES:[Lcom/google/ar/core/TrackingFailureReason;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput p3, p0, Lcom/google/ar/core/TrackingFailureReason;->nativeCode:I
return-void
.end method
.method public static forNumber(I)Lcom/google/ar/core/TrackingFailureReason;
.locals 5
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-static {}, Lcom/google/ar/core/TrackingFailureReason;->values()[Lcom/google/ar/core/TrackingFailureReason;
move-result-object v0
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_1
aget-object v3, v0, v2
.line 2
iget v4, v3, Lcom/google/ar/core/TrackingFailureReason;->nativeCode:I
if-ne v4, p0, :cond_0
return-object v3
:cond_0
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
new-instance v0, Lcom/google/ar/core/exceptions/FatalException;
new-instance v1, Ljava/lang/StringBuilder;
.line 3
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Unexpected value for native TrackingFailureReason, value="
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Lcom/google/ar/core/exceptions/FatalException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/ar/core/TrackingFailureReason;
.locals 1
const-class v0, Lcom/google/ar/core/TrackingFailureReason;
.line 1
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/ar/core/TrackingFailureReason;
return-object p0
.end method
.method public static values()[Lcom/google/ar/core/TrackingFailureReason;
.locals 1
sget-object v0, Lcom/google/ar/core/TrackingFailureReason;->$VALUES:[Lcom/google/ar/core/TrackingFailureReason;
.line 1
invoke-virtual {v0}, [Lcom/google/ar/core/TrackingFailureReason;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/ar/core/TrackingFailureReason;
return-object v0
.end method

Some files were not shown because too many files have changed in this diff Show More