granularity level: instruction

		.class public final Lcom/google/android/gms/common/data/DataHolder;
.super Lcom/google/android/gms/common/internal/safeparcel/AbstractSafeParcelable;
.source "com.google.android.gms:play-services-base@@18.0.1"
.implements Ljava/io/Closeable;

.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/android/gms/common/data/DataHolder$Builder;
}
.end annotation

.field public static final CREATOR:Landroid/os/Parcelable$Creator;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/os/Parcelable$Creator<",
"Lcom/google/android/gms/common/data/DataHolder;",
">;"
}
.end annotation
.end field
.field private static final zaf:Lcom/google/android/gms/common/data/DataHolder$Builder;
.field final zaa:I
.field  zab:Landroid/os/Bundle;
.field  zac:[I
.field  zad:I
.field  zae:Z
.field private final zag:[Ljava/lang/String;
.field private final zah:[Landroid/database/CursorWindow;
.field private final zai:I
.field private final zaj:Landroid/os/Bundle;
.field private zak:Z


.method static constructor <clinit>()V
	.locals 3

	new-instance v0, Lcom/google/android/gms/common/data/zaf;
	invoke-direct {v0}, Lcom/google/android/gms/common/data/zaf;-><init>()V
	sput-object v0, Lcom/google/android/gms/common/data/DataHolder;->CREATOR:Landroid/os/Parcelable$Creator;
	new-instance v0, Lcom/google/android/gms/common/data/zab;
	const/4 v1, 0x0
	new-array v1, v1, [Ljava/lang/String;
	const/4 v2, 0x0
	invoke-direct {v0, v1, v2}, Lcom/google/android/gms/common/data/zab;-><init>([Ljava/lang/String;Ljava/lang/String;)V
	sput-object v0, Lcom/google/android/gms/common/data/DataHolder;->zaf:Lcom/google/android/gms/common/data/DataHolder$Builder;
	return-void
.end method

.method constructor <init>(I[Ljava/lang/String;[Landroid/database/CursorWindow;ILandroid/os/Bundle;)V
	.locals 1

	invoke-direct {p0}, Lcom/google/android/gms/common/internal/safeparcel/AbstractSafeParcelable;-><init>()V
	const/4 v0, 0x0
	iput-boolean v0, p0, Lcom/google/android/gms/common/data/DataHolder;->zae:Z
	const/4 v0, 0x1
	iput-boolean v0, p0, Lcom/google/android/gms/common/data/DataHolder;->zak:Z
	iput p1, p0, Lcom/google/android/gms/common/data/DataHolder;->zaa:I
	iput-object p2, p0, Lcom/google/android/gms/common/data/DataHolder;->zag:[Ljava/lang/String;
	iput-object p3, p0, Lcom/google/android/gms/common/data/DataHolder;->zah:[Landroid/database/CursorWindow;
	iput p4, p0, Lcom/google/android/gms/common/data/DataHolder;->zai:I
	iput-object p5, p0, Lcom/google/android/gms/common/data/DataHolder;->zaj:Landroid/os/Bundle;
	return-void
.end method

.method public constructor <init>(Landroid/database/Cursor;ILandroid/os/Bundle;)V
	.locals 7

	new-instance v0, Lcom/google/android/gms/common/sqlite/CursorWrapper;
	invoke-direct {v0, p1}, Lcom/google/android/gms/common/sqlite/CursorWrapper;-><init>(Landroid/database/Cursor;)V
	invoke-virtual {v0}, Lcom/google/android/gms/common/sqlite/CursorWrapper;->getColumnNames()[Ljava/lang/String;
	move-result-object p1
	new-instance v1, Ljava/util/ArrayList;
	invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
	:try_start_0
	invoke-virtual {v0}, Lcom/google/android/gms/common/sqlite/CursorWrapper;->getCount()I
	move-result v2
	invoke-virtual {v0}, Lcom/google/android/gms/common/sqlite/CursorWrapper;->getWindow()Landroid/database/CursorWindow;
	move-result-object v3
	const/4 v4, 0x0
	const/4 v5, 0x0
	if-eqz v3, :cond_0
	invoke-virtual {v3}, Landroid/database/CursorWindow;->getStartPosition()I
	move-result v6
	if-nez v6, :cond_0
	invoke-virtual {v3}, Landroid/database/CursorWindow;->acquireReference()V
	invoke-virtual {v0, v4}, Lcom/google/android/gms/common/sqlite/CursorWrapper;->setWindow(Landroid/database/CursorWindow;)V
	invoke-virtual {v1, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
	invoke-virtual {v3}, Landroid/database/CursorWindow;->getNumRows()I
	move-result v3
	goto :goto_0
	:cond_0
	const/4 v3, 0x0
	:goto_0
	if-ge v3, v2, :cond_3
	invoke-virtual {v0, v3}, Lcom/google/android/gms/common/sqlite/CursorWrapper;->moveToPosition(I)Z
	move-result v6
	if-eqz v6, :cond_3
	invoke-virtual {v0}, Lcom/google/android/gms/common/sqlite/CursorWrapper;->getWindow()Landroid/database/CursorWindow;
	move-result-object v6
	if-eqz v6, :cond_1
	invoke-virtual {v6}, Landroid/database/CursorWindow;->acquireReference()V
	invoke-virtual {v0, v4}, Lcom/google/android/gms/common/sqlite/CursorWrapper;->setWindow(Landroid/database/CursorWindow;)V
	goto :goto_1
	:cond_1
	new-instance v6, Landroid/database/CursorWindow;
	invoke-direct {v6, v5}, Landroid/database/CursorWindow;-><init>(Z)V
	invoke-virtual {v6, v3}, Landroid/database/CursorWindow;->setStartPosition(I)V
	invoke-virtual {v0, v3, v6}, Lcom/google/android/gms/common/sqlite/CursorWrapper;->fillWindow(ILandroid/database/CursorWindow;)V
	:goto_1
	invoke-virtual {v6}, Landroid/database/CursorWindow;->getNumRows()I
	move-result v3
	if-nez v3, :cond_2
	goto :goto_2
	:cond_2
	invoke-virtual {v1, v6}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
	invoke-virtual {v6}, Landroid/database/CursorWindow;->getStartPosition()I
	move-result v3
	invoke-virtual {v6}, Landroid/database/CursorWindow;->getNumRows()I
	move-result v6
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	add-int/2addr v3, v6
	goto :goto_0
	:goto_2
	:cond_3
	invoke-virtual {v0}, Lcom/google/android/gms/common/sqlite/CursorWrapper;->close()V
	invoke-virtual {v1}, Ljava/util/ArrayList;->size()I
	move-result v0
	new-array v0, v0, [Landroid/database/CursorWindow;
	invoke-virtual {v1, v0}, Ljava/util/ArrayList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
	move-result-object v0
	check-cast v0, [Landroid/database/CursorWindow;
	invoke-direct {p0, p1, v0, p2, p3}, Lcom/google/android/gms/common/data/DataHolder;-><init>([Ljava/lang/String;[Landroid/database/CursorWindow;ILandroid/os/Bundle;)V
	return-void
	:catchall_0
	move-exception p1
	invoke-virtual {v0}, Lcom/google/android/gms/common/sqlite/CursorWrapper;->close()V
	throw p1
.end method

.method private constructor <init>(Lcom/google/android/gms/common/data/DataHolder$Builder;ILandroid/os/Bundle;)V
	.locals 1

	invoke-static {p1}, Lcom/google/android/gms/common/data/DataHolder$Builder;->zac(Lcom/google/android/gms/common/data/DataHolder$Builder;)[Ljava/lang/String;
	move-result-object p3
	const/4 v0, -0x1
	invoke-static {p1, v0}, Lcom/google/android/gms/common/data/DataHolder;->zaf(Lcom/google/android/gms/common/data/DataHolder$Builder;I)[Landroid/database/CursorWindow;
	move-result-object p1
	const/4 v0, 0x0
	invoke-direct {p0, p3, p1, p2, v0}, Lcom/google/android/gms/common/data/DataHolder;-><init>([Ljava/lang/String;[Landroid/database/CursorWindow;ILandroid/os/Bundle;)V
	return-void
.end method

.method synthetic constructor <init>(Lcom/google/android/gms/common/data/DataHolder$Builder;ILandroid/os/Bundle;ILcom/google/android/gms/common/data/zae;)V
	.locals 0

	invoke-static {p1}, Lcom/google/android/gms/common/data/DataHolder$Builder;->zac(Lcom/google/android/gms/common/data/DataHolder$Builder;)[Ljava/lang/String;
	move-result-object p4
	const/4 p5, -0x1
	invoke-static {p1, p5}, Lcom/google/android/gms/common/data/DataHolder;->zaf(Lcom/google/android/gms/common/data/DataHolder$Builder;I)[Landroid/database/CursorWindow;
	move-result-object p1
	invoke-direct {p0, p4, p1, p2, p3}, Lcom/google/android/gms/common/data/DataHolder;-><init>([Ljava/lang/String;[Landroid/database/CursorWindow;ILandroid/os/Bundle;)V
	return-void
.end method

.method synthetic constructor <init>(Lcom/google/android/gms/common/data/DataHolder$Builder;ILandroid/os/Bundle;Lcom/google/android/gms/common/data/zae;)V
	.locals 0

	const/4 p3, 0x0
	invoke-direct {p0, p1, p2, p3}, Lcom/google/android/gms/common/data/DataHolder;-><init>(Lcom/google/android/gms/common/data/DataHolder$Builder;ILandroid/os/Bundle;)V
	return-void
.end method

.method public constructor <init>([Ljava/lang/String;[Landroid/database/CursorWindow;ILandroid/os/Bundle;)V
	.locals 1

	invoke-direct {p0}, Lcom/google/android/gms/common/internal/safeparcel/AbstractSafeParcelable;-><init>()V
	const/4 v0, 0x0
	iput-boolean v0, p0, Lcom/google/android/gms/common/data/DataHolder;->zae:Z
	const/4 v0, 0x1
	iput-boolean v0, p0, Lcom/google/android/gms/common/data/DataHolder;->zak:Z
	iput v0, p0, Lcom/google/android/gms/common/data/DataHolder;->zaa:I
	invoke-static {p1}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object p1
	check-cast p1, [Ljava/lang/String;
	iput-object p1, p0, Lcom/google/android/gms/common/data/DataHolder;->zag:[Ljava/lang/String;
	invoke-static {p2}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object p1
	check-cast p1, [Landroid/database/CursorWindow;
	iput-object p1, p0, Lcom/google/android/gms/common/data/DataHolder;->zah:[Landroid/database/CursorWindow;
	iput p3, p0, Lcom/google/android/gms/common/data/DataHolder;->zai:I
	iput-object p4, p0, Lcom/google/android/gms/common/data/DataHolder;->zaj:Landroid/os/Bundle;
	invoke-virtual {p0}, Lcom/google/android/gms/common/data/DataHolder;->zad()V
	return-void
.end method

.method public static builder([Ljava/lang/String;)Lcom/google/android/gms/common/data/DataHolder$Builder;
	.locals 2

	new-instance v0, Lcom/google/android/gms/common/data/DataHolder$Builder;
	const/4 v1, 0x0
	invoke-direct {v0, p0, v1, v1}, Lcom/google/android/gms/common/data/DataHolder$Builder;-><init>([Ljava/lang/String;Ljava/lang/String;Lcom/google/android/gms/common/data/zac;)V
	return-object v0
.end method

.method public static empty(I)Lcom/google/android/gms/common/data/DataHolder;
	.locals 3

	new-instance v0, Lcom/google/android/gms/common/data/DataHolder;
	sget-object v1, Lcom/google/android/gms/common/data/DataHolder;->zaf:Lcom/google/android/gms/common/data/DataHolder$Builder;
	const/4 v2, 0x0
	invoke-direct {v0, v1, p0, v2}, Lcom/google/android/gms/common/data/DataHolder;-><init>(Lcom/google/android/gms/common/data/DataHolder$Builder;ILandroid/os/Bundle;)V
	return-object v0
.end method

.method private final zae(Ljava/lang/String;I)V
	.locals 2

	iget-object v0, p0, Lcom/google/android/gms/common/data/DataHolder;->zab:Landroid/os/Bundle;
	if-eqz v0, :cond_3
	invoke-virtual {v0, p1}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z
	move-result v0
	if-nez v0, :cond_0
	goto :goto_0
	:cond_0
	invoke-virtual {p0}, Lcom/google/android/gms/common/data/DataHolder;->isClosed()Z
	move-result p1
	if-nez p1, :cond_2
	if-ltz p2, :cond_1
	iget p1, p0, Lcom/google/android/gms/common/data/DataHolder;->zad:I
	if-ge p2, p1, :cond_1
	return-void
	:cond_1
	new-instance p1, Landroid/database/CursorIndexOutOfBoundsException;
	iget v0, p0, Lcom/google/android/gms/common/data/DataHolder;->zad:I
	invoke-direct {p1, p2, v0}, Landroid/database/CursorIndexOutOfBoundsException;-><init>(II)V
	throw p1
	:cond_2
	new-instance p1, Ljava/lang/IllegalArgumentException;
	const-string p2, "Buffer is closed."
	invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
	throw p1
	:goto_0
	:cond_3
	new-instance p2, Ljava/lang/IllegalArgumentException;
	invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
	move-result-object p1
	const-string v0, "No such column: "
	invoke-virtual {p1}, Ljava/lang/String;->length()I
	move-result v1
	if-eqz v1, :cond_4
	invoke-virtual {v0, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
	move-result-object p1
	goto :goto_1
	:cond_4
	new-instance p1, Ljava/lang/String;
	invoke-direct {p1, v0}, Ljava/lang/String;-><init>(Ljava/lang/String;)V
	:goto_1
	invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
	throw p2
.end method

.method private static zaf(Lcom/google/android/gms/common/data/DataHolder$Builder;I)[Landroid/database/CursorWindow;
	.locals 13

	invoke-static {p0}, Lcom/google/android/gms/common/data/DataHolder$Builder;->zac(Lcom/google/android/gms/common/data/DataHolder$Builder;)[Ljava/lang/String;
	move-result-object p1
	array-length p1, p1
	const/4 v0, 0x0
	if-nez p1, :cond_0
	new-array p0, v0, [Landroid/database/CursorWindow;
	return-object p0
	:cond_0
	invoke-static {p0}, Lcom/google/android/gms/common/data/DataHolder$Builder;->zab(Lcom/google/android/gms/common/data/DataHolder$Builder;)Ljava/util/ArrayList;
	move-result-object p1
	invoke-interface {p1}, Ljava/util/List;->size()I
	move-result v1
	new-instance v2, Landroid/database/CursorWindow;
	invoke-direct {v2, v0}, Landroid/database/CursorWindow;-><init>(Z)V
	new-instance v3, Ljava/util/ArrayList;
	invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V
	invoke-virtual {v3, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
	invoke-static {p0}, Lcom/google/android/gms/common/data/DataHolder$Builder;->zac(Lcom/google/android/gms/common/data/DataHolder$Builder;)[Ljava/lang/String;
	move-result-object v4
	array-length v4, v4
	invoke-virtual {v2, v4}, Landroid/database/CursorWindow;->setNumColumns(I)Z
	const/4 v4, 0x0
	const/4 v5, 0x0
	:goto_0
	if-ge v4, v1, :cond_f
	:try_start_0
	invoke-virtual {v2}, Landroid/database/CursorWindow;->allocRow()Z
	move-result v6
	:try_end_0
	.catch Ljava/lang/RuntimeException; {:try_start_0 .. :try_end_0} :catch_0
	const-string v7, "DataHolder"
	if-nez v6, :cond_1
	:try_start_1
	new-instance v2, Ljava/lang/StringBuilder;
	const/16 v6, 0x48
	invoke-direct {v2, v6}, Ljava/lang/StringBuilder;-><init>(I)V
	const-string v6, "Allocating additional cursor window for large data set (row "
	invoke-virtual {v2, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
	const-string v6, ")"
	invoke-virtual {v2, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object v2
	invoke-static {v7, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
	new-instance v2, Landroid/database/CursorWindow;
	invoke-direct {v2, v0}, Landroid/database/CursorWindow;-><init>(Z)V
	invoke-virtual {v2, v4}, Landroid/database/CursorWindow;->setStartPosition(I)V
	invoke-static {p0}, Lcom/google/android/gms/common/data/DataHolder$Builder;->zac(Lcom/google/android/gms/common/data/DataHolder$Builder;)[Ljava/lang/String;
	move-result-object v6
	array-length v6, v6
	invoke-virtual {v2, v6}, Landroid/database/CursorWindow;->setNumColumns(I)Z
	invoke-virtual {v3, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
	invoke-virtual {v2}, Landroid/database/CursorWindow;->allocRow()Z
	move-result v6
	if-nez v6, :cond_1
	const-string p0, "Unable to allocate row to hold data."
	invoke-static {v7, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
	invoke-virtual {v3, v2}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z
	invoke-virtual {v3}, Ljava/util/ArrayList;->size()I
	move-result p0
	new-array p0, p0, [Landroid/database/CursorWindow;
	invoke-virtual {v3, p0}, Ljava/util/ArrayList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
	move-result-object p0
	check-cast p0, [Landroid/database/CursorWindow;
	return-object p0
	:cond_1
	invoke-interface {p1, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;
	move-result-object v6
	check-cast v6, Ljava/util/Map;
	const/4 v8, 0x1
	const/4 v9, 0x0
	const/4 v10, 0x1
	:goto_1
	invoke-static {p0}, Lcom/google/android/gms/common/data/DataHolder$Builder;->zac(Lcom/google/android/gms/common/data/DataHolder$Builder;)[Ljava/lang/String;
	move-result-object v11
	array-length v11, v11
	if-ge v9, v11, :cond_b
	if-eqz v10, :cond_c
	invoke-static {p0}, Lcom/google/android/gms/common/data/DataHolder$Builder;->zac(Lcom/google/android/gms/common/data/DataHolder$Builder;)[Ljava/lang/String;
	move-result-object v10
	aget-object v10, v10, v9
	invoke-interface {v6, v10}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object v11
	if-nez v11, :cond_2
	invoke-virtual {v2, v4, v9}, Landroid/database/CursorWindow;->putNull(II)Z
	move-result v10
	goto/16 :goto_3
	:cond_2
	instance-of v12, v11, Ljava/lang/String;
	if-eqz v12, :cond_3
	check-cast v11, Ljava/lang/String;
	invoke-virtual {v2, v11, v4, v9}, Landroid/database/CursorWindow;->putString(Ljava/lang/String;II)Z
	move-result v10
	goto :goto_3
	:cond_3
	instance-of v12, v11, Ljava/lang/Long;
	if-eqz v12, :cond_4
	check-cast v11, Ljava/lang/Long;
	invoke-virtual {v11}, Ljava/lang/Long;->longValue()J
	move-result-wide v10
	invoke-virtual {v2, v10, v11, v4, v9}, Landroid/database/CursorWindow;->putLong(JII)Z
	move-result v10
	goto :goto_3
	:cond_4
	instance-of v12, v11, Ljava/lang/Integer;
	if-eqz v12, :cond_5
	check-cast v11, Ljava/lang/Integer;
	invoke-virtual {v11}, Ljava/lang/Integer;->intValue()I
	move-result v10
	int-to-long v10, v10
	invoke-virtual {v2, v10, v11, v4, v9}, Landroid/database/CursorWindow;->putLong(JII)Z
	move-result v10
	goto :goto_3
	:cond_5
	instance-of v12, v11, Ljava/lang/Boolean;
	if-eqz v12, :cond_7
	check-cast v11, Ljava/lang/Boolean;
	invoke-virtual {v11}, Ljava/lang/Boolean;->booleanValue()Z
	move-result v10
	if-eq v8, v10, :cond_6
	const-wide/16 v10, 0x0
	goto :goto_2
	:cond_6
	const-wide/16 v10, 0x1
	:goto_2
	invoke-virtual {v2, v10, v11, v4, v9}, Landroid/database/CursorWindow;->putLong(JII)Z
	move-result v10
	goto :goto_3
	:cond_7
	instance-of v12, v11, [B
	if-eqz v12, :cond_8
	check-cast v11, [B
	invoke-virtual {v2, v11, v4, v9}, Landroid/database/CursorWindow;->putBlob([BII)Z
	move-result v10
	goto :goto_3
	:cond_8
	instance-of v12, v11, Ljava/lang/Double;
	if-eqz v12, :cond_9
	check-cast v11, Ljava/lang/Double;
	invoke-virtual {v11}, Ljava/lang/Double;->doubleValue()D
	move-result-wide v10
	invoke-virtual {v2, v10, v11, v4, v9}, Landroid/database/CursorWindow;->putDouble(DII)Z
	move-result v10
	goto :goto_3
	:cond_9
	instance-of v12, v11, Ljava/lang/Float;
	if-eqz v12, :cond_a
	check-cast v11, Ljava/lang/Float;
	invoke-virtual {v11}, Ljava/lang/Float;->floatValue()F
	move-result v10
	float-to-double v10, v10
	invoke-virtual {v2, v10, v11, v4, v9}, Landroid/database/CursorWindow;->putDouble(DII)Z
	move-result v10
	:goto_3
	add-int/lit8 v9, v9, 0x1
	goto/16 :goto_1
	:cond_a
	new-instance p0, Ljava/lang/IllegalArgumentException;
	invoke-virtual {v11}, Ljava/lang/Object;->toString()Ljava/lang/String;
	move-result-object p1
	invoke-static {v10}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
	move-result-object v1
	invoke-virtual {v1}, Ljava/lang/String;->length()I
	move-result v1
	add-int/lit8 v1, v1, 0x20
	invoke-virtual {p1}, Ljava/lang/String;->length()I
	move-result v2
	add-int/2addr v1, v2
	new-instance v2, Ljava/lang/StringBuilder;
	invoke-direct {v2, v1}, Ljava/lang/StringBuilder;-><init>(I)V
	const-string v1, "Unsupported object for column "
	invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v2, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	const-string v1, ": "
	invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object p1
	invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
	throw p0
	:cond_b
	if-eqz v10, :cond_c
	const/4 v5, 0x0
	goto :goto_4
	:cond_c
	if-nez v5, :cond_d
	new-instance v5, Ljava/lang/StringBuilder;
	const/16 v6, 0x4a
	invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(I)V
	const-string v6, "Couldn\'t populate window data for row "
	invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v5, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
	const-string v6, " - allocating new window."
	invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object v5
	invoke-static {v7, v5}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
	invoke-virtual {v2}, Landroid/database/CursorWindow;->freeLastRow()V
	new-instance v2, Landroid/database/CursorWindow;
	invoke-direct {v2, v0}, Landroid/database/CursorWindow;-><init>(Z)V
	invoke-virtual {v2, v4}, Landroid/database/CursorWindow;->setStartPosition(I)V
	invoke-static {p0}, Lcom/google/android/gms/common/data/DataHolder$Builder;->zac(Lcom/google/android/gms/common/data/DataHolder$Builder;)[Ljava/lang/String;
	move-result-object v5
	array-length v5, v5
	invoke-virtual {v2, v5}, Landroid/database/CursorWindow;->setNumColumns(I)Z
	invoke-virtual {v3, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
	add-int/lit8 v4, v4, -0x1
	const/4 v5, 0x1
	:goto_4
	add-int/2addr v4, v8
	goto/16 :goto_0
	:cond_d
	const-string p0, "Could not add the value to a new CursorWindow. The size of value may be larger than what a CursorWindow can handle."
	new-instance p1, Lcom/google/android/gms/common/data/zad;
	invoke-direct {p1, p0}, Lcom/google/android/gms/common/data/zad;-><init>(Ljava/lang/String;)V
	throw p1
	:try_end_1
	.catch Ljava/lang/RuntimeException; {:try_start_1 .. :try_end_1} :catch_0
	:catch_0
	move-exception p0
	invoke-virtual {v3}, Ljava/util/ArrayList;->size()I
	move-result p1
	:goto_5
	if-ge v0, p1, :cond_e
	invoke-virtual {v3, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
	move-result-object v1
	check-cast v1, Landroid/database/CursorWindow;
	invoke-virtual {v1}, Landroid/database/CursorWindow;->close()V
	add-int/lit8 v0, v0, 0x1
	goto :goto_5
	:cond_e
	throw p0
	:cond_f
	invoke-virtual {v3}, Ljava/util/ArrayList;->size()I
	move-result p0
	new-array p0, p0, [Landroid/database/CursorWindow;
	invoke-virtual {v3, p0}, Ljava/util/ArrayList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
	move-result-object p0
	check-cast p0, [Landroid/database/CursorWindow;
	return-object p0
.end method

.method public close()V
	.locals 3

	monitor-enter p0
	:try_start_0
	iget-boolean v0, p0, Lcom/google/android/gms/common/data/DataHolder;->zae:Z
	if-nez v0, :cond_0
	const/4 v0, 0x1
	iput-boolean v0, p0, Lcom/google/android/gms/common/data/DataHolder;->zae:Z
	const/4 v0, 0x0
	:goto_0
	iget-object v1, p0, Lcom/google/android/gms/common/data/DataHolder;->zah:[Landroid/database/CursorWindow;
	array-length v2, v1
	if-ge v0, v2, :cond_0
	aget-object v1, v1, v0
	invoke-virtual {v1}, Landroid/database/CursorWindow;->close()V
	add-int/lit8 v0, v0, 0x1
	goto :goto_0
	:cond_0
	monitor-exit p0
	return-void
	:catchall_0
	move-exception v0
	monitor-exit p0
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	throw v0
.end method

.method protected final finalize()V
	.locals 4
	.annotation system Ldalvik/annotation/Throws;
	value = {
	Ljava/lang/Throwable;
	}
	.end annotation

	:try_start_0
	iget-boolean v0, p0, Lcom/google/android/gms/common/data/DataHolder;->zak:Z
	if-eqz v0, :cond_0
	iget-object v0, p0, Lcom/google/android/gms/common/data/DataHolder;->zah:[Landroid/database/CursorWindow;
	array-length v0, v0
	if-lez v0, :cond_0
	invoke-virtual {p0}, Lcom/google/android/gms/common/data/DataHolder;->isClosed()Z
	move-result v0
	if-nez v0, :cond_0
	invoke-virtual {p0}, Lcom/google/android/gms/common/data/DataHolder;->close()V
	const-string v0, "DataBuffer"
	invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
	move-result-object v1
	invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
	move-result-object v2
	invoke-virtual {v2}, Ljava/lang/String;->length()I
	move-result v2
	add-int/lit16 v2, v2, 0xb2
	new-instance v3, Ljava/lang/StringBuilder;
	invoke-direct {v3, v2}, Ljava/lang/StringBuilder;-><init>(I)V
	const-string v2, "Internal data leak within a DataBuffer object detected!  Be sure to explicitly call release() on all DataBuffer extending objects when you are done with them. (internal object: "
	invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	const-string v1, ")"
	invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object v1
	invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	:cond_0
	invoke-super {p0}, Ljava/lang/Object;->finalize()V
	return-void
	:catchall_0
	move-exception v0
	invoke-super {p0}, Ljava/lang/Object;->finalize()V
	throw v0
.end method

.method public getBoolean(Ljava/lang/String;II)Z
	.locals 2

	invoke-direct {p0, p1, p2}, Lcom/google/android/gms/common/data/DataHolder;->zae(Ljava/lang/String;I)V
	iget-object v0, p0, Lcom/google/android/gms/common/data/DataHolder;->zah:[Landroid/database/CursorWindow;
	aget-object p3, v0, p3
	iget-object v0, p0, Lcom/google/android/gms/common/data/DataHolder;->zab:Landroid/os/Bundle;
	invoke-virtual {v0, p1}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I
	move-result p1
	invoke-virtual {p3, p2, p1}, Landroid/database/CursorWindow;->getLong(II)J
	move-result-wide p1
	invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
	move-result-object p1
	invoke-virtual {p1}, Ljava/lang/Long;->longValue()J
	move-result-wide p1
	const-wide/16 v0, 0x1
	cmp-long p3, p1, v0
	if-nez p3, :cond_0
	const/4 p1, 0x1
	return p1
	:cond_0
	const/4 p1, 0x0
	return p1
.end method

.method public getByteArray(Ljava/lang/String;II)[B
	.locals 1

	invoke-direct {p0, p1, p2}, Lcom/google/android/gms/common/data/DataHolder;->zae(Ljava/lang/String;I)V
	iget-object v0, p0, Lcom/google/android/gms/common/data/DataHolder;->zah:[Landroid/database/CursorWindow;
	aget-object p3, v0, p3
	iget-object v0, p0, Lcom/google/android/gms/common/data/DataHolder;->zab:Landroid/os/Bundle;
	invoke-virtual {v0, p1}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I
	move-result p1
	invoke-virtual {p3, p2, p1}, Landroid/database/CursorWindow;->getBlob(II)[B
	move-result-object p1
	return-object p1
.end method

.method public getCount()I
	.locals 1

	iget v0, p0, Lcom/google/android/gms/common/data/DataHolder;->zad:I
	return v0
.end method

.method public getInteger(Ljava/lang/String;II)I
	.locals 1

	invoke-direct {p0, p1, p2}, Lcom/google/android/gms/common/data/DataHolder;->zae(Ljava/lang/String;I)V
	iget-object v0, p0, Lcom/google/android/gms/common/data/DataHolder;->zah:[Landroid/database/CursorWindow;
	aget-object p3, v0, p3
	iget-object v0, p0, Lcom/google/android/gms/common/data/DataHolder;->zab:Landroid/os/Bundle;
	invoke-virtual {v0, p1}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I
	move-result p1
	invoke-virtual {p3, p2, p1}, Landroid/database/CursorWindow;->getInt(II)I
	move-result p1
	return p1
.end method

.method public getLong(Ljava/lang/String;II)J
	.locals 1

	invoke-direct {p0, p1, p2}, Lcom/google/android/gms/common/data/DataHolder;->zae(Ljava/lang/String;I)V
	iget-object v0, p0, Lcom/google/android/gms/common/data/DataHolder;->zah:[Landroid/database/CursorWindow;
	aget-object p3, v0, p3
	iget-object v0, p0, Lcom/google/android/gms/common/data/DataHolder;->zab:Landroid/os/Bundle;
	invoke-virtual {v0, p1}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I
	move-result p1
	invoke-virtual {p3, p2, p1}, Landroid/database/CursorWindow;->getLong(II)J
	move-result-wide p1
	return-wide p1
.end method

.method public getMetadata()Landroid/os/Bundle;
	.locals 1

	iget-object v0, p0, Lcom/google/android/gms/common/data/DataHolder;->zaj:Landroid/os/Bundle;
	return-object v0
.end method

.method public getStatusCode()I
	.locals 1

	iget v0, p0, Lcom/google/android/gms/common/data/DataHolder;->zai:I
	return v0
.end method

.method public getString(Ljava/lang/String;II)Ljava/lang/String;
	.locals 1

	invoke-direct {p0, p1, p2}, Lcom/google/android/gms/common/data/DataHolder;->zae(Ljava/lang/String;I)V
	iget-object v0, p0, Lcom/google/android/gms/common/data/DataHolder;->zah:[Landroid/database/CursorWindow;
	aget-object p3, v0, p3
	iget-object v0, p0, Lcom/google/android/gms/common/data/DataHolder;->zab:Landroid/os/Bundle;
	invoke-virtual {v0, p1}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I
	move-result p1
	invoke-virtual {p3, p2, p1}, Landroid/database/CursorWindow;->getString(II)Ljava/lang/String;
	move-result-object p1
	return-object p1
.end method

.method public getWindowIndex(I)I
	.locals 3

	const/4 v0, 0x0
	if-ltz p1, :cond_0
	iget v1, p0, Lcom/google/android/gms/common/data/DataHolder;->zad:I
	if-ge p1, v1, :cond_0
	const/4 v1, 0x1
	goto :goto_0
	:cond_0
	const/4 v1, 0x0
	:goto_0
	invoke-static {v1}, Lcom/google/android/gms/common/internal/Preconditions;->checkState(Z)V
	:goto_1
	iget-object v1, p0, Lcom/google/android/gms/common/data/DataHolder;->zac:[I
	array-length v2, v1
	if-ge v0, v2, :cond_2
	aget v1, v1, v0
	if-ge p1, v1, :cond_1
	add-int/lit8 v0, v0, -0x1
	goto :goto_2
	:cond_1
	add-int/lit8 v0, v0, 0x1
	goto :goto_1
	:goto_2
	:cond_2
	if-ne v0, v2, :cond_3
	add-int/lit8 v0, v0, -0x1
	:cond_3
	return v0
.end method

.method public hasColumn(Ljava/lang/String;)Z
	.locals 1

	iget-object v0, p0, Lcom/google/android/gms/common/data/DataHolder;->zab:Landroid/os/Bundle;
	invoke-virtual {v0, p1}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z
	move-result p1
	return p1
.end method

.method public hasNull(Ljava/lang/String;II)Z
	.locals 1

	invoke-direct {p0, p1, p2}, Lcom/google/android/gms/common/data/DataHolder;->zae(Ljava/lang/String;I)V
	iget-object v0, p0, Lcom/google/android/gms/common/data/DataHolder;->zah:[Landroid/database/CursorWindow;
	aget-object p3, v0, p3
	iget-object v0, p0, Lcom/google/android/gms/common/data/DataHolder;->zab:Landroid/os/Bundle;
	invoke-virtual {v0, p1}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I
	move-result p1
	invoke-virtual {p3, p2, p1}, Landroid/database/CursorWindow;->isNull(II)Z
	move-result p1
	return p1
.end method

.method public isClosed()Z
	.locals 1

	monitor-enter p0
	:try_start_0
	iget-boolean v0, p0, Lcom/google/android/gms/common/data/DataHolder;->zae:Z
	monitor-exit p0
	return v0
	:catchall_0
	move-exception v0
	monitor-exit p0
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	throw v0
.end method

.method public final writeToParcel(Landroid/os/Parcel;I)V
	.locals 5

	invoke-static {p1}, Lcom/google/android/gms/common/internal/safeparcel/SafeParcelWriter;->beginObjectHeader(Landroid/os/Parcel;)I
	move-result v0
	iget-object v1, p0, Lcom/google/android/gms/common/data/DataHolder;->zag:[Ljava/lang/String;
	const/4 v2, 0x1
	const/4 v3, 0x0
	invoke-static {p1, v2, v1, v3}, Lcom/google/android/gms/common/internal/safeparcel/SafeParcelWriter;->writeStringArray(Landroid/os/Parcel;I[Ljava/lang/String;Z)V
	iget-object v1, p0, Lcom/google/android/gms/common/data/DataHolder;->zah:[Landroid/database/CursorWindow;
	const/4 v4, 0x2
	invoke-static {p1, v4, v1, p2, v3}, Lcom/google/android/gms/common/internal/safeparcel/SafeParcelWriter;->writeTypedArray(Landroid/os/Parcel;I[Landroid/os/Parcelable;IZ)V
	invoke-virtual {p0}, Lcom/google/android/gms/common/data/DataHolder;->getStatusCode()I
	move-result v1
	const/4 v4, 0x3
	invoke-static {p1, v4, v1}, Lcom/google/android/gms/common/internal/safeparcel/SafeParcelWriter;->writeInt(Landroid/os/Parcel;II)V
	invoke-virtual {p0}, Lcom/google/android/gms/common/data/DataHolder;->getMetadata()Landroid/os/Bundle;
	move-result-object v1
	const/4 v4, 0x4
	invoke-static {p1, v4, v1, v3}, Lcom/google/android/gms/common/internal/safeparcel/SafeParcelWriter;->writeBundle(Landroid/os/Parcel;ILandroid/os/Bundle;Z)V
	iget v1, p0, Lcom/google/android/gms/common/data/DataHolder;->zaa:I
	const/16 v3, 0x3e8
	invoke-static {p1, v3, v1}, Lcom/google/android/gms/common/internal/safeparcel/SafeParcelWriter;->writeInt(Landroid/os/Parcel;II)V
	invoke-static {p1, v0}, Lcom/google/android/gms/common/internal/safeparcel/SafeParcelWriter;->finishObjectHeader(Landroid/os/Parcel;I)V
	and-int/lit8 p1, p2, 0x1
	if-eqz p1, :cond_0
	invoke-virtual {p0}, Lcom/google/android/gms/common/data/DataHolder;->close()V
	:cond_0
	return-void
.end method

.method public final zaa(Ljava/lang/String;II)D
	.locals 1

	invoke-direct {p0, p1, p2}, Lcom/google/android/gms/common/data/DataHolder;->zae(Ljava/lang/String;I)V
	iget-object v0, p0, Lcom/google/android/gms/common/data/DataHolder;->zah:[Landroid/database/CursorWindow;
	aget-object p3, v0, p3
	iget-object v0, p0, Lcom/google/android/gms/common/data/DataHolder;->zab:Landroid/os/Bundle;
	invoke-virtual {v0, p1}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I
	move-result p1
	invoke-virtual {p3, p2, p1}, Landroid/database/CursorWindow;->getDouble(II)D
	move-result-wide p1
	return-wide p1
.end method

.method public final zab(Ljava/lang/String;II)F
	.locals 1

	invoke-direct {p0, p1, p2}, Lcom/google/android/gms/common/data/DataHolder;->zae(Ljava/lang/String;I)V
	iget-object v0, p0, Lcom/google/android/gms/common/data/DataHolder;->zah:[Landroid/database/CursorWindow;
	aget-object p3, v0, p3
	iget-object v0, p0, Lcom/google/android/gms/common/data/DataHolder;->zab:Landroid/os/Bundle;
	invoke-virtual {v0, p1}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I
	move-result p1
	invoke-virtual {p3, p2, p1}, Landroid/database/CursorWindow;->getFloat(II)F
	move-result p1
	return p1
.end method

.method public final zac(Ljava/lang/String;IILandroid/database/CharArrayBuffer;)V
	.locals 1

	invoke-direct {p0, p1, p2}, Lcom/google/android/gms/common/data/DataHolder;->zae(Ljava/lang/String;I)V
	iget-object v0, p0, Lcom/google/android/gms/common/data/DataHolder;->zah:[Landroid/database/CursorWindow;
	aget-object p3, v0, p3
	iget-object v0, p0, Lcom/google/android/gms/common/data/DataHolder;->zab:Landroid/os/Bundle;
	invoke-virtual {v0, p1}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I
	move-result p1
	invoke-virtual {p3, p2, p1, p4}, Landroid/database/CursorWindow;->copyStringToBuffer(IILandroid/database/CharArrayBuffer;)V
	return-void
.end method

.method public final zad()V
	.locals 4

	new-instance v0, Landroid/os/Bundle;
	invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
	iput-object v0, p0, Lcom/google/android/gms/common/data/DataHolder;->zab:Landroid/os/Bundle;
	const/4 v0, 0x0
	const/4 v1, 0x0
	:goto_0
	iget-object v2, p0, Lcom/google/android/gms/common/data/DataHolder;->zag:[Ljava/lang/String;
	array-length v3, v2
	if-ge v1, v3, :cond_0
	iget-object v3, p0, Lcom/google/android/gms/common/data/DataHolder;->zab:Landroid/os/Bundle;
	aget-object v2, v2, v1
	invoke-virtual {v3, v2, v1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
	add-int/lit8 v1, v1, 0x1
	goto :goto_0
	:cond_0
	iget-object v1, p0, Lcom/google/android/gms/common/data/DataHolder;->zah:[Landroid/database/CursorWindow;
	array-length v1, v1
	new-array v1, v1, [I
	iput-object v1, p0, Lcom/google/android/gms/common/data/DataHolder;->zac:[I
	const/4 v1, 0x0
	:goto_1
	iget-object v2, p0, Lcom/google/android/gms/common/data/DataHolder;->zah:[Landroid/database/CursorWindow;
	array-length v3, v2
	if-ge v0, v3, :cond_1
	iget-object v3, p0, Lcom/google/android/gms/common/data/DataHolder;->zac:[I
	aput v1, v3, v0
	aget-object v2, v2, v0
	invoke-virtual {v2}, Landroid/database/CursorWindow;->getStartPosition()I
	move-result v2
	iget-object v3, p0, Lcom/google/android/gms/common/data/DataHolder;->zah:[Landroid/database/CursorWindow;
	aget-object v3, v3, v0
	invoke-virtual {v3}, Landroid/database/CursorWindow;->getNumRows()I
	move-result v3
	sub-int v2, v1, v2
	sub-int/2addr v3, v2
	add-int/2addr v1, v3
	add-int/lit8 v0, v0, 0x1
	goto :goto_1
	:cond_1
	iput v1, p0, Lcom/google/android/gms/common/data/DataHolder;->zad:I
	return-void
.end method