public final Builder addApi(Api<? extends Api.ApiOptions.NotRequiredOptions> paramApi) { zzx.zzb(paramApi, "Api must not be null"); this.zzaoj.put(paramApi, null); paramApi.zzop(); List localList = Collections.emptyList(); this.zzaoe.addAll(localList); this.zzaod.addAll(localList); return this; }
public final <O extends Api.ApiOptions.HasOptions> Builder addApi(Api<O> paramApi, O paramO) { zzx.zzb(paramApi, "Api must not be null"); zzx.zzb(paramO, "Null options are not permitted for this Api"); this.zzaoj.put(paramApi, paramO); paramApi.zzop(); List localList = Collections.emptyList(); this.zzaoe.addAll(localList); this.zzaod.addAll(localList); return this; }
public final GoogleApiClient build() { boolean bool1; zzf localzzf; ArrayMap localArrayMap1; ArrayMap localArrayMap2; ArrayList localArrayList; label73: Api localApi; Object localObject2; int j; label146: zzmw localzzmw; int k; label193: boolean bool2; label209: Api.zze localzze; if (!this.zzaoj.isEmpty()) { bool1 = true; zzx.zzb(bool1, "must call addApi() to add at least one API"); localzzf = zzoy(); Map localMap = localzzf.zzatx; localArrayMap1 = new ArrayMap(); localArrayMap2 = new ArrayMap(); localArrayList = new ArrayList(); Iterator localIterator = this.zzaoj.keySet().iterator(); if (!localIterator.hasNext()) { break label328; } localApi = (Api)localIterator.next(); localObject2 = this.zzaoj.get(localApi); Object localObject3 = localMap.get(localApi); j = 0; if (localObject3 != null) { if (!((zzf.zza)localMap.get(localApi)).zzatz) { break label282; } j = 1; } localArrayMap1.put(localApi, Integer.valueOf(j)); localzzmw = new zzmw(localApi, j); localArrayList.add(localzzmw); if (localApi.zzanU == null) { break label288; } k = 1; if (k == 0) { break label300; } if (localApi.zzanT == null) { break label294; } bool2 = true; zzx.zza(bool2, "This API was constructed with a ClientBuilder. Use getClientBuilder"); localzze = localApi.zzanT; } label282: label288: label294: label300: for (Object localObject4 = new zzad(this.mContext, this.zzoD, localzze.zzou(), localzzmw, localzzmw, localzzf, localzze.zzs$55e35557());; localObject4 = localApi.zzop().zza(this.mContext, this.zzoD, localzzf, localObject2, localzzmw, localzzmw)) { localArrayMap2.put(localApi.zzor(), localObject4); break label73; bool1 = false; break; j = 2; break label146; k = 0; break label193; bool2 = false; break label209; } label328: int i = zznd.zza$251b1977(localArrayMap2.values()); final zznd localzznd = new zznd(this.mContext, new ReentrantLock(), this.zzoD, localzzf, this.zzaon, this.zzaoo, localArrayMap1, this.zzaop, this.zzaoq, localArrayMap2, this.zzaol, i, localArrayList); zzns localzzns; synchronized (GoogleApiClient.zzox()) { GoogleApiClient.zzox().add(localzznd); if (this.zzaol >= 0) { localzzns = zzns.zzb(this.zzaok); if (localzzns == null) { new Handler(this.mContext.getMainLooper()).post(new Runnable() { public final void run() { if ((GoogleApiClient.Builder.this.zzaok.isFinishing()) || (GoogleApiClient.Builder.this.zzaok.getSupportFragmentManager().isDestroyed())) { return; } GoogleApiClient.Builder.this.zza(zzns.zzc(GoogleApiClient.Builder.this.zzaok), localzznd); } }); } } else { return localzznd; } } zza(localzzns, localzznd); return localzznd; }