GeofencingRequest$Builder.smali
.class public final Lcom/google/android/gms/location/GeofencingRequest$Builder;
.super Ljava/lang/Object;
.source ""
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/android/gms/location/GeofencingRequest;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Builder"
.end annotation
# instance fields
.field private final zza:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/google/android/gms/internal/location/zzbe;",
">;"
}
.end annotation
.end field
.field private zzb:I
.annotation build Lcom/google/android/gms/location/GeofencingRequest$InitialTrigger;
.end annotation
.end field
.field private zzc:Ljava/lang/String;
# direct methods
.method public constructor <init>()V
.registers 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lcom/google/android/gms/location/GeofencingRequest$Builder;->zza:Ljava/util/List;
const/4 v0, 0x5
iput v0, p0, Lcom/google/android/gms/location/GeofencingRequest$Builder;->zzb:I
const-string v0, ""
iput-object v0, p0, Lcom/google/android/gms/location/GeofencingRequest$Builder;->zzc:Ljava/lang/String;
return-void
.end method
# virtual methods
.method public addGeofence(Lcom/google/android/gms/location/Geofence;)Lcom/google/android/gms/location/GeofencingRequest$Builder;
.registers 4
.param p1 # Lcom/google/android/gms/location/Geofence;
.annotation build Landroidx/annotation/RecentlyNonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/RecentlyNonNull;
.end annotation
const-string v0, "geofence can\'t be null."
invoke-static {p1, v0}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
instance-of v0, p1, Lcom/google/android/gms/internal/location/zzbe;
const-string v1, "Geofence must be created using Geofence.Builder."
invoke-static {v0, v1}, Lcom/google/android/gms/common/internal/Preconditions;->checkArgument(ZLjava/lang/Object;)V
iget-object v0, p0, Lcom/google/android/gms/location/GeofencingRequest$Builder;->zza:Ljava/util/List;
check-cast p1, Lcom/google/android/gms/internal/location/zzbe;
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
return-object p0
.end method
.method public addGeofences(Ljava/util/List;)Lcom/google/android/gms/location/GeofencingRequest$Builder;
.registers 3
.param p1 # Ljava/util/List;
.annotation build Landroidx/annotation/RecentlyNonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/RecentlyNonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/google/android/gms/location/Geofence;",
">;)",
"Lcom/google/android/gms/location/GeofencingRequest$Builder;"
}
.end annotation
if-eqz p1, :cond_1f
invoke-interface {p1}, Ljava/util/List;->isEmpty()Z
move-result v0
if-eqz v0, :cond_9
goto :goto_1f
:cond_9
invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object p1
:cond_d
:goto_d
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_1f
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/android/gms/location/Geofence;
if-eqz v0, :cond_d
invoke-virtual {p0, v0}, Lcom/google/android/gms/location/GeofencingRequest$Builder;->addGeofence(Lcom/google/android/gms/location/Geofence;)Lcom/google/android/gms/location/GeofencingRequest$Builder;
goto :goto_d
:cond_1f
:goto_1f
return-object p0
.end method
.method public build()Lcom/google/android/gms/location/GeofencingRequest;
.registers 6
.annotation build Landroidx/annotation/RecentlyNonNull;
.end annotation
iget-object v0, p0, Lcom/google/android/gms/location/GeofencingRequest$Builder;->zza:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->isEmpty()Z
move-result v0
xor-int/lit8 v0, v0, 0x1
const-string v1, "No geofence has been added to this request."
invoke-static {v0, v1}, Lcom/google/android/gms/common/internal/Preconditions;->checkArgument(ZLjava/lang/Object;)V
new-instance v0, Lcom/google/android/gms/location/GeofencingRequest;
iget-object v1, p0, Lcom/google/android/gms/location/GeofencingRequest$Builder;->zza:Ljava/util/List;
iget v2, p0, Lcom/google/android/gms/location/GeofencingRequest$Builder;->zzb:I
iget-object v3, p0, Lcom/google/android/gms/location/GeofencingRequest$Builder;->zzc:Ljava/lang/String;
const/4 v4, 0x0
invoke-direct {v0, v1, v2, v3, v4}, Lcom/google/android/gms/location/GeofencingRequest;-><init>(Ljava/util/List;ILjava/lang/String;Ljava/lang/String;)V
return-object v0
.end method
.method public setInitialTrigger(I)Lcom/google/android/gms/location/GeofencingRequest$Builder;
.registers 2
.param p1 # I
.annotation build Lcom/google/android/gms/location/GeofencingRequest$InitialTrigger;
.end annotation
.end param
.annotation build Landroidx/annotation/RecentlyNonNull;
.end annotation
and-int/lit8 p1, p1, 0x7
iput p1, p0, Lcom/google/android/gms/location/GeofencingRequest$Builder;->zzb:I
return-object p0
.end method