469 lines
12 KiB
Smali
469 lines
12 KiB
Smali
.class public abstract Lcom/google/android/gms/internal/measurement/bz;
|
|
.super Ljava/lang/Object;
|
|
|
|
# interfaces
|
|
.implements Lcom/google/android/gms/internal/measurement/fb;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<MessageType:",
|
|
"Lcom/google/android/gms/internal/measurement/bz<",
|
|
"TMessageType;TBuilderType;>;BuilderType:",
|
|
"Lcom/google/android/gms/internal/measurement/cb<",
|
|
"TMessageType;TBuilderType;>;>",
|
|
"Ljava/lang/Object;",
|
|
"Lcom/google/android/gms/internal/measurement/fb;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static zzacu:Z = false
|
|
|
|
|
|
# instance fields
|
|
.field protected zzact:I
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput v0, p0, Lcom/google/android/gms/internal/measurement/bz;->zzact:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected static a(Ljava/lang/Iterable;Ljava/util/List;)V
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Ljava/lang/Iterable<",
|
|
"TT;>;",
|
|
"Ljava/util/List<",
|
|
"-TT;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-static {p0}, Lcom/google/android/gms/internal/measurement/ds;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
instance-of v0, p0, Lcom/google/android/gms/internal/measurement/ei;
|
|
|
|
const-string v1, " is null."
|
|
|
|
const-string v2, "Element at index "
|
|
|
|
const/16 v3, 0x25
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
check-cast p0, Lcom/google/android/gms/internal/measurement/ei;
|
|
|
|
invoke-interface {p0}, Lcom/google/android/gms/internal/measurement/ei;->sC()Ljava/util/List;
|
|
|
|
move-result-object p0
|
|
|
|
move-object v0, p1
|
|
|
|
check-cast v0, Lcom/google/android/gms/internal/measurement/ei;
|
|
|
|
invoke-interface {p1}, Ljava/util/List;->size()I
|
|
|
|
move-result p1
|
|
|
|
invoke-interface {p0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p0
|
|
|
|
:goto_0
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_3
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v4
|
|
|
|
if-nez v4, :cond_1
|
|
|
|
invoke-interface {v0}, Lcom/google/android/gms/internal/measurement/ei;->size()I
|
|
|
|
move-result p0
|
|
|
|
sub-int/2addr p0, p1
|
|
|
|
new-instance v4, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v4, v3}, Ljava/lang/StringBuilder;-><init>(I)V
|
|
|
|
invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v4, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-interface {v0}, Lcom/google/android/gms/internal/measurement/ei;->size()I
|
|
|
|
move-result v1
|
|
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
:goto_1
|
|
if-lt v1, p1, :cond_0
|
|
|
|
invoke-interface {v0, v1}, Lcom/google/android/gms/internal/measurement/ei;->remove(I)Ljava/lang/Object;
|
|
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/NullPointerException;
|
|
|
|
invoke-direct {p1, p0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:cond_1
|
|
instance-of v5, v4, Lcom/google/android/gms/internal/measurement/cj;
|
|
|
|
if-eqz v5, :cond_2
|
|
|
|
check-cast v4, Lcom/google/android/gms/internal/measurement/cj;
|
|
|
|
invoke-interface {v0, v4}, Lcom/google/android/gms/internal/measurement/ei;->c(Lcom/google/android/gms/internal/measurement/cj;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
check-cast v4, Ljava/lang/String;
|
|
|
|
invoke-interface {v0, v4}, Lcom/google/android/gms/internal/measurement/ei;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
return-void
|
|
|
|
:cond_4
|
|
instance-of v0, p0, Lcom/google/android/gms/internal/measurement/fn;
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
check-cast p0, Ljava/util/Collection;
|
|
|
|
invoke-interface {p1, p0}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
|
|
|
|
return-void
|
|
|
|
:cond_5
|
|
instance-of v0, p1, Ljava/util/ArrayList;
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
instance-of v0, p0, Ljava/util/Collection;
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
move-object v0, p1
|
|
|
|
check-cast v0, Ljava/util/ArrayList;
|
|
|
|
invoke-interface {p1}, Ljava/util/List;->size()I
|
|
|
|
move-result v4
|
|
|
|
move-object v5, p0
|
|
|
|
check-cast v5, Ljava/util/Collection;
|
|
|
|
invoke-interface {v5}, Ljava/util/Collection;->size()I
|
|
|
|
move-result v5
|
|
|
|
add-int/2addr v4, v5
|
|
|
|
invoke-virtual {v0, v4}, Ljava/util/ArrayList;->ensureCapacity(I)V
|
|
|
|
:cond_6
|
|
invoke-interface {p1}, Ljava/util/List;->size()I
|
|
|
|
move-result v0
|
|
|
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p0
|
|
|
|
:goto_2
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_9
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v4
|
|
|
|
if-nez v4, :cond_8
|
|
|
|
invoke-interface {p1}, Ljava/util/List;->size()I
|
|
|
|
move-result p0
|
|
|
|
sub-int/2addr p0, v0
|
|
|
|
new-instance v4, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v4, v3}, Ljava/lang/StringBuilder;-><init>(I)V
|
|
|
|
invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v4, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-interface {p1}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
:goto_3
|
|
if-lt v1, v0, :cond_7
|
|
|
|
invoke-interface {p1, v1}, Ljava/util/List;->remove(I)Ljava/lang/Object;
|
|
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_7
|
|
new-instance p1, Ljava/lang/NullPointerException;
|
|
|
|
invoke-direct {p1, p0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:cond_8
|
|
invoke-interface {p1, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_2
|
|
|
|
:cond_9
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method bG(I)V
|
|
.locals 0
|
|
|
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final qM()Lcom/google/android/gms/internal/measurement/cj;
|
|
.locals 6
|
|
|
|
:try_start_0
|
|
invoke-virtual {p0}, Lcom/google/android/gms/internal/measurement/bz;->sf()I
|
|
|
|
move-result v0
|
|
|
|
invoke-static {v0}, Lcom/google/android/gms/internal/measurement/cj;->bN(I)Lcom/google/android/gms/internal/measurement/cr;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, v0, Lcom/google/android/gms/internal/measurement/cr;->asJ:Lcom/google/android/gms/internal/measurement/cy;
|
|
|
|
invoke-virtual {p0, v1}, Lcom/google/android/gms/internal/measurement/bz;->a(Lcom/google/android/gms/internal/measurement/cy;)V
|
|
|
|
invoke-virtual {v0}, Lcom/google/android/gms/internal/measurement/cr;->qX()Lcom/google/android/gms/internal/measurement/cj;
|
|
|
|
move-result-object v0
|
|
:try_end_0
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object v0
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
new-instance v1, Ljava/lang/RuntimeException;
|
|
|
|
const-string v2, "ByteString"
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v3}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v4}, Ljava/lang/String;->length()I
|
|
|
|
move-result v4
|
|
|
|
add-int/lit8 v4, v4, 0x3e
|
|
|
|
invoke-virtual {v2}, Ljava/lang/String;->length()I
|
|
|
|
move-result v5
|
|
|
|
add-int/2addr v4, v5
|
|
|
|
new-instance v5, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v5, v4}, Ljava/lang/StringBuilder;-><init>(I)V
|
|
|
|
const-string v4, "Serializing "
|
|
|
|
invoke-virtual {v5, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v3, " to a "
|
|
|
|
invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, " threw an IOException (should never happen)."
|
|
|
|
invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-direct {v1, v2, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
.method qN()I
|
|
.locals 1
|
|
|
|
new-instance v0, Ljava/lang/UnsupportedOperationException;
|
|
|
|
invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final toByteArray()[B
|
|
.locals 6
|
|
|
|
:try_start_0
|
|
invoke-virtual {p0}, Lcom/google/android/gms/internal/measurement/bz;->sf()I
|
|
|
|
move-result v0
|
|
|
|
new-array v0, v0, [B
|
|
|
|
invoke-static {v0}, Lcom/google/android/gms/internal/measurement/cy;->m([B)Lcom/google/android/gms/internal/measurement/cy;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {p0, v1}, Lcom/google/android/gms/internal/measurement/bz;->a(Lcom/google/android/gms/internal/measurement/cy;)V
|
|
|
|
invoke-virtual {v1}, Lcom/google/android/gms/internal/measurement/cy;->rG()V
|
|
:try_end_0
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object v0
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
new-instance v1, Ljava/lang/RuntimeException;
|
|
|
|
const-string v2, "byte array"
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v3}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v4}, Ljava/lang/String;->length()I
|
|
|
|
move-result v4
|
|
|
|
add-int/lit8 v4, v4, 0x3e
|
|
|
|
invoke-virtual {v2}, Ljava/lang/String;->length()I
|
|
|
|
move-result v5
|
|
|
|
add-int/2addr v4, v5
|
|
|
|
new-instance v5, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v5, v4}, Ljava/lang/StringBuilder;-><init>(I)V
|
|
|
|
const-string v4, "Serializing "
|
|
|
|
invoke-virtual {v5, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v3, " to a "
|
|
|
|
invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, " threw an IOException (should never happen)."
|
|
|
|
invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-direct {v1, v2, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
throw v1
|
|
.end method
|