Add decompiled APK source code (JADX)

- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-02-18 14:52:23 -08:00
parent cc210a65ea
commit f9d20bb3fc
26991 changed files with 2541449 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
package com.google.android.gms.games;
import android.content.Intent;
import androidx.annotation.IntRange;
import androidx.annotation.NonNull;
import com.google.android.gms.games.achievement.AchievementBuffer;
import com.google.android.gms.tasks.Task;
/* loaded from: classes2.dex */
public interface AchievementsClient {
@NonNull
Task<Intent> getAchievementsIntent();
void increment(@NonNull String str, @IntRange(from = 0) int i);
@NonNull
Task<Boolean> incrementImmediate(@NonNull String str, @IntRange(from = 0) int i);
@NonNull
Task<AnnotatedData<AchievementBuffer>> load(boolean z);
void reveal(@NonNull String str);
@NonNull
Task<Void> revealImmediate(@NonNull String str);
void setSteps(@NonNull String str, @IntRange(from = 0) int i);
@NonNull
Task<Boolean> setStepsImmediate(@NonNull String str, @IntRange(from = 0) int i);
void unlock(@NonNull String str);
@NonNull
Task<Void> unlockImmediate(@NonNull String str);
}

View File

@@ -0,0 +1,25 @@
package com.google.android.gms.games;
import androidx.annotation.Nullable;
/* loaded from: classes2.dex */
public class AnnotatedData<T> {
@Nullable
private final Object zza;
private final boolean zzb;
public AnnotatedData(@Nullable Object obj, boolean z) {
this.zza = obj;
this.zzb = z;
}
@Nullable
public T get() {
return (T) this.zza;
}
public boolean isStale() {
return this.zzb;
}
}

View File

@@ -0,0 +1,25 @@
package com.google.android.gms.games;
import androidx.annotation.NonNull;
import com.google.android.gms.internal.games_v2.zzad;
@zzad
/* loaded from: classes2.dex */
public final class AuthenticationResult {
@NonNull
public static final AuthenticationResult zza = new AuthenticationResult(true);
@NonNull
public static final AuthenticationResult zzb = new AuthenticationResult(false);
private final boolean zzc;
private AuthenticationResult(boolean z) {
this.zzc = z;
}
@zzad
public boolean isAuthenticated() {
return this.zzc;
}
}

View File

@@ -0,0 +1,9 @@
package com.google.android.gms.games;
import android.os.Parcelable;
import com.google.android.gms.common.data.Freezable;
/* loaded from: classes2.dex */
public interface CurrentPlayerInfo extends Freezable<CurrentPlayerInfo>, Parcelable {
int getFriendsListVisibilityStatus();
}

View File

@@ -0,0 +1,17 @@
package com.google.android.gms.games;
import androidx.annotation.IntRange;
import androidx.annotation.NonNull;
import com.google.android.gms.games.event.EventBuffer;
import com.google.android.gms.tasks.Task;
/* loaded from: classes2.dex */
public interface EventsClient {
void increment(@NonNull String str, @IntRange(from = 0) int i);
@NonNull
Task<AnnotatedData<EventBuffer>> load(boolean z);
@NonNull
Task<AnnotatedData<EventBuffer>> loadByIds(boolean z, @NonNull String... strArr);
}

View File

@@ -0,0 +1,17 @@
package com.google.android.gms.games;
import androidx.annotation.NonNull;
import com.google.android.gms.common.api.ResolvableApiException;
import com.google.android.gms.common.api.Status;
/* loaded from: classes2.dex */
public final class FriendsResolutionRequiredException extends ResolvableApiException {
private FriendsResolutionRequiredException(Status status) {
super(status);
}
@NonNull
public static FriendsResolutionRequiredException zza(@NonNull Status status) {
return new FriendsResolutionRequiredException(status);
}
}

View File

@@ -0,0 +1,89 @@
package com.google.android.gms.games;
import android.database.CharArrayBuffer;
import android.net.Uri;
import android.os.Parcelable;
import androidx.annotation.NonNull;
import com.google.android.gms.common.annotation.KeepName;
import com.google.android.gms.common.data.Freezable;
/* loaded from: classes2.dex */
public interface Game extends Freezable<Game>, Parcelable {
boolean areSnapshotsEnabled();
int getAchievementTotalCount();
@NonNull
String getApplicationId();
@NonNull
String getDescription();
void getDescription(@NonNull CharArrayBuffer charArrayBuffer);
@NonNull
String getDeveloperName();
void getDeveloperName(@NonNull CharArrayBuffer charArrayBuffer);
@NonNull
String getDisplayName();
void getDisplayName(@NonNull CharArrayBuffer charArrayBuffer);
@NonNull
Uri getFeaturedImageUri();
@NonNull
@KeepName
@Deprecated
String getFeaturedImageUrl();
@NonNull
Uri getHiResImageUri();
@NonNull
@KeepName
@Deprecated
String getHiResImageUrl();
@NonNull
Uri getIconImageUri();
@NonNull
@KeepName
@Deprecated
String getIconImageUrl();
int getLeaderboardCount();
@NonNull
String getPrimaryCategory();
@NonNull
String getSecondaryCategory();
@NonNull
String getThemeColor();
boolean hasGamepadSupport();
@NonNull
String zza();
boolean zzb();
boolean zzc();
boolean zzd();
boolean zze();
boolean zzf();
@Deprecated
boolean zzg();
@Deprecated
boolean zzh();
}

View File

@@ -0,0 +1,19 @@
package com.google.android.gms.games;
import androidx.annotation.NonNull;
import com.google.android.gms.common.data.AbstractDataBuffer;
/* loaded from: classes2.dex */
public final class GameBuffer extends AbstractDataBuffer<Game> {
@Override // com.google.android.gms.common.data.AbstractDataBuffer, com.google.android.gms.common.data.DataBuffer
@NonNull
public Game get(int i) {
throw null;
}
@Override // com.google.android.gms.common.data.AbstractDataBuffer, com.google.android.gms.common.data.DataBuffer
@NonNull
public final /* bridge */ /* synthetic */ Object get(int i) {
throw null;
}
}

View File

@@ -0,0 +1,420 @@
package com.google.android.gms.games;
import android.database.CharArrayBuffer;
import android.net.Uri;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.apps.common.proguard.UsedByReflection;
import com.google.android.gms.common.internal.Objects;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
import com.google.android.gms.common.util.DataUtils;
import com.google.android.gms.common.util.RetainForClient;
import com.google.android.gms.games.internal.GamesDowngradeableSafeParcel;
@UsedByReflection("GamesGmsClientImpl.java")
@RetainForClient
@SafeParcelable.Class(creator = "GameEntityCreator", creatorIsFinal = false)
@SafeParcelable.Reserved({1000})
/* loaded from: classes2.dex */
public final class GameEntity extends GamesDowngradeableSafeParcel implements Game {
@NonNull
public static final Parcelable.Creator<GameEntity> CREATOR = new zze();
@SafeParcelable.Field(getter = "getApplicationId", id = 1)
private final String zza;
@SafeParcelable.Field(getter = "getDisplayName", id = 2)
private final String zzb;
@SafeParcelable.Field(getter = "getPrimaryCategory", id = 3)
private final String zzc;
@SafeParcelable.Field(getter = "getSecondaryCategory", id = 4)
private final String zzd;
@SafeParcelable.Field(getter = "getDescription", id = 5)
private final String zze;
@SafeParcelable.Field(getter = "getDeveloperName", id = 6)
private final String zzf;
@SafeParcelable.Field(getter = "getIconImageUri", id = 7)
private final Uri zzg;
@SafeParcelable.Field(getter = "getHiResImageUri", id = 8)
private final Uri zzh;
@SafeParcelable.Field(getter = "getFeaturedImageUri", id = 9)
private final Uri zzi;
@SafeParcelable.Field(getter = "isPlayEnabledGame", id = 10)
private final boolean zzj;
@SafeParcelable.Field(getter = "isInstanceInstalled", id = 11)
private final boolean zzk;
@SafeParcelable.Field(getter = "getInstancePackageName", id = 12)
private final String zzl;
@SafeParcelable.Field(getter = "getGameplayAclStatus", id = 13)
private final int zzm;
@SafeParcelable.Field(getter = "getAchievementTotalCount", id = 14)
private final int zzn;
@SafeParcelable.Field(getter = "getLeaderboardCount", id = 15)
private final int zzo;
@SafeParcelable.Field(getter = "isRealTimeMultiplayerEnabled", id = 16)
private final boolean zzp;
@SafeParcelable.Field(getter = "isTurnBasedMultiplayerEnabled", id = 17)
private final boolean zzq;
@SafeParcelable.Field(getter = "getIconImageUrl", id = 18)
private final String zzr;
@SafeParcelable.Field(getter = "getHiResImageUrl", id = 19)
private final String zzs;
@SafeParcelable.Field(getter = "getFeaturedImageUrl", id = 20)
private final String zzt;
@SafeParcelable.Field(getter = "isMuted", id = 21)
private final boolean zzu;
@SafeParcelable.Field(getter = "isIdentitySharingConfirmed", id = 22)
private final boolean zzv;
@SafeParcelable.Field(getter = "areSnapshotsEnabled", id = 23)
private final boolean zzw;
@SafeParcelable.Field(getter = "getThemeColor", id = 24)
private final String zzx;
@SafeParcelable.Field(getter = "hasGamepadSupport", id = 25)
private final boolean zzy;
@SafeParcelable.Field(getter = "isProfilelessRecallEnabled", id = 28)
private final boolean zzz;
public GameEntity(@NonNull Game game) {
this.zza = game.getApplicationId();
this.zzc = game.getPrimaryCategory();
this.zzd = game.getSecondaryCategory();
this.zze = game.getDescription();
this.zzf = game.getDeveloperName();
this.zzb = game.getDisplayName();
this.zzg = game.getIconImageUri();
this.zzr = game.getIconImageUrl();
this.zzh = game.getHiResImageUri();
this.zzs = game.getHiResImageUrl();
this.zzi = game.getFeaturedImageUri();
this.zzt = game.getFeaturedImageUrl();
this.zzj = game.zze();
this.zzk = game.zzc();
this.zzl = game.zza();
this.zzm = 1;
this.zzn = game.getAchievementTotalCount();
this.zzo = game.getLeaderboardCount();
this.zzp = game.zzg();
this.zzq = game.zzh();
this.zzu = game.zzd();
this.zzv = game.zzb();
this.zzw = game.areSnapshotsEnabled();
this.zzx = game.getThemeColor();
this.zzy = game.hasGamepadSupport();
this.zzz = game.zzf();
}
public static int zzi(Game game) {
return Objects.hashCode(game.getApplicationId(), game.getDisplayName(), game.getPrimaryCategory(), game.getSecondaryCategory(), game.getDescription(), game.getDeveloperName(), game.getIconImageUri(), game.getHiResImageUri(), game.getFeaturedImageUri(), Boolean.valueOf(game.zze()), Boolean.valueOf(game.zzc()), game.zza(), Integer.valueOf(game.getAchievementTotalCount()), Integer.valueOf(game.getLeaderboardCount()), Boolean.valueOf(game.zzg()), Boolean.valueOf(game.zzh()), Boolean.valueOf(game.zzd()), Boolean.valueOf(game.zzb()), Boolean.valueOf(game.areSnapshotsEnabled()), game.getThemeColor(), Boolean.valueOf(game.hasGamepadSupport()), Boolean.valueOf(game.zzf()));
}
public static String zzk(Game game) {
return Objects.toStringHelper(game).add("ApplicationId", game.getApplicationId()).add("DisplayName", game.getDisplayName()).add("PrimaryCategory", game.getPrimaryCategory()).add("SecondaryCategory", game.getSecondaryCategory()).add("Description", game.getDescription()).add("DeveloperName", game.getDeveloperName()).add("IconImageUri", game.getIconImageUri()).add("IconImageUrl", game.getIconImageUrl()).add("HiResImageUri", game.getHiResImageUri()).add("HiResImageUrl", game.getHiResImageUrl()).add("FeaturedImageUri", game.getFeaturedImageUri()).add("FeaturedImageUrl", game.getFeaturedImageUrl()).add("PlayEnabledGame", Boolean.valueOf(game.zze())).add("InstanceInstalled", Boolean.valueOf(game.zzc())).add("InstancePackageName", game.zza()).add("AchievementTotalCount", Integer.valueOf(game.getAchievementTotalCount())).add("LeaderboardCount", Integer.valueOf(game.getLeaderboardCount())).add("AreSnapshotsEnabled", Boolean.valueOf(game.areSnapshotsEnabled())).add("ThemeColor", game.getThemeColor()).add("HasGamepadSupport", Boolean.valueOf(game.hasGamepadSupport())).toString();
}
public static boolean zzn(Game game, Object obj) {
if (!(obj instanceof Game)) {
return false;
}
if (game == obj) {
return true;
}
Game game2 = (Game) obj;
return Objects.equal(game2.getApplicationId(), game.getApplicationId()) && Objects.equal(game2.getDisplayName(), game.getDisplayName()) && Objects.equal(game2.getPrimaryCategory(), game.getPrimaryCategory()) && Objects.equal(game2.getSecondaryCategory(), game.getSecondaryCategory()) && Objects.equal(game2.getDescription(), game.getDescription()) && Objects.equal(game2.getDeveloperName(), game.getDeveloperName()) && Objects.equal(game2.getIconImageUri(), game.getIconImageUri()) && Objects.equal(game2.getHiResImageUri(), game.getHiResImageUri()) && Objects.equal(game2.getFeaturedImageUri(), game.getFeaturedImageUri()) && Objects.equal(Boolean.valueOf(game2.zze()), Boolean.valueOf(game.zze())) && Objects.equal(Boolean.valueOf(game2.zzc()), Boolean.valueOf(game.zzc())) && Objects.equal(game2.zza(), game.zza()) && Objects.equal(Integer.valueOf(game2.getAchievementTotalCount()), Integer.valueOf(game.getAchievementTotalCount())) && Objects.equal(Integer.valueOf(game2.getLeaderboardCount()), Integer.valueOf(game.getLeaderboardCount())) && Objects.equal(Boolean.valueOf(game2.zzg()), Boolean.valueOf(game.zzg())) && Objects.equal(Boolean.valueOf(game2.zzh()), Boolean.valueOf(game.zzh())) && Objects.equal(Boolean.valueOf(game2.zzd()), Boolean.valueOf(game.zzd())) && Objects.equal(Boolean.valueOf(game2.zzb()), Boolean.valueOf(game.zzb())) && Objects.equal(Boolean.valueOf(game2.areSnapshotsEnabled()), Boolean.valueOf(game.areSnapshotsEnabled())) && Objects.equal(game2.getThemeColor(), game.getThemeColor()) && Objects.equal(Boolean.valueOf(game2.hasGamepadSupport()), Boolean.valueOf(game.hasGamepadSupport())) && Objects.equal(Boolean.valueOf(game2.zzf()), Boolean.valueOf(game.zzf()));
}
@Override // com.google.android.gms.games.Game
public boolean areSnapshotsEnabled() {
return this.zzw;
}
public boolean equals(@Nullable Object obj) {
return zzn(this, obj);
}
/* JADX WARN: Can't rename method to resolve collision */
@Override // com.google.android.gms.common.data.Freezable
@NonNull
public Game freeze() {
return this;
}
@Override // com.google.android.gms.common.data.Freezable
@NonNull
public final /* bridge */ /* synthetic */ Game freeze() {
return this;
}
@Override // com.google.android.gms.games.Game
public int getAchievementTotalCount() {
return this.zzn;
}
@Override // com.google.android.gms.games.Game
@NonNull
public String getApplicationId() {
return this.zza;
}
@Override // com.google.android.gms.games.Game
@NonNull
public String getDescription() {
return this.zze;
}
@Override // com.google.android.gms.games.Game
public void getDescription(@NonNull CharArrayBuffer charArrayBuffer) {
DataUtils.copyStringToBuffer(this.zze, charArrayBuffer);
}
@Override // com.google.android.gms.games.Game
@NonNull
public String getDeveloperName() {
return this.zzf;
}
@Override // com.google.android.gms.games.Game
public void getDeveloperName(@NonNull CharArrayBuffer charArrayBuffer) {
DataUtils.copyStringToBuffer(this.zzf, charArrayBuffer);
}
@Override // com.google.android.gms.games.Game
@NonNull
public String getDisplayName() {
return this.zzb;
}
@Override // com.google.android.gms.games.Game
public void getDisplayName(@NonNull CharArrayBuffer charArrayBuffer) {
DataUtils.copyStringToBuffer(this.zzb, charArrayBuffer);
}
@Override // com.google.android.gms.games.Game
@NonNull
public Uri getFeaturedImageUri() {
return this.zzi;
}
@Override // com.google.android.gms.games.Game
@NonNull
public String getFeaturedImageUrl() {
return this.zzt;
}
@Override // com.google.android.gms.games.Game
@NonNull
public Uri getHiResImageUri() {
return this.zzh;
}
@Override // com.google.android.gms.games.Game
@NonNull
public String getHiResImageUrl() {
return this.zzs;
}
@Override // com.google.android.gms.games.Game
@NonNull
public Uri getIconImageUri() {
return this.zzg;
}
@Override // com.google.android.gms.games.Game
@NonNull
public String getIconImageUrl() {
return this.zzr;
}
@Override // com.google.android.gms.games.Game
public int getLeaderboardCount() {
return this.zzo;
}
@Override // com.google.android.gms.games.Game
@NonNull
public String getPrimaryCategory() {
return this.zzc;
}
@Override // com.google.android.gms.games.Game
@NonNull
public String getSecondaryCategory() {
return this.zzd;
}
@Override // com.google.android.gms.games.Game
@NonNull
public String getThemeColor() {
return this.zzx;
}
@Override // com.google.android.gms.games.Game
public boolean hasGamepadSupport() {
return this.zzy;
}
public int hashCode() {
return zzi(this);
}
@Override // com.google.android.gms.common.data.Freezable
public boolean isDataValid() {
return true;
}
@NonNull
public String toString() {
return zzk(this);
}
@Override // android.os.Parcelable
public void writeToParcel(@NonNull Parcel parcel, int i) {
if (shouldDowngrade()) {
parcel.writeString(this.zza);
parcel.writeString(this.zzb);
parcel.writeString(this.zzc);
parcel.writeString(this.zzd);
parcel.writeString(this.zze);
parcel.writeString(this.zzf);
Uri uri = this.zzg;
parcel.writeString(uri == null ? null : uri.toString());
Uri uri2 = this.zzh;
parcel.writeString(uri2 == null ? null : uri2.toString());
Uri uri3 = this.zzi;
parcel.writeString(uri3 != null ? uri3.toString() : null);
parcel.writeInt(this.zzj ? 1 : 0);
parcel.writeInt(this.zzk ? 1 : 0);
parcel.writeString(this.zzl);
parcel.writeInt(this.zzm);
parcel.writeInt(this.zzn);
parcel.writeInt(this.zzo);
return;
}
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeString(parcel, 1, getApplicationId(), false);
SafeParcelWriter.writeString(parcel, 2, getDisplayName(), false);
SafeParcelWriter.writeString(parcel, 3, getPrimaryCategory(), false);
SafeParcelWriter.writeString(parcel, 4, getSecondaryCategory(), false);
SafeParcelWriter.writeString(parcel, 5, getDescription(), false);
SafeParcelWriter.writeString(parcel, 6, getDeveloperName(), false);
SafeParcelWriter.writeParcelable(parcel, 7, getIconImageUri(), i, false);
SafeParcelWriter.writeParcelable(parcel, 8, getHiResImageUri(), i, false);
SafeParcelWriter.writeParcelable(parcel, 9, getFeaturedImageUri(), i, false);
SafeParcelWriter.writeBoolean(parcel, 10, this.zzj);
SafeParcelWriter.writeBoolean(parcel, 11, this.zzk);
SafeParcelWriter.writeString(parcel, 12, this.zzl, false);
SafeParcelWriter.writeInt(parcel, 13, this.zzm);
SafeParcelWriter.writeInt(parcel, 14, getAchievementTotalCount());
SafeParcelWriter.writeInt(parcel, 15, getLeaderboardCount());
SafeParcelWriter.writeBoolean(parcel, 16, this.zzp);
SafeParcelWriter.writeBoolean(parcel, 17, this.zzq);
SafeParcelWriter.writeString(parcel, 18, getIconImageUrl(), false);
SafeParcelWriter.writeString(parcel, 19, getHiResImageUrl(), false);
SafeParcelWriter.writeString(parcel, 20, getFeaturedImageUrl(), false);
SafeParcelWriter.writeBoolean(parcel, 21, this.zzu);
SafeParcelWriter.writeBoolean(parcel, 22, this.zzv);
SafeParcelWriter.writeBoolean(parcel, 23, areSnapshotsEnabled());
SafeParcelWriter.writeString(parcel, 24, getThemeColor(), false);
SafeParcelWriter.writeBoolean(parcel, 25, hasGamepadSupport());
SafeParcelWriter.writeBoolean(parcel, 28, this.zzz);
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
}
@Override // com.google.android.gms.games.Game
@NonNull
public final String zza() {
return this.zzl;
}
@Override // com.google.android.gms.games.Game
public final boolean zzb() {
return this.zzv;
}
@Override // com.google.android.gms.games.Game
public final boolean zzc() {
return this.zzk;
}
@Override // com.google.android.gms.games.Game
public final boolean zzd() {
return this.zzu;
}
@Override // com.google.android.gms.games.Game
public final boolean zze() {
return this.zzj;
}
@Override // com.google.android.gms.games.Game
public final boolean zzf() {
return this.zzz;
}
@Override // com.google.android.gms.games.Game
public final boolean zzg() {
return this.zzp;
}
@Override // com.google.android.gms.games.Game
public final boolean zzh() {
return this.zzq;
}
@SafeParcelable.Constructor
public GameEntity(@SafeParcelable.Param(id = 1) String str, @SafeParcelable.Param(id = 2) String str2, @SafeParcelable.Param(id = 3) String str3, @SafeParcelable.Param(id = 4) String str4, @SafeParcelable.Param(id = 5) String str5, @SafeParcelable.Param(id = 6) String str6, @SafeParcelable.Param(id = 7) Uri uri, @SafeParcelable.Param(id = 8) Uri uri2, @SafeParcelable.Param(id = 9) Uri uri3, @SafeParcelable.Param(id = 10) boolean z, @SafeParcelable.Param(id = 11) boolean z2, @SafeParcelable.Param(id = 12) String str7, @SafeParcelable.Param(id = 13) int i, @SafeParcelable.Param(id = 14) int i2, @SafeParcelable.Param(id = 15) int i3, @SafeParcelable.Param(id = 16) boolean z3, @SafeParcelable.Param(id = 17) boolean z4, @SafeParcelable.Param(id = 18) String str8, @SafeParcelable.Param(id = 19) String str9, @SafeParcelable.Param(id = 20) String str10, @SafeParcelable.Param(id = 21) boolean z5, @SafeParcelable.Param(id = 22) boolean z6, @SafeParcelable.Param(id = 23) boolean z7, @SafeParcelable.Param(id = 24) String str11, @SafeParcelable.Param(id = 25) boolean z8, @SafeParcelable.Param(id = 28) boolean z9) {
this.zza = str;
this.zzb = str2;
this.zzc = str3;
this.zzd = str4;
this.zze = str5;
this.zzf = str6;
this.zzg = uri;
this.zzr = str8;
this.zzh = uri2;
this.zzs = str9;
this.zzi = uri3;
this.zzt = str10;
this.zzj = z;
this.zzk = z2;
this.zzl = str7;
this.zzm = i;
this.zzn = i2;
this.zzo = i3;
this.zzp = z3;
this.zzq = z4;
this.zzu = z5;
this.zzv = z6;
this.zzw = z7;
this.zzx = str11;
this.zzy = z8;
this.zzz = z9;
}
}

View File

@@ -0,0 +1,205 @@
package com.google.android.gms.games;
import android.annotation.SuppressLint;
import android.database.CharArrayBuffer;
import android.net.Uri;
import android.os.Parcel;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.gms.common.data.DataHolder;
@SuppressLint({"ParcelCreator"})
/* loaded from: classes2.dex */
public final class GameRef extends zzo implements Game {
public GameRef(@NonNull DataHolder dataHolder, int i) {
super(dataHolder, i);
}
@Override // com.google.android.gms.games.Game
public final boolean areSnapshotsEnabled() {
return getInteger("snapshots_enabled") > 0;
}
@Override // android.os.Parcelable
public final int describeContents() {
return 0;
}
@Override // com.google.android.gms.common.data.DataBufferRef
public final boolean equals(@Nullable Object obj) {
return GameEntity.zzn(this, obj);
}
@Override // com.google.android.gms.common.data.Freezable
@NonNull
public final /* synthetic */ Game freeze() {
return new GameEntity(this);
}
@Override // com.google.android.gms.games.Game
public final int getAchievementTotalCount() {
return getInteger("achievement_total_count");
}
@Override // com.google.android.gms.games.Game
@NonNull
public final String getApplicationId() {
return getString("external_game_id");
}
@Override // com.google.android.gms.games.Game
@NonNull
public final String getDescription() {
return getString("game_description");
}
@Override // com.google.android.gms.games.Game
@NonNull
public final String getDeveloperName() {
return getString("developer_name");
}
@Override // com.google.android.gms.games.Game
@NonNull
public final String getDisplayName() {
return getString("display_name");
}
@Override // com.google.android.gms.games.Game
@NonNull
public final Uri getFeaturedImageUri() {
return parseUri("featured_image_uri");
}
@Override // com.google.android.gms.games.Game
@NonNull
public String getFeaturedImageUrl() {
return getString("featured_image_url");
}
@Override // com.google.android.gms.games.Game
@NonNull
public final Uri getHiResImageUri() {
return parseUri("game_hi_res_image_uri");
}
@Override // com.google.android.gms.games.Game
@NonNull
public String getHiResImageUrl() {
return getString("game_hi_res_image_url");
}
@Override // com.google.android.gms.games.Game
@NonNull
public final Uri getIconImageUri() {
return parseUri("game_icon_image_uri");
}
@Override // com.google.android.gms.games.Game
@NonNull
public String getIconImageUrl() {
return getString("game_icon_image_url");
}
@Override // com.google.android.gms.games.Game
public final int getLeaderboardCount() {
return getInteger("leaderboard_count");
}
@Override // com.google.android.gms.games.Game
@NonNull
public final String getPrimaryCategory() {
return getString("primary_category");
}
@Override // com.google.android.gms.games.Game
@NonNull
public final String getSecondaryCategory() {
return getString("secondary_category");
}
@Override // com.google.android.gms.games.Game
@NonNull
public final String getThemeColor() {
return getString("theme_color");
}
@Override // com.google.android.gms.games.Game
public final boolean hasGamepadSupport() {
return getInteger("gamepad_support") > 0;
}
@Override // com.google.android.gms.common.data.DataBufferRef
public final int hashCode() {
return GameEntity.zzi(this);
}
@NonNull
public final String toString() {
return GameEntity.zzk(this);
}
@Override // android.os.Parcelable
public final void writeToParcel(@NonNull Parcel parcel, int i) {
new GameEntity(this).writeToParcel(parcel, i);
}
@Override // com.google.android.gms.games.Game
@NonNull
public final String zza() {
return getString("package_name");
}
@Override // com.google.android.gms.games.Game
public final boolean zzb() {
return getBoolean("identity_sharing_confirmed");
}
@Override // com.google.android.gms.games.Game
public final boolean zzc() {
return getInteger("installed") > 0;
}
@Override // com.google.android.gms.games.Game
public final boolean zzd() {
return getBoolean("muted");
}
@Override // com.google.android.gms.games.Game
public final boolean zze() {
return getBoolean("play_enabled_game");
}
@Override // com.google.android.gms.games.Game
public final boolean zzf() {
if (!hasColumn("profileless_recall_enabled_v3") || hasNull("profileless_recall_enabled_v3")) {
return false;
}
return getBoolean("profileless_recall_enabled_v3");
}
@Override // com.google.android.gms.games.Game
public final boolean zzg() {
return getInteger("real_time_support") > 0;
}
@Override // com.google.android.gms.games.Game
public final boolean zzh() {
return getInteger("turn_based_support") > 0;
}
@Override // com.google.android.gms.games.Game
public final void getDescription(@NonNull CharArrayBuffer charArrayBuffer) {
copyToBuffer("game_description", charArrayBuffer);
}
@Override // com.google.android.gms.games.Game
public final void getDeveloperName(@NonNull CharArrayBuffer charArrayBuffer) {
copyToBuffer("developer_name", charArrayBuffer);
}
@Override // com.google.android.gms.games.Game
public final void getDisplayName(@NonNull CharArrayBuffer charArrayBuffer) {
copyToBuffer("display_name", charArrayBuffer);
}
}

View File

@@ -0,0 +1,55 @@
package com.google.android.gms.games;
import androidx.annotation.NonNull;
import com.google.android.gms.common.FirstPartyScopes;
import com.google.android.gms.common.Scopes;
import com.google.android.gms.common.annotation.KeepForSdk;
import com.google.android.gms.common.api.Api;
import com.google.android.gms.common.api.Result;
import com.google.android.gms.common.api.Scope;
import com.google.android.gms.common.internal.ShowFirstParty;
@ShowFirstParty
/* loaded from: classes2.dex */
public final class Games {
static final Api.ClientKey zza;
@NonNull
public static final Scope zzb;
@NonNull
public static final Scope zzc;
@NonNull
@Deprecated
public static final Api zzd;
@NonNull
@ShowFirstParty
public static final Scope zze;
private static final Api.AbstractClientBuilder zzf;
private static final Api.AbstractClientBuilder zzg;
@KeepForSdk
@Deprecated
public interface GetServerAuthCodeResult extends Result {
@NonNull
@KeepForSdk
String getCode();
}
static {
Api.ClientKey clientKey = new Api.ClientKey();
zza = clientKey;
zzg zzgVar = new zzg();
zzf = zzgVar;
zzh zzhVar = new zzh();
zzg = zzhVar;
zzb = new Scope(Scopes.GAMES);
zzc = new Scope(Scopes.GAMES_LITE);
new Scope(Scopes.DRIVE_APPFOLDER);
zzd = new Api("Games.API", zzgVar, clientKey);
zze = new Scope(FirstPartyScopes.GAMES_1P);
new Api("Games.API_1P", zzhVar, clientKey);
}
}

View File

@@ -0,0 +1,13 @@
package com.google.android.gms.games;
/* loaded from: classes2.dex */
public final class GamesActivityResultCodes {
public static final int RESULT_APP_MISCONFIGURED = 10004;
public static final int RESULT_LICENSE_FAILED = 10003;
public static final int RESULT_NETWORK_FAILURE = 10006;
public static final int RESULT_RECONNECT_REQUIRED = 10001;
public static final int RESULT_SIGN_IN_FAILED = 10002;
private GamesActivityResultCodes() {
}
}

View File

@@ -0,0 +1,41 @@
package com.google.android.gms.games;
import androidx.annotation.NonNull;
/* loaded from: classes2.dex */
public final class GamesCallbackStatusCodes {
@Deprecated
public static final int CLIENT_RECONNECT_REQUIRED = 2;
public static final int INTERNAL_ERROR = 1;
public static final int OK = 0;
private GamesCallbackStatusCodes() {
}
@NonNull
public static String getStatusCodeString(int i) {
if (i == 0) {
return "OK";
}
if (i == 1) {
return "INTERNAL_ERROR";
}
if (i == 2) {
return "CLIENT_RECONNECT_REQUIRED";
}
if (i == 6003) {
return "MULTIPLAYER_DISABLED";
}
if (i == 7004) {
return "REAL_TIME_ROOM_NOT_JOINED";
}
if (i == 7000) {
return "REAL_TIME_CONNECTION_FAILED";
}
if (i == 7001) {
return "REAL_TIME_MESSAGE_SEND_FAILED";
}
return "unknown games callback status code: " + i;
}
}

View File

@@ -0,0 +1,30 @@
package com.google.android.gms.games;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import androidx.annotation.NonNull;
import androidx.annotation.RequiresPermission;
import com.google.android.gms.tasks.Task;
/* loaded from: classes2.dex */
public interface GamesClient {
@NonNull
Task<Bundle> getActivationHint();
@NonNull
Task<String> getAppId();
@NonNull
@RequiresPermission("android.permission.GET_ACCOUNTS")
Task<String> getCurrentAccountName();
@NonNull
Task<Intent> getSettingsIntent();
@NonNull
Task<Void> setGravityForPopups(int i);
@NonNull
Task<Void> setViewForPopups(@NonNull View view);
}

View File

@@ -0,0 +1,235 @@
package com.google.android.gms.games;
import android.app.PendingIntent;
import androidx.annotation.NonNull;
import com.google.android.gms.common.api.CommonStatusCodes;
import com.google.android.gms.common.api.Status;
/* loaded from: classes2.dex */
public final class GamesClientStatusCodes extends CommonStatusCodes {
public static final int ACHIEVEMENT_NOT_INCREMENTAL = 26562;
public static final int ACHIEVEMENT_UNKNOWN = 26561;
public static final int ACHIEVEMENT_UNLOCKED = 26563;
public static final int ACHIEVEMENT_UNLOCK_FAILURE = 26560;
public static final int APP_MISCONFIGURED = 26508;
public static final int CONSENT_REQUIRED = 26703;
public static final int GAME_NOT_FOUND = 26509;
public static final int LICENSE_CHECK_FAILED = 26507;
public static final int NETWORK_ERROR_NO_DATA = 26504;
public static final int NETWORK_ERROR_OPERATION_FAILED = 26506;
public static final int OPERATION_IN_FLIGHT = 26607;
public static final int SNAPSHOT_COMMIT_FAILED = 26573;
public static final int SNAPSHOT_CONFLICT_MISSING = 26576;
public static final int SNAPSHOT_CONTENTS_UNAVAILABLE = 26572;
public static final int SNAPSHOT_CREATION_FAILED = 26571;
public static final int SNAPSHOT_FOLDER_UNAVAILABLE = 26575;
public static final int SNAPSHOT_NOT_FOUND = 26570;
public static final int VIDEO_ALREADY_CAPTURING = 26625;
public static final int VIDEO_NOT_ACTIVE = 26620;
public static final int VIDEO_OUT_OF_DISK_SPACE = 26626;
public static final int VIDEO_PERMISSION_ERROR = 26622;
public static final int VIDEO_STORAGE_ERROR = 26623;
public static final int VIDEO_UNEXPECTED_CAPTURE_ERROR = 26624;
public static final int VIDEO_UNSUPPORTED = 26621;
private GamesClientStatusCodes() {
}
@NonNull
public static String getStatusCodeString(int i) {
if (i == 26540) {
return "PLAYER_OOB_REQUIRED";
}
if (i == 26541) {
return "PLAYER_LEVEL_UP";
}
switch (i) {
case 26502:
return "CLIENT_RECONNECT_REQUIRED";
case 26503:
return "NETWORK_ERROR_STALE_DATA";
case NETWORK_ERROR_NO_DATA /* 26504 */:
return "NETWORK_ERROR_NO_DATA";
case 26505:
return "NETWORK_ERROR_OPERATION_DEFERRED";
case NETWORK_ERROR_OPERATION_FAILED /* 26506 */:
return "NETWORK_ERROR_OPERATION_FAILED";
case LICENSE_CHECK_FAILED /* 26507 */:
return "LICENSE_CHECK_FAILED";
case APP_MISCONFIGURED /* 26508 */:
return "APP_MISCONFIGURED";
case GAME_NOT_FOUND /* 26509 */:
return "GAME_NOT_FOUND";
case 26520:
return "RESOLVE_STALE_OR_NO_DATA";
case VIDEO_NOT_ACTIVE /* 26620 */:
return "VIDEO_NOT_ACTIVE";
case VIDEO_UNSUPPORTED /* 26621 */:
return "VIDEO_UNSUPPORTED";
case VIDEO_PERMISSION_ERROR /* 26622 */:
return "VIDEO_PERMISSION_ERROR";
case VIDEO_STORAGE_ERROR /* 26623 */:
return "VIDEO_STORAGE_ERROR";
case VIDEO_UNEXPECTED_CAPTURE_ERROR /* 26624 */:
return "VIDEO_UNEXPECTED_CAPTURE_ERROR";
case VIDEO_ALREADY_CAPTURING /* 26625 */:
return "VIDEO_ALREADY_CAPTURING";
case VIDEO_OUT_OF_DISK_SPACE /* 26626 */:
return "VIDEO_OUT_OF_DISK_SPACE";
case 26627:
return "VIDEO_NO_MIC";
case 26628:
return "VIDEO_NO_CAMERA";
case 26629:
return "VIDEO_SCREEN_OFF";
case 26630:
return "VIDEO_RELEASE_TIMEOUT";
case 26631:
return "VIDEO_CAPTURE_VIDEO_PERMISSION_REQUIRED";
case 26632:
return "CAPTURE_ALREADY_PAUSED";
case 26650:
return "VIDEO_MISSING_OVERLAY_PERMISSION";
case 26652:
return "VIDEO_CAPTURE_OVERLAY_VISIBLE";
case 26700:
return "CLIENT_LOADING";
case 26701:
return "CLIENT_EMPTY";
case 26702:
return "CLIENT_HIDDEN";
case CONSENT_REQUIRED /* 26703 */:
return "CONSENT_REQUIRED";
case 26704:
return "PLAYER_NOT_FOUND";
default:
switch (i) {
case 26530:
return "AUTH_ERROR_HARD";
case 26531:
return "AUTH_ERROR_USER_RECOVERABLE";
case 26532:
return "AUTH_ERROR_UNREGISTERED_CLIENT_ID";
case 26533:
return "AUTH_ERROR_API_ACCESS_DENIED";
case 26534:
return "AUTH_ERROR_ACCOUNT_NOT_USABLE";
case 26535:
return "AUTH_ERROR_ACCOUNT_UNICORN";
case 26536:
return "AUTH_ERROR_SERVICE_CACHE_MISTAKE";
default:
switch (i) {
case 26550:
return "REQUEST_UPDATE_PARTIAL_SUCCESS";
case 26551:
return "REQUEST_UPDATE_TOTAL_FAILURE";
case 26552:
return "REQUEST_TOO_MANY_RECIPIENTS";
default:
switch (i) {
case ACHIEVEMENT_UNLOCK_FAILURE /* 26560 */:
return "ACHIEVEMENT_UNLOCK_FAILURE";
case ACHIEVEMENT_UNKNOWN /* 26561 */:
return "ACHIEVEMENT_UNKNOWN";
case ACHIEVEMENT_NOT_INCREMENTAL /* 26562 */:
return "ACHIEVEMENT_NOT_INCREMENTAL";
case ACHIEVEMENT_UNLOCKED /* 26563 */:
return "ACHIEVEMENT_UNLOCKED";
default:
switch (i) {
case SNAPSHOT_NOT_FOUND /* 26570 */:
return "SNAPSHOT_NOT_FOUND";
case SNAPSHOT_CREATION_FAILED /* 26571 */:
return "SNAPSHOT_CREATION_FAILED";
case SNAPSHOT_CONTENTS_UNAVAILABLE /* 26572 */:
return "SNAPSHOT_CONTENTS_UNAVAILABLE";
case SNAPSHOT_COMMIT_FAILED /* 26573 */:
return "SNAPSHOT_COMMIT_FAILED";
case 26574:
return "SNAPSHOT_CONFLICT";
case SNAPSHOT_FOLDER_UNAVAILABLE /* 26575 */:
return "SNAPSHOT_FOLDER_UNAVAILABLE";
case SNAPSHOT_CONFLICT_MISSING /* 26576 */:
return "SNAPSHOT_CONFLICT_MISSING";
default:
switch (i) {
case 26580:
return "MULTIPLAYER_ERROR_CREATION_NOT_ALLOWED";
case 26581:
return "MULTIPLAYER_ERROR_NOT_TRUSTED_TESTER";
case 26582:
return "MULTIPLAYER_ERROR_INVALID_MULTIPLAYER_TYPE";
case 26583:
return "MULTIPLAYER_DISABLED";
case 26584:
return "MULTIPLAYER_ERROR_INVALID_OPERATION";
default:
switch (i) {
case 26590:
return "MATCH_ERROR_INVALID_PARTICIPANT_STATE";
case 26591:
return "MATCH_ERROR_INACTIVE_MATCH";
case 26592:
return "MATCH_ERROR_INVALID_MATCH_STATE";
case 26593:
return "MATCH_ERROR_OUT_OF_DATE_VERSION";
case 26594:
return "MATCH_ERROR_INVALID_MATCH_RESULTS";
case 26595:
return "MATCH_ERROR_ALREADY_REMATCHED";
case 26596:
return "MATCH_NOT_FOUND";
case 26597:
return "MATCH_ERROR_LOCALLY_MODIFIED";
default:
switch (i) {
case 26600:
return "REAL_TIME_CONNECTION_FAILED";
case 26601:
return "REAL_TIME_MESSAGE_SEND_FAILED";
case 26602:
return "INVALID_REAL_TIME_ROOM_ID";
case 26603:
return "PARTICIPANT_NOT_CONNECTED";
case 26604:
return "REAL_TIME_ROOM_NOT_JOINED";
case 26605:
return "REAL_TIME_INACTIVE_ROOM";
case 26606:
return "REAL_TIME_SERVICE_NOT_CONNECTED";
case OPERATION_IN_FLIGHT /* 26607 */:
return "OPERATION_IN_FLIGHT";
default:
switch (i) {
case 26610:
return "MILESTONE_CLAIMED_PREVIOUSLY";
case 26611:
return "MILESTONE_CLAIM_FAILED";
case 26612:
return "QUEST_NO_LONGER_AVAILABLE";
case 26613:
return "QUEST_NOT_STARTED";
default:
return CommonStatusCodes.getStatusCodeString(i);
}
}
}
}
}
}
}
}
}
}
@NonNull
public static Status zza(int i) {
return new Status(4, getStatusCodeString(4));
}
@NonNull
public static Status zzb(int i, @NonNull PendingIntent pendingIntent) {
return new Status(i, getStatusCodeString(i), pendingIntent);
}
}

View File

@@ -0,0 +1,13 @@
package com.google.android.gms.games;
import androidx.annotation.NonNull;
import com.google.android.gms.tasks.Task;
/* loaded from: classes2.dex */
public interface GamesMetadataClient {
@NonNull
Task<Game> getCurrentGame();
@NonNull
Task<AnnotatedData<Game>> loadGame();
}

View File

@@ -0,0 +1,21 @@
package com.google.android.gms.games;
import androidx.annotation.NonNull;
import com.google.android.gms.internal.games_v2.zzad;
import com.google.android.gms.tasks.Task;
@zzad
/* loaded from: classes2.dex */
public interface GamesSignInClient {
@NonNull
@zzad
Task<AuthenticationResult> isAuthenticated();
@NonNull
@zzad
Task<String> requestServerSideAccess(@NonNull String str, boolean z);
@NonNull
@zzad
Task<AuthenticationResult> signIn();
}

View File

@@ -0,0 +1,314 @@
package com.google.android.gms.games;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.facebook.ads.AdError;
import com.google.android.gms.auth.api.proxy.AuthApiStatusCodes;
import com.google.android.gms.common.annotation.KeepForSdk;
import com.google.android.gms.common.api.ApiException;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.common.internal.ApiExceptionUtil;
import com.google.android.gms.tasks.TaskCompletionSource;
import com.ironsource.mediationsdk.utils.IronSourceConstants;
@KeepForSdk
/* loaded from: classes2.dex */
public final class GamesStatusUtils {
private GamesStatusUtils() {
}
public static void zza(@NonNull TaskCompletionSource taskCompletionSource, int i) {
int i2;
Status zza = zzp.zza(i);
int statusCode = zza.getStatusCode();
if (statusCode == 1) {
i2 = 8;
} else if (statusCode == 2) {
i2 = 26502;
} else if (statusCode == 3) {
i2 = 26503;
} else if (statusCode == 4) {
i2 = GamesClientStatusCodes.NETWORK_ERROR_NO_DATA;
} else if (statusCode == 5) {
i2 = 26505;
} else if (statusCode != 6) {
if (statusCode != 7) {
if (statusCode == 1500) {
i2 = 26540;
} else if (statusCode != 1501) {
switch (statusCode) {
case 7:
break;
case 8:
i2 = GamesClientStatusCodes.APP_MISCONFIGURED;
break;
case 9:
i2 = GamesClientStatusCodes.GAME_NOT_FOUND;
break;
case 500:
i2 = 26520;
break;
case 9000:
i2 = GamesClientStatusCodes.VIDEO_NOT_ACTIVE;
break;
case AdError.AD_PRESENTATION_ERROR_CODE /* 9001 */:
i2 = GamesClientStatusCodes.VIDEO_UNSUPPORTED;
break;
case 9002:
i2 = GamesClientStatusCodes.VIDEO_PERMISSION_ERROR;
break;
case 9003:
i2 = GamesClientStatusCodes.VIDEO_STORAGE_ERROR;
break;
case 9004:
i2 = GamesClientStatusCodes.VIDEO_UNEXPECTED_CAPTURE_ERROR;
break;
case 9006:
i2 = GamesClientStatusCodes.VIDEO_ALREADY_CAPTURING;
break;
case 9009:
i2 = GamesClientStatusCodes.VIDEO_OUT_OF_DISK_SPACE;
break;
case 9010:
i2 = 26627;
break;
case 9011:
i2 = 26628;
break;
case 9012:
i2 = 26629;
break;
case 9016:
i2 = 26630;
break;
case 9017:
i2 = 26631;
break;
case 9018:
i2 = 26632;
break;
case 9200:
i2 = 26650;
break;
case 9202:
i2 = 26652;
break;
case 10000:
i2 = 26700;
break;
case 10001:
i2 = 26701;
break;
case 10002:
i2 = 26702;
break;
case 10003:
i2 = GamesClientStatusCodes.CONSENT_REQUIRED;
break;
case GamesActivityResultCodes.RESULT_APP_MISCONFIGURED /* 10004 */:
i2 = 26704;
break;
default:
switch (statusCode) {
case 1000:
i2 = 26530;
break;
case 1001:
i2 = 26531;
break;
case 1002:
i2 = 26532;
break;
case 1003:
i2 = 26533;
break;
case 1004:
i2 = 26534;
break;
case 1005:
i2 = 26535;
break;
case 1006:
i2 = 26536;
break;
default:
switch (statusCode) {
case 2000:
i2 = 26550;
break;
case 2001:
i2 = 26551;
break;
case 2002:
i2 = 26552;
break;
default:
switch (statusCode) {
case 3000:
i2 = GamesClientStatusCodes.ACHIEVEMENT_UNLOCK_FAILURE;
break;
case 3001:
i2 = GamesClientStatusCodes.ACHIEVEMENT_UNKNOWN;
break;
case 3002:
i2 = GamesClientStatusCodes.ACHIEVEMENT_NOT_INCREMENTAL;
break;
case AuthApiStatusCodes.AUTH_API_SERVER_ERROR /* 3003 */:
i2 = GamesClientStatusCodes.ACHIEVEMENT_UNLOCKED;
break;
default:
switch (statusCode) {
case 4000:
i2 = GamesClientStatusCodes.SNAPSHOT_NOT_FOUND;
break;
case IronSourceConstants.NT_LOAD /* 4001 */:
i2 = GamesClientStatusCodes.SNAPSHOT_CREATION_FAILED;
break;
case IronSourceConstants.NT_INSTANCE_LOAD /* 4002 */:
i2 = GamesClientStatusCodes.SNAPSHOT_CONTENTS_UNAVAILABLE;
break;
case 4003:
i2 = GamesClientStatusCodes.SNAPSHOT_COMMIT_FAILED;
break;
case 4004:
i2 = 26574;
break;
case IronSourceConstants.NT_INSTANCE_LOAD_SUCCESS /* 4005 */:
i2 = GamesClientStatusCodes.SNAPSHOT_FOLDER_UNAVAILABLE;
break;
case 4006:
i2 = GamesClientStatusCodes.SNAPSHOT_CONFLICT_MISSING;
break;
default:
switch (statusCode) {
case 6000:
i2 = 26580;
break;
case AdError.MEDIAVIEW_MISSING_ERROR_CODE /* 6001 */:
i2 = 26581;
break;
case AdError.ICONVIEW_MISSING_ERROR_CODE /* 6002 */:
i2 = 26582;
break;
case AdError.AD_ASSETS_UNSUPPORTED_TYPE_ERROR_CODE /* 6003 */:
i2 = 26583;
break;
case 6004:
i2 = 26584;
break;
default:
switch (statusCode) {
case 6500:
i2 = 26590;
break;
case 6501:
i2 = 26591;
break;
case 6502:
i2 = 26592;
break;
case 6503:
i2 = 26593;
break;
case 6504:
i2 = 26594;
break;
case 6505:
i2 = 26595;
break;
case 6506:
i2 = 26596;
break;
case 6507:
i2 = 26597;
break;
default:
switch (statusCode) {
case 7000:
i2 = 26600;
break;
case AdError.SHOW_CALLED_BEFORE_LOAD_ERROR_CODE /* 7001 */:
i2 = 26601;
break;
case AdError.LOAD_CALLED_WHILE_SHOWING_AD /* 7002 */:
i2 = 26602;
break;
case AdError.CLEAR_TEXT_SUPPORT_NOT_ALLOWED /* 7003 */:
i2 = 26603;
break;
case AdError.INCORRECT_STATE_ERROR /* 7004 */:
i2 = 26604;
break;
case AdError.MISSING_DEPENDENCIES_ERROR /* 7005 */:
i2 = 26605;
break;
case AdError.API_NOT_SUPPORTED /* 7006 */:
i2 = 26606;
break;
case AdError.NATIVE_AD_IS_NOT_LOADED /* 7007 */:
i2 = GamesClientStatusCodes.OPERATION_IN_FLIGHT;
break;
default:
switch (statusCode) {
case 8000:
i2 = 26610;
break;
case 8001:
i2 = 26611;
break;
case 8002:
i2 = 26612;
break;
case 8003:
i2 = 26613;
break;
default:
i2 = statusCode;
break;
}
}
}
}
}
}
}
}
}
} else {
i2 = 26541;
}
}
i2 = GamesClientStatusCodes.LICENSE_CHECK_FAILED;
} else {
i2 = GamesClientStatusCodes.NETWORK_ERROR_OPERATION_FAILED;
}
if (i2 != zza.getStatusCode()) {
if (!zzp.zzb(zza.getStatusCode()).equals(zza.getStatusMessage())) {
switch (statusCode) {
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
case 8:
case 10:
break;
case 9:
default:
zza = new Status(i2, zza.getStatusMessage(), zza.getResolution());
break;
}
} else {
zza = GamesClientStatusCodes.zzb(i2, zza.getResolution());
}
}
taskCompletionSource.setException(ApiExceptionUtil.fromStatus(zza));
}
public static void zzb(@Nullable TaskCompletionSource taskCompletionSource, @NonNull SecurityException securityException) {
if (taskCompletionSource != null) {
taskCompletionSource.trySetException(new ApiException(GamesClientStatusCodes.zza(4)));
}
}
}

View File

@@ -0,0 +1,90 @@
package com.google.android.gms.games;
import android.content.Intent;
import androidx.annotation.IntRange;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.gms.common.api.Releasable;
import com.google.android.gms.games.leaderboard.Leaderboard;
import com.google.android.gms.games.leaderboard.LeaderboardBuffer;
import com.google.android.gms.games.leaderboard.LeaderboardScore;
import com.google.android.gms.games.leaderboard.LeaderboardScoreBuffer;
import com.google.android.gms.games.leaderboard.ScoreSubmissionData;
import com.google.android.gms.tasks.Task;
/* loaded from: classes2.dex */
public interface LeaderboardsClient {
public static class LeaderboardScores implements Releasable {
@Nullable
private final Leaderboard zza;
private final LeaderboardScoreBuffer zzb;
public LeaderboardScores(@Nullable Leaderboard leaderboard, @NonNull LeaderboardScoreBuffer leaderboardScoreBuffer) {
this.zza = leaderboard;
this.zzb = leaderboardScoreBuffer;
}
@Nullable
public Leaderboard getLeaderboard() {
return this.zza;
}
@NonNull
public LeaderboardScoreBuffer getScores() {
return this.zzb;
}
@Override // com.google.android.gms.common.api.Releasable
public void release() {
this.zzb.release();
}
}
@NonNull
Task<Intent> getAllLeaderboardsIntent();
@NonNull
Task<Intent> getLeaderboardIntent(@NonNull String str);
@NonNull
Task<Intent> getLeaderboardIntent(@NonNull String str, int i);
@NonNull
Task<Intent> getLeaderboardIntent(@NonNull String str, int i, int i2);
@NonNull
Task<AnnotatedData<LeaderboardScore>> loadCurrentPlayerLeaderboardScore(@NonNull String str, int i, int i2);
@NonNull
Task<AnnotatedData<Leaderboard>> loadLeaderboardMetadata(@NonNull String str, boolean z);
@NonNull
Task<AnnotatedData<LeaderboardBuffer>> loadLeaderboardMetadata(boolean z);
@NonNull
Task<AnnotatedData<LeaderboardScores>> loadMoreScores(@NonNull LeaderboardScoreBuffer leaderboardScoreBuffer, @IntRange(from = 1, to = 25) int i, int i2);
@NonNull
Task<AnnotatedData<LeaderboardScores>> loadPlayerCenteredScores(@NonNull String str, int i, int i2, @IntRange(from = 1, to = 25) int i3);
@NonNull
Task<AnnotatedData<LeaderboardScores>> loadPlayerCenteredScores(@NonNull String str, int i, int i2, @IntRange(from = 1, to = 25) int i3, boolean z);
@NonNull
Task<AnnotatedData<LeaderboardScores>> loadTopScores(@NonNull String str, int i, int i2, @IntRange(from = 1, to = 25) int i3);
@NonNull
Task<AnnotatedData<LeaderboardScores>> loadTopScores(@NonNull String str, int i, int i2, @IntRange(from = 1, to = 25) int i3, boolean z);
void submitScore(@NonNull String str, long j);
void submitScore(@NonNull String str, long j, @NonNull String str2);
@NonNull
Task<ScoreSubmissionData> submitScoreImmediate(@NonNull String str, long j);
@NonNull
Task<ScoreSubmissionData> submitScoreImmediate(@NonNull String str, long j, @NonNull String str2);
}

View File

@@ -0,0 +1,19 @@
package com.google.android.gms.games;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/* loaded from: classes2.dex */
public final class PageDirection {
public static final int NEXT = 0;
public static final int NONE = -1;
public static final int PREV = 1;
@Retention(RetentionPolicy.SOURCE)
public @interface Direction {
}
private PageDirection() {
throw new AssertionError("Uninstantiable");
}
}

View File

@@ -0,0 +1,83 @@
package com.google.android.gms.games;
import android.app.Activity;
import androidx.annotation.NonNull;
import androidx.annotation.RequiresApi;
import com.google.android.gms.common.internal.ShowFirstParty;
import com.google.android.gms.internal.games_v2.zzad;
import com.google.android.gms.internal.games_v2.zzaq;
import com.google.android.gms.internal.games_v2.zzax;
import com.google.android.gms.internal.games_v2.zzbr;
import com.google.android.gms.internal.games_v2.zzce;
import com.google.android.gms.internal.games_v2.zzcl;
import com.google.android.gms.internal.games_v2.zzco;
import com.google.android.gms.internal.games_v2.zzdj;
import com.google.android.gms.internal.games_v2.zzdm;
import com.google.android.gms.internal.games_v2.zzef;
import com.google.android.gms.internal.games_v2.zzek;
import com.google.android.gms.internal.games_v2.zzfd;
@ShowFirstParty
@RequiresApi(19)
@zzad
/* loaded from: classes2.dex */
public final class PlayGames {
private PlayGames() {
}
@NonNull
@zzad
public static AchievementsClient getAchievementsClient(@NonNull Activity activity) {
zzbr.zzb();
return new zzce(zzaq.zza(zzbr.zza()));
}
@NonNull
@zzad
public static EventsClient getEventsClient(@NonNull Activity activity) {
zzbr.zzb();
return new zzcl(zzaq.zza(zzbr.zza()));
}
@NonNull
@zzad
public static GamesSignInClient getGamesSignInClient(@NonNull Activity activity) {
zzbr.zzb();
return new zzco(zzax.zza(zzbr.zza()), zzaq.zza(zzbr.zza()));
}
@NonNull
@zzad
public static LeaderboardsClient getLeaderboardsClient(@NonNull Activity activity) {
zzbr.zzb();
return new zzdj(zzaq.zza(zzbr.zza()));
}
@NonNull
@zzad
public static PlayerStatsClient getPlayerStatsClient(@NonNull Activity activity) {
zzbr.zzb();
return new zzdm(zzaq.zza(zzbr.zza()));
}
@NonNull
@zzad
public static PlayersClient getPlayersClient(@NonNull Activity activity) {
zzbr.zzb();
return new zzef(zzaq.zza(zzbr.zza()));
}
@NonNull
@zzad
public static RecallClient getRecallClient(@NonNull Activity activity) {
zzbr.zzb();
return new zzek(activity, zzax.zza(zzbr.zza()));
}
@NonNull
@zzad
public static SnapshotsClient getSnapshotsClient(@NonNull Activity activity) {
zzbr.zzb();
return new zzfd(zzaq.zza(zzbr.zza()));
}
}

View File

@@ -0,0 +1,20 @@
package com.google.android.gms.games;
import android.content.Context;
import androidx.annotation.NonNull;
import androidx.annotation.RequiresApi;
import com.google.android.gms.internal.games_v2.zzad;
import com.google.android.gms.internal.games_v2.zzbr;
@RequiresApi(19)
@zzad
/* loaded from: classes2.dex */
public final class PlayGamesSdk {
private PlayGamesSdk() {
}
@zzad
public static void initialize(@NonNull Context context) {
zzbr.zzc(context);
}
}

View File

@@ -0,0 +1,118 @@
package com.google.android.gms.games;
import android.database.CharArrayBuffer;
import android.net.Uri;
import android.os.Parcelable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.gms.common.annotation.KeepName;
import com.google.android.gms.common.data.Freezable;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/* loaded from: classes2.dex */
public interface Player extends Freezable<Player>, Parcelable {
public static final long CURRENT_XP_UNKNOWN = -1;
public static final long TIMESTAMP_UNKNOWN = -1;
@Retention(RetentionPolicy.SOURCE)
public @interface FriendsListVisibilityStatus {
public static final int FEATURE_UNAVAILABLE = 3;
public static final int REQUEST_REQUIRED = 2;
public static final int UNKNOWN = 0;
public static final int VISIBLE = 1;
}
@Retention(RetentionPolicy.SOURCE)
public @interface PlayerFriendStatus {
public static final int FRIEND = 4;
public static final int NO_RELATIONSHIP = 0;
public static final int UNKNOWN = -1;
}
@Nullable
Uri getBannerImageLandscapeUri();
@Nullable
@KeepName
@Deprecated
String getBannerImageLandscapeUrl();
@Nullable
Uri getBannerImagePortraitUri();
@Nullable
@KeepName
@Deprecated
String getBannerImagePortraitUrl();
@Nullable
CurrentPlayerInfo getCurrentPlayerInfo();
@NonNull
String getDisplayName();
void getDisplayName(@NonNull CharArrayBuffer charArrayBuffer);
@Nullable
Uri getHiResImageUri();
@Nullable
@KeepName
@Deprecated
String getHiResImageUrl();
@Nullable
Uri getIconImageUri();
@Nullable
@KeepName
@Deprecated
String getIconImageUrl();
@Deprecated
long getLastPlayedWithTimestamp();
@Nullable
PlayerLevelInfo getLevelInfo();
@NonNull
String getPlayerId();
@Nullable
PlayerRelationshipInfo getRelationshipInfo();
long getRetrievedTimestamp();
@Nullable
String getTitle();
void getTitle(@NonNull CharArrayBuffer charArrayBuffer);
boolean hasHiResImage();
boolean hasIconImage();
@Deprecated
int zza();
long zzb();
@Nullable
com.google.android.gms.games.internal.player.zza zzc();
@Nullable
String zzd();
@Nullable
String zze();
@NonNull
String zzf();
boolean zzg();
boolean zzh();
boolean zzi();
}

View File

@@ -0,0 +1,18 @@
package com.google.android.gms.games;
import androidx.annotation.NonNull;
import com.google.android.gms.common.data.AbstractDataBuffer;
import com.google.android.gms.common.data.DataHolder;
/* loaded from: classes2.dex */
public class PlayerBuffer extends AbstractDataBuffer<Player> {
public PlayerBuffer(@NonNull DataHolder dataHolder) {
super(dataHolder);
}
@Override // com.google.android.gms.common.data.AbstractDataBuffer, com.google.android.gms.common.data.DataBuffer
@NonNull
public Player get(int i) {
return new PlayerRef(this.mDataHolder, i, null);
}
}

View File

@@ -0,0 +1,448 @@
package com.google.android.gms.games;
import android.database.CharArrayBuffer;
import android.net.Uri;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.apps.common.proguard.UsedByReflection;
import com.google.android.gms.common.internal.Asserts;
import com.google.android.gms.common.internal.Objects;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
import com.google.android.gms.common.util.DataUtils;
import com.google.android.gms.common.util.RetainForClient;
import com.google.android.gms.games.internal.GamesDowngradeableSafeParcel;
import com.google.android.gms.games.internal.player.MostRecentGameInfoEntity;
@UsedByReflection("GamesGmsClientImpl.java")
@RetainForClient
@SafeParcelable.Class(creator = "PlayerEntityCreator", creatorIsFinal = false)
@SafeParcelable.Reserved({1000})
/* loaded from: classes2.dex */
public final class PlayerEntity extends GamesDowngradeableSafeParcel implements Player {
@NonNull
public static final Parcelable.Creator<PlayerEntity> CREATOR = new zzq();
@SafeParcelable.Field(getter = "getPlayerId", id = 1)
private final String zza;
@SafeParcelable.Field(getter = "getDisplayName", id = 2)
private final String zzb;
@Nullable
@SafeParcelable.Field(getter = "getIconImageUri", id = 3)
private final Uri zzc;
@Nullable
@SafeParcelable.Field(getter = "getHiResImageUri", id = 4)
private final Uri zzd;
@SafeParcelable.Field(getter = "getRetrievedTimestamp", id = 5)
private final long zze;
@SafeParcelable.Field(getter = "isInCircles", id = 6)
private final int zzf;
@SafeParcelable.Field(getter = "getLastPlayedWithTimestamp", id = 7)
private final long zzg;
@Nullable
@SafeParcelable.Field(getter = "getIconImageUrl", id = 8)
private final String zzh;
@Nullable
@SafeParcelable.Field(getter = "getHiResImageUrl", id = 9)
private final String zzi;
@Nullable
@SafeParcelable.Field(getter = "getTitle", id = 14)
private final String zzj;
@Nullable
@SafeParcelable.Field(getter = "getMostRecentGameInfo", id = 15)
private final MostRecentGameInfoEntity zzk;
@Nullable
@SafeParcelable.Field(getter = "getLevelInfo", id = 16)
private final PlayerLevelInfo zzl;
@SafeParcelable.Field(getter = "isProfileVisible", id = 18)
private final boolean zzm;
@SafeParcelable.Field(getter = "hasDebugAccess", id = 19)
private final boolean zzn;
@Nullable
@SafeParcelable.Field(getter = "getGamerTag", id = 20)
private final String zzo;
@SafeParcelable.Field(getter = "getName", id = 21)
private final String zzp;
@Nullable
@SafeParcelable.Field(getter = "getBannerImageLandscapeUri", id = 22)
private final Uri zzq;
@Nullable
@SafeParcelable.Field(getter = "getBannerImageLandscapeUrl", id = 23)
private final String zzr;
@Nullable
@SafeParcelable.Field(getter = "getBannerImagePortraitUri", id = 24)
private final Uri zzs;
@Nullable
@SafeParcelable.Field(getter = "getBannerImagePortraitUrl", id = 25)
private final String zzt;
@SafeParcelable.Field(defaultValue = "-1", getter = "getTotalUnlockedAchievement", id = 29)
private final long zzu;
@Nullable
@SafeParcelable.Field(getter = "getRelationshipInfo", id = 33)
private final zzu zzv;
@Nullable
@SafeParcelable.Field(getter = "getCurrentPlayerInfo", id = 35)
private final zza zzw;
@SafeParcelable.Field(getter = "isAlwaysAutoSignIn", id = 36)
private final boolean zzx;
@Nullable
@SafeParcelable.Field(getter = "getGamePlayerId", id = 37)
private final String zzy;
public PlayerEntity(@NonNull Player player) {
String playerId = player.getPlayerId();
this.zza = playerId;
String displayName = player.getDisplayName();
this.zzb = displayName;
this.zzc = player.getIconImageUri();
this.zzh = player.getIconImageUrl();
this.zzd = player.getHiResImageUri();
this.zzi = player.getHiResImageUrl();
long retrievedTimestamp = player.getRetrievedTimestamp();
this.zze = retrievedTimestamp;
this.zzf = player.zza();
this.zzg = player.getLastPlayedWithTimestamp();
this.zzj = player.getTitle();
this.zzm = player.zzi();
com.google.android.gms.games.internal.player.zza zzc = player.zzc();
this.zzk = zzc == null ? null : new MostRecentGameInfoEntity(zzc);
this.zzl = player.getLevelInfo();
this.zzn = player.zzg();
this.zzo = player.zze();
this.zzp = player.zzf();
this.zzq = player.getBannerImageLandscapeUri();
this.zzr = player.getBannerImageLandscapeUrl();
this.zzs = player.getBannerImagePortraitUri();
this.zzt = player.getBannerImagePortraitUrl();
this.zzu = player.zzb();
PlayerRelationshipInfo relationshipInfo = player.getRelationshipInfo();
this.zzv = relationshipInfo == null ? null : new zzu(relationshipInfo.freeze());
CurrentPlayerInfo currentPlayerInfo = player.getCurrentPlayerInfo();
this.zzw = currentPlayerInfo != null ? (zza) currentPlayerInfo.freeze() : null;
this.zzx = player.zzh();
this.zzy = player.zzd();
Asserts.checkNotNull(playerId);
Asserts.checkNotNull(displayName);
Asserts.checkState(retrievedTimestamp > 0);
}
public static int zzj(Player player) {
return Objects.hashCode(player.getPlayerId(), player.getDisplayName(), Boolean.valueOf(player.zzg()), player.getIconImageUri(), player.getHiResImageUri(), Long.valueOf(player.getRetrievedTimestamp()), player.getTitle(), player.getLevelInfo(), player.zze(), player.zzf(), player.getBannerImageLandscapeUri(), player.getBannerImagePortraitUri(), Long.valueOf(player.zzb()), player.getRelationshipInfo(), player.getCurrentPlayerInfo(), Boolean.valueOf(player.zzh()), player.zzd());
}
public static String zzl(Player player) {
Objects.ToStringHelper add = Objects.toStringHelper(player).add("PlayerId", player.getPlayerId()).add("DisplayName", player.getDisplayName()).add("HasDebugAccess", Boolean.valueOf(player.zzg())).add("IconImageUri", player.getIconImageUri()).add("IconImageUrl", player.getIconImageUrl()).add("HiResImageUri", player.getHiResImageUri()).add("HiResImageUrl", player.getHiResImageUrl()).add("RetrievedTimestamp", Long.valueOf(player.getRetrievedTimestamp())).add("Title", player.getTitle()).add("LevelInfo", player.getLevelInfo()).add("GamerTag", player.zze()).add("Name", player.zzf()).add("BannerImageLandscapeUri", player.getBannerImageLandscapeUri()).add("BannerImageLandscapeUrl", player.getBannerImageLandscapeUrl()).add("BannerImagePortraitUri", player.getBannerImagePortraitUri()).add("BannerImagePortraitUrl", player.getBannerImagePortraitUrl()).add("CurrentPlayerInfo", player.getCurrentPlayerInfo()).add("TotalUnlockedAchievement", Long.valueOf(player.zzb()));
if (player.zzh()) {
add.add("AlwaysAutoSignIn", Boolean.valueOf(player.zzh()));
}
if (player.getRelationshipInfo() != null) {
add.add("RelationshipInfo", player.getRelationshipInfo());
}
if (player.zzd() != null) {
add.add("GamePlayerId", player.zzd());
}
return add.toString();
}
public static boolean zzo(Player player, Object obj) {
if (!(obj instanceof Player)) {
return false;
}
if (player == obj) {
return true;
}
Player player2 = (Player) obj;
return Objects.equal(player2.getPlayerId(), player.getPlayerId()) && Objects.equal(player2.getDisplayName(), player.getDisplayName()) && Objects.equal(Boolean.valueOf(player2.zzg()), Boolean.valueOf(player.zzg())) && Objects.equal(player2.getIconImageUri(), player.getIconImageUri()) && Objects.equal(player2.getHiResImageUri(), player.getHiResImageUri()) && Objects.equal(Long.valueOf(player2.getRetrievedTimestamp()), Long.valueOf(player.getRetrievedTimestamp())) && Objects.equal(player2.getTitle(), player.getTitle()) && Objects.equal(player2.getLevelInfo(), player.getLevelInfo()) && Objects.equal(player2.zze(), player.zze()) && Objects.equal(player2.zzf(), player.zzf()) && Objects.equal(player2.getBannerImageLandscapeUri(), player.getBannerImageLandscapeUri()) && Objects.equal(player2.getBannerImagePortraitUri(), player.getBannerImagePortraitUri()) && Objects.equal(Long.valueOf(player2.zzb()), Long.valueOf(player.zzb())) && Objects.equal(player2.getCurrentPlayerInfo(), player.getCurrentPlayerInfo()) && Objects.equal(player2.getRelationshipInfo(), player.getRelationshipInfo()) && Objects.equal(Boolean.valueOf(player2.zzh()), Boolean.valueOf(player.zzh())) && Objects.equal(player2.zzd(), player.zzd());
}
public boolean equals(@Nullable Object obj) {
return zzo(this, obj);
}
/* JADX WARN: Can't rename method to resolve collision */
@Override // com.google.android.gms.common.data.Freezable
@NonNull
public Player freeze() {
return this;
}
@Override // com.google.android.gms.common.data.Freezable
@NonNull
public final /* bridge */ /* synthetic */ Player freeze() {
return this;
}
@Override // com.google.android.gms.games.Player
@Nullable
public Uri getBannerImageLandscapeUri() {
return this.zzq;
}
@Override // com.google.android.gms.games.Player
@Nullable
public String getBannerImageLandscapeUrl() {
return this.zzr;
}
@Override // com.google.android.gms.games.Player
@Nullable
public Uri getBannerImagePortraitUri() {
return this.zzs;
}
@Override // com.google.android.gms.games.Player
@Nullable
public String getBannerImagePortraitUrl() {
return this.zzt;
}
@Override // com.google.android.gms.games.Player
@NonNull
public CurrentPlayerInfo getCurrentPlayerInfo() {
return this.zzw;
}
@Override // com.google.android.gms.games.Player
@NonNull
public String getDisplayName() {
return this.zzb;
}
@Override // com.google.android.gms.games.Player
public void getDisplayName(@NonNull CharArrayBuffer charArrayBuffer) {
DataUtils.copyStringToBuffer(this.zzb, charArrayBuffer);
}
@Override // com.google.android.gms.games.Player
@Nullable
public Uri getHiResImageUri() {
return this.zzd;
}
@Override // com.google.android.gms.games.Player
@Nullable
public String getHiResImageUrl() {
return this.zzi;
}
@Override // com.google.android.gms.games.Player
@Nullable
public Uri getIconImageUri() {
return this.zzc;
}
@Override // com.google.android.gms.games.Player
@Nullable
public String getIconImageUrl() {
return this.zzh;
}
@Override // com.google.android.gms.games.Player
public long getLastPlayedWithTimestamp() {
return this.zzg;
}
@Override // com.google.android.gms.games.Player
@Nullable
public PlayerLevelInfo getLevelInfo() {
return this.zzl;
}
@Override // com.google.android.gms.games.Player
@NonNull
public String getPlayerId() {
return this.zza;
}
@Override // com.google.android.gms.games.Player
@Nullable
public PlayerRelationshipInfo getRelationshipInfo() {
return this.zzv;
}
@Override // com.google.android.gms.games.Player
public long getRetrievedTimestamp() {
return this.zze;
}
@Override // com.google.android.gms.games.Player
@Nullable
public String getTitle() {
return this.zzj;
}
@Override // com.google.android.gms.games.Player
public void getTitle(@NonNull CharArrayBuffer charArrayBuffer) {
DataUtils.copyStringToBuffer(this.zzj, charArrayBuffer);
}
@Override // com.google.android.gms.games.Player
public boolean hasHiResImage() {
return getHiResImageUri() != null;
}
@Override // com.google.android.gms.games.Player
public boolean hasIconImage() {
return getIconImageUri() != null;
}
public int hashCode() {
return zzj(this);
}
@Override // com.google.android.gms.common.data.Freezable
public boolean isDataValid() {
return true;
}
@NonNull
public String toString() {
return zzl(this);
}
@Override // android.os.Parcelable
public void writeToParcel(@NonNull Parcel parcel, int i) {
if (shouldDowngrade()) {
parcel.writeString(this.zza);
parcel.writeString(this.zzb);
Uri uri = this.zzc;
parcel.writeString(uri == null ? null : uri.toString());
Uri uri2 = this.zzd;
parcel.writeString(uri2 != null ? uri2.toString() : null);
parcel.writeLong(this.zze);
return;
}
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeString(parcel, 1, getPlayerId(), false);
SafeParcelWriter.writeString(parcel, 2, getDisplayName(), false);
SafeParcelWriter.writeParcelable(parcel, 3, getIconImageUri(), i, false);
SafeParcelWriter.writeParcelable(parcel, 4, getHiResImageUri(), i, false);
SafeParcelWriter.writeLong(parcel, 5, getRetrievedTimestamp());
SafeParcelWriter.writeInt(parcel, 6, this.zzf);
SafeParcelWriter.writeLong(parcel, 7, getLastPlayedWithTimestamp());
SafeParcelWriter.writeString(parcel, 8, getIconImageUrl(), false);
SafeParcelWriter.writeString(parcel, 9, getHiResImageUrl(), false);
SafeParcelWriter.writeString(parcel, 14, getTitle(), false);
SafeParcelWriter.writeParcelable(parcel, 15, this.zzk, i, false);
SafeParcelWriter.writeParcelable(parcel, 16, getLevelInfo(), i, false);
SafeParcelWriter.writeBoolean(parcel, 18, this.zzm);
SafeParcelWriter.writeBoolean(parcel, 19, this.zzn);
SafeParcelWriter.writeString(parcel, 20, this.zzo, false);
SafeParcelWriter.writeString(parcel, 21, this.zzp, false);
SafeParcelWriter.writeParcelable(parcel, 22, getBannerImageLandscapeUri(), i, false);
SafeParcelWriter.writeString(parcel, 23, getBannerImageLandscapeUrl(), false);
SafeParcelWriter.writeParcelable(parcel, 24, getBannerImagePortraitUri(), i, false);
SafeParcelWriter.writeString(parcel, 25, getBannerImagePortraitUrl(), false);
SafeParcelWriter.writeLong(parcel, 29, this.zzu);
SafeParcelWriter.writeParcelable(parcel, 33, getRelationshipInfo(), i, false);
SafeParcelWriter.writeParcelable(parcel, 35, getCurrentPlayerInfo(), i, false);
SafeParcelWriter.writeBoolean(parcel, 36, this.zzx);
SafeParcelWriter.writeString(parcel, 37, this.zzy, false);
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
}
@Override // com.google.android.gms.games.Player
public final int zza() {
return this.zzf;
}
@Override // com.google.android.gms.games.Player
public final long zzb() {
return this.zzu;
}
@Override // com.google.android.gms.games.Player
@Nullable
public final com.google.android.gms.games.internal.player.zza zzc() {
return this.zzk;
}
@Override // com.google.android.gms.games.Player
@Nullable
public final String zzd() {
return this.zzy;
}
@Override // com.google.android.gms.games.Player
@Nullable
public final String zze() {
return this.zzo;
}
@Override // com.google.android.gms.games.Player
@NonNull
public final String zzf() {
return this.zzp;
}
@Override // com.google.android.gms.games.Player
public final boolean zzg() {
return this.zzn;
}
@Override // com.google.android.gms.games.Player
public final boolean zzh() {
return this.zzx;
}
@Override // com.google.android.gms.games.Player
public final boolean zzi() {
return this.zzm;
}
@SafeParcelable.Constructor
public PlayerEntity(@SafeParcelable.Param(id = 1) String str, @SafeParcelable.Param(id = 2) String str2, @Nullable @SafeParcelable.Param(id = 3) Uri uri, @Nullable @SafeParcelable.Param(id = 4) Uri uri2, @SafeParcelable.Param(id = 5) long j, @SafeParcelable.Param(id = 6) int i, @SafeParcelable.Param(id = 7) long j2, @Nullable @SafeParcelable.Param(id = 8) String str3, @Nullable @SafeParcelable.Param(id = 9) String str4, @Nullable @SafeParcelable.Param(id = 14) String str5, @Nullable @SafeParcelable.Param(id = 15) MostRecentGameInfoEntity mostRecentGameInfoEntity, @Nullable @SafeParcelable.Param(id = 16) PlayerLevelInfo playerLevelInfo, @SafeParcelable.Param(id = 18) boolean z, @SafeParcelable.Param(id = 19) boolean z2, @Nullable @SafeParcelable.Param(id = 20) String str6, @SafeParcelable.Param(id = 21) String str7, @Nullable @SafeParcelable.Param(id = 22) Uri uri3, @Nullable @SafeParcelable.Param(id = 23) String str8, @Nullable @SafeParcelable.Param(id = 24) Uri uri4, @Nullable @SafeParcelable.Param(id = 25) String str9, @SafeParcelable.Param(id = 29) long j3, @Nullable @SafeParcelable.Param(id = 33) zzu zzuVar, @Nullable @SafeParcelable.Param(id = 35) zza zzaVar, @SafeParcelable.Param(id = 36) boolean z3, @Nullable @SafeParcelable.Param(id = 37) String str10) {
this.zza = str;
this.zzb = str2;
this.zzc = uri;
this.zzh = str3;
this.zzd = uri2;
this.zzi = str4;
this.zze = j;
this.zzf = i;
this.zzg = j2;
this.zzj = str5;
this.zzm = z;
this.zzk = mostRecentGameInfoEntity;
this.zzl = playerLevelInfo;
this.zzn = z2;
this.zzo = str6;
this.zzp = str7;
this.zzq = uri3;
this.zzr = str8;
this.zzs = uri4;
this.zzt = str9;
this.zzu = j3;
this.zzv = zzuVar;
this.zzw = zzaVar;
this.zzx = z3;
this.zzy = str10;
}
}

View File

@@ -0,0 +1,78 @@
package com.google.android.gms.games;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.gms.common.internal.Objects;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
@SafeParcelable.Class(creator = "PlayerLevelCreator")
@SafeParcelable.Reserved({1000})
/* loaded from: classes2.dex */
public final class PlayerLevel extends com.google.android.gms.games.internal.zzh {
@NonNull
public static final Parcelable.Creator<PlayerLevel> CREATOR = new zzs();
@SafeParcelable.Field(getter = "getLevelNumber", id = 1)
private final int zza;
@SafeParcelable.Field(getter = "getMinXp", id = 2)
private final long zzb;
@SafeParcelable.Field(getter = "getMaxXp", id = 3)
private final long zzc;
@SafeParcelable.Constructor
public PlayerLevel(@SafeParcelable.Param(id = 1) int i, @SafeParcelable.Param(id = 2) long j, @SafeParcelable.Param(id = 3) long j2) {
Preconditions.checkState(j >= 0, "Min XP must be positive!");
Preconditions.checkState(j2 > j, "Max XP must be more than min XP!");
this.zza = i;
this.zzb = j;
this.zzc = j2;
}
public boolean equals(@Nullable Object obj) {
if (!(obj instanceof PlayerLevel)) {
return false;
}
if (this == obj) {
return true;
}
PlayerLevel playerLevel = (PlayerLevel) obj;
return Objects.equal(Integer.valueOf(playerLevel.getLevelNumber()), Integer.valueOf(getLevelNumber())) && Objects.equal(Long.valueOf(playerLevel.getMinXp()), Long.valueOf(getMinXp())) && Objects.equal(Long.valueOf(playerLevel.getMaxXp()), Long.valueOf(getMaxXp()));
}
public int getLevelNumber() {
return this.zza;
}
public long getMaxXp() {
return this.zzc;
}
public long getMinXp() {
return this.zzb;
}
public int hashCode() {
return Objects.hashCode(Integer.valueOf(this.zza), Long.valueOf(this.zzb), Long.valueOf(this.zzc));
}
@NonNull
public String toString() {
return Objects.toStringHelper(this).add("LevelNumber", Integer.valueOf(getLevelNumber())).add("MinXp", Long.valueOf(getMinXp())).add("MaxXp", Long.valueOf(getMaxXp())).toString();
}
@Override // android.os.Parcelable
public void writeToParcel(@NonNull Parcel parcel, int i) {
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeInt(parcel, 1, getLevelNumber());
SafeParcelWriter.writeLong(parcel, 2, getMinXp());
SafeParcelWriter.writeLong(parcel, 3, getMaxXp());
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
}
}

View File

@@ -0,0 +1,89 @@
package com.google.android.gms.games;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.gms.common.internal.Objects;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
@SafeParcelable.Class(creator = "PlayerLevelInfoCreator")
@SafeParcelable.Reserved({1000})
/* loaded from: classes2.dex */
public final class PlayerLevelInfo extends com.google.android.gms.games.internal.zzh {
@NonNull
public static final Parcelable.Creator<PlayerLevelInfo> CREATOR = new zzt();
@SafeParcelable.Field(getter = "getCurrentXpTotal", id = 1)
private final long zza;
@SafeParcelable.Field(getter = "getLastLevelUpTimestamp", id = 2)
private final long zzb;
@SafeParcelable.Field(getter = "getCurrentLevel", id = 3)
private final PlayerLevel zzc;
@SafeParcelable.Field(getter = "getNextLevel", id = 4)
private final PlayerLevel zzd;
@SafeParcelable.Constructor
public PlayerLevelInfo(@SafeParcelable.Param(id = 1) long j, @SafeParcelable.Param(id = 2) long j2, @NonNull @SafeParcelable.Param(id = 3) PlayerLevel playerLevel, @NonNull @SafeParcelable.Param(id = 4) PlayerLevel playerLevel2) {
Preconditions.checkState(j != -1);
Preconditions.checkNotNull(playerLevel);
Preconditions.checkNotNull(playerLevel2);
this.zza = j;
this.zzb = j2;
this.zzc = playerLevel;
this.zzd = playerLevel2;
}
public boolean equals(@Nullable Object obj) {
if (!(obj instanceof PlayerLevelInfo)) {
return false;
}
if (obj == this) {
return true;
}
PlayerLevelInfo playerLevelInfo = (PlayerLevelInfo) obj;
return Objects.equal(Long.valueOf(this.zza), Long.valueOf(playerLevelInfo.zza)) && Objects.equal(Long.valueOf(this.zzb), Long.valueOf(playerLevelInfo.zzb)) && Objects.equal(this.zzc, playerLevelInfo.zzc) && Objects.equal(this.zzd, playerLevelInfo.zzd);
}
@NonNull
public PlayerLevel getCurrentLevel() {
return this.zzc;
}
public long getCurrentXpTotal() {
return this.zza;
}
public long getLastLevelUpTimestamp() {
return this.zzb;
}
@NonNull
public PlayerLevel getNextLevel() {
return this.zzd;
}
public int hashCode() {
return Objects.hashCode(Long.valueOf(this.zza), Long.valueOf(this.zzb), this.zzc, this.zzd);
}
public boolean isMaxLevel() {
return this.zzc.equals(this.zzd);
}
@Override // android.os.Parcelable
public void writeToParcel(@NonNull Parcel parcel, int i) {
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeLong(parcel, 1, getCurrentXpTotal());
SafeParcelWriter.writeLong(parcel, 2, getLastLevelUpTimestamp());
SafeParcelWriter.writeParcelable(parcel, 3, getCurrentLevel(), i, false);
SafeParcelWriter.writeParcelable(parcel, 4, getNextLevel(), i, false);
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
}
}

View File

@@ -0,0 +1,247 @@
package com.google.android.gms.games;
import android.annotation.SuppressLint;
import android.database.CharArrayBuffer;
import android.net.Uri;
import android.os.Parcel;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.gms.common.data.DataHolder;
@SuppressLint({"ParcelCreator"})
/* loaded from: classes2.dex */
public final class PlayerRef extends zzo implements Player {
private final com.google.android.gms.games.internal.player.zzd zza;
private final PlayerLevelInfo zzb;
private final com.google.android.gms.games.internal.player.zzc zzc;
private final zzw zzd;
private final zzc zze;
public PlayerRef(@NonNull DataHolder dataHolder, int i, @NonNull String str) {
super(dataHolder, i);
com.google.android.gms.games.internal.player.zzd zzdVar = new com.google.android.gms.games.internal.player.zzd(null);
this.zza = zzdVar;
this.zzc = new com.google.android.gms.games.internal.player.zzc(dataHolder, i, zzdVar);
this.zzd = new zzw(dataHolder, i, zzdVar);
this.zze = new zzc(dataHolder, i, zzdVar);
if (hasNull(zzdVar.zzk) || getLong(zzdVar.zzk) == -1) {
this.zzb = null;
return;
}
int integer = getInteger(zzdVar.zzl);
int integer2 = getInteger(zzdVar.zzo);
PlayerLevel playerLevel = new PlayerLevel(integer, getLong(zzdVar.zzm), getLong(zzdVar.zzn));
this.zzb = new PlayerLevelInfo(getLong(zzdVar.zzk), getLong(zzdVar.zzq), playerLevel, integer != integer2 ? new PlayerLevel(integer2, getLong(zzdVar.zzn), getLong(zzdVar.zzp)) : playerLevel);
}
@Override // android.os.Parcelable
public final int describeContents() {
return 0;
}
@Override // com.google.android.gms.common.data.DataBufferRef
public final boolean equals(@Nullable Object obj) {
return PlayerEntity.zzo(this, obj);
}
@Override // com.google.android.gms.common.data.Freezable
@NonNull
public final /* synthetic */ Player freeze() {
return new PlayerEntity(this);
}
@Override // com.google.android.gms.games.Player
@NonNull
public final Uri getBannerImageLandscapeUri() {
return parseUri(this.zza.zzC);
}
@Override // com.google.android.gms.games.Player
@NonNull
public String getBannerImageLandscapeUrl() {
return getString(this.zza.zzD);
}
@Override // com.google.android.gms.games.Player
@NonNull
public final Uri getBannerImagePortraitUri() {
return parseUri(this.zza.zzE);
}
@Override // com.google.android.gms.games.Player
@NonNull
public String getBannerImagePortraitUrl() {
return getString(this.zza.zzF);
}
@Override // com.google.android.gms.games.Player
@Nullable
public final CurrentPlayerInfo getCurrentPlayerInfo() {
if (this.zze.zza()) {
return this.zze;
}
return null;
}
@Override // com.google.android.gms.games.Player
@NonNull
public final String getDisplayName() {
return getString(this.zza.zzc);
}
@Override // com.google.android.gms.games.Player
@NonNull
public final Uri getHiResImageUri() {
return parseUri(this.zza.zzf);
}
@Override // com.google.android.gms.games.Player
@NonNull
public String getHiResImageUrl() {
return getString(this.zza.zzg);
}
@Override // com.google.android.gms.games.Player
@NonNull
public final Uri getIconImageUri() {
return parseUri(this.zza.zzd);
}
@Override // com.google.android.gms.games.Player
@NonNull
public String getIconImageUrl() {
return getString(this.zza.zze);
}
@Override // com.google.android.gms.games.Player
public final long getLastPlayedWithTimestamp() {
if (!hasColumn(this.zza.zzj) || hasNull(this.zza.zzj)) {
return -1L;
}
return getLong(this.zza.zzj);
}
@Override // com.google.android.gms.games.Player
@NonNull
public final PlayerLevelInfo getLevelInfo() {
return this.zzb;
}
@Override // com.google.android.gms.games.Player
@NonNull
public final String getPlayerId() {
return getString(this.zza.zza);
}
@Override // com.google.android.gms.games.Player
@Nullable
public final PlayerRelationshipInfo getRelationshipInfo() {
zzw zzwVar = this.zzd;
if (zzwVar.getFriendStatus() == -1 && zzwVar.zzb() == null && zzwVar.zza() == null) {
return null;
}
return this.zzd;
}
@Override // com.google.android.gms.games.Player
public final long getRetrievedTimestamp() {
return getLong(this.zza.zzh);
}
@Override // com.google.android.gms.games.Player
@NonNull
public final String getTitle() {
return getString(this.zza.zzr);
}
@Override // com.google.android.gms.games.Player
public final boolean hasHiResImage() {
return getHiResImageUri() != null;
}
@Override // com.google.android.gms.games.Player
public final boolean hasIconImage() {
return getIconImageUri() != null;
}
@Override // com.google.android.gms.common.data.DataBufferRef
public final int hashCode() {
return PlayerEntity.zzj(this);
}
@NonNull
public final String toString() {
return PlayerEntity.zzl(this);
}
@Override // android.os.Parcelable
public final void writeToParcel(@NonNull Parcel parcel, int i) {
new PlayerEntity(this).writeToParcel(parcel, i);
}
@Override // com.google.android.gms.games.Player
public final int zza() {
return getInteger(this.zza.zzi);
}
@Override // com.google.android.gms.games.Player
public final long zzb() {
String str = this.zza.zzG;
if (!hasColumn(str) || hasNull(str)) {
return -1L;
}
return getLong(str);
}
@Override // com.google.android.gms.games.Player
@Nullable
public final com.google.android.gms.games.internal.player.zza zzc() {
if (hasNull(this.zza.zzt)) {
return null;
}
return this.zzc;
}
@Override // com.google.android.gms.games.Player
@Nullable
public final String zzd() {
return zzj(this.zza.zzb, null);
}
@Override // com.google.android.gms.games.Player
@NonNull
public final String zze() {
return getString(this.zza.zzA);
}
@Override // com.google.android.gms.games.Player
@NonNull
public final String zzf() {
return getString(this.zza.zzB);
}
@Override // com.google.android.gms.games.Player
public final boolean zzg() {
return getBoolean(this.zza.zzz);
}
@Override // com.google.android.gms.games.Player
public final boolean zzh() {
return hasColumn(this.zza.zzM) && getBoolean(this.zza.zzM);
}
@Override // com.google.android.gms.games.Player
public final boolean zzi() {
return getBoolean(this.zza.zzs);
}
@Override // com.google.android.gms.games.Player
public final void getDisplayName(@NonNull CharArrayBuffer charArrayBuffer) {
copyToBuffer(this.zza.zzc, charArrayBuffer);
}
@Override // com.google.android.gms.games.Player
public final void getTitle(@NonNull CharArrayBuffer charArrayBuffer) {
copyToBuffer(this.zza.zzr, charArrayBuffer);
}
}

View File

@@ -0,0 +1,19 @@
package com.google.android.gms.games;
import android.os.Parcelable;
import androidx.annotation.Nullable;
import com.google.android.gms.common.data.Freezable;
/* loaded from: classes2.dex */
public interface PlayerRelationshipInfo extends Freezable<PlayerRelationshipInfo>, Parcelable {
int getFriendStatus();
@Nullable
String zza();
@Nullable
String zzb();
@Nullable
String zzc();
}

View File

@@ -0,0 +1,11 @@
package com.google.android.gms.games;
import androidx.annotation.NonNull;
import com.google.android.gms.games.stats.PlayerStats;
import com.google.android.gms.tasks.Task;
/* loaded from: classes2.dex */
public interface PlayerStatsClient {
@NonNull
Task<AnnotatedData<PlayerStats>> loadPlayerStats(boolean z);
}

View File

@@ -0,0 +1,55 @@
package com.google.android.gms.games;
import android.content.Intent;
import androidx.annotation.IntRange;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.gms.tasks.Task;
/* loaded from: classes2.dex */
public interface PlayersClient {
@NonNull
public static final String EXTRA_PLAYER_SEARCH_RESULTS = "player_search_results";
@NonNull
Task<Intent> getCompareProfileIntent(@NonNull Player player);
@NonNull
Task<Intent> getCompareProfileIntent(@NonNull String str);
@NonNull
Task<Intent> getCompareProfileIntentWithAlternativeNameHints(@NonNull String str, @Nullable String str2, @Nullable String str3);
@NonNull
Task<Player> getCurrentPlayer();
@NonNull
Task<AnnotatedData<Player>> getCurrentPlayer(boolean z);
@NonNull
Task<String> getCurrentPlayerId();
@NonNull
Task<Intent> getPlayerSearchIntent();
@NonNull
Task<AnnotatedData<PlayerBuffer>> loadFriends(@IntRange(from = 1, to = 200) int i, boolean z);
@NonNull
Task<AnnotatedData<PlayerBuffer>> loadMoreFriends(@IntRange(from = 1, to = 200) int i);
@NonNull
@Deprecated
Task<AnnotatedData<PlayerBuffer>> loadMoreRecentlyPlayedWithPlayers(@IntRange(from = 1, to = 25) int i);
@NonNull
Task<AnnotatedData<Player>> loadPlayer(@NonNull String str);
@NonNull
Task<AnnotatedData<Player>> loadPlayer(@NonNull String str, boolean z);
@NonNull
@Deprecated
Task<AnnotatedData<PlayerBuffer>> loadRecentlyPlayedWithPlayers(@IntRange(from = 1, to = 25) int i, boolean z);
}

View File

@@ -0,0 +1,22 @@
package com.google.android.gms.games;
/* loaded from: classes2.dex */
public final class R {
public static final class string {
public static int play_games_sdk_version = 0x7f12016e;
private string() {
}
}
public static final class style {
public static int Theme_Games_Transparent = 0x7f13016a;
private style() {
}
}
private R() {
}
}

View File

@@ -0,0 +1,41 @@
package com.google.android.gms.games;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.gms.internal.games_v2.zzad;
import com.google.android.gms.internal.games_v2.zzam;
import java.util.Objects;
@zzad
/* loaded from: classes2.dex */
public final class RecallAccess {
private final String zza;
private RecallAccess(String str) {
this.zza = str;
}
public static RecallAccess zza(zzam zzamVar) {
return new RecallAccess(zzamVar.zza());
}
public final boolean equals(@Nullable Object obj) {
if (this == obj) {
return true;
}
if (obj instanceof RecallAccess) {
return Objects.equals(this.zza, ((RecallAccess) obj).zza);
}
return false;
}
@NonNull
@zzad
public String getSessionId() {
return this.zza;
}
public final int hashCode() {
return Objects.hash(this.zza);
}
}

View File

@@ -0,0 +1,13 @@
package com.google.android.gms.games;
import androidx.annotation.NonNull;
import com.google.android.gms.internal.games_v2.zzad;
import com.google.android.gms.tasks.Task;
@zzad
/* loaded from: classes2.dex */
public interface RecallClient {
@NonNull
@zzad
Task<RecallAccess> requestRecallAccess();
}

View File

@@ -0,0 +1,154 @@
package com.google.android.gms.games;
import android.content.Intent;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.gms.common.api.ApiException;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.games.snapshot.Snapshot;
import com.google.android.gms.games.snapshot.SnapshotContents;
import com.google.android.gms.games.snapshot.SnapshotMetadata;
import com.google.android.gms.games.snapshot.SnapshotMetadataBuffer;
import com.google.android.gms.games.snapshot.SnapshotMetadataChange;
import com.google.android.gms.tasks.Task;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/* loaded from: classes2.dex */
public interface SnapshotsClient {
public static final int DISPLAY_LIMIT_NONE = -1;
@NonNull
public static final String EXTRA_SNAPSHOT_METADATA = "com.google.android.gms.games.SNAPSHOT_METADATA";
@NonNull
public static final String EXTRA_SNAPSHOT_NEW = "com.google.android.gms.games.SNAPSHOT_NEW";
public static final int RESOLUTION_POLICY_HIGHEST_PROGRESS = 4;
public static final int RESOLUTION_POLICY_LAST_KNOWN_GOOD = 2;
public static final int RESOLUTION_POLICY_LONGEST_PLAYTIME = 1;
public static final int RESOLUTION_POLICY_MANUAL = -1;
public static final int RESOLUTION_POLICY_MOST_RECENTLY_MODIFIED = 3;
public static final class DataOrConflict<T> {
private final Object zza;
private final SnapshotConflict zzb;
public DataOrConflict(@Nullable Object obj, @Nullable SnapshotConflict snapshotConflict) {
this.zza = obj;
this.zzb = snapshotConflict;
}
@Nullable
public SnapshotConflict getConflict() {
if (isConflict()) {
return this.zzb;
}
throw new IllegalStateException("getConflict called when there is no conflict.");
}
@Nullable
public T getData() {
if (isConflict()) {
throw new IllegalStateException("getData called when there is a conflict.");
}
return (T) this.zza;
}
public boolean isConflict() {
return this.zzb != null;
}
}
@Retention(RetentionPolicy.SOURCE)
public @interface ResolutionPolicy {
}
public static final class SnapshotConflict {
private final Snapshot zza;
private final String zzb;
private final Snapshot zzc;
private final SnapshotContents zzd;
public SnapshotConflict(@NonNull Snapshot snapshot, @NonNull String str, @NonNull Snapshot snapshot2, @NonNull SnapshotContents snapshotContents) {
this.zza = snapshot;
this.zzb = str;
this.zzc = snapshot2;
this.zzd = snapshotContents;
}
@NonNull
public String getConflictId() {
return this.zzb;
}
@NonNull
public Snapshot getConflictingSnapshot() {
return this.zzc;
}
@NonNull
public SnapshotContents getResolutionSnapshotContents() {
return this.zzd;
}
@NonNull
public Snapshot getSnapshot() {
return this.zza;
}
}
public static final class SnapshotContentUnavailableApiException extends ApiException {
@NonNull
protected final SnapshotMetadata metadata;
public SnapshotContentUnavailableApiException(@NonNull Status status, @NonNull SnapshotMetadata snapshotMetadata) {
super(status);
this.metadata = snapshotMetadata;
}
@NonNull
public SnapshotMetadata getSnapshotMetadata() {
return this.metadata;
}
}
@NonNull
Task<SnapshotMetadata> commitAndClose(@NonNull Snapshot snapshot, @NonNull SnapshotMetadataChange snapshotMetadataChange);
@NonNull
Task<String> delete(@NonNull SnapshotMetadata snapshotMetadata);
@NonNull
Task<Void> discardAndClose(@NonNull Snapshot snapshot);
@NonNull
Task<Integer> getMaxCoverImageSize();
@NonNull
Task<Integer> getMaxDataSize();
@NonNull
Task<Intent> getSelectSnapshotIntent(@NonNull String str, boolean z, boolean z2, int i);
@NonNull
Task<AnnotatedData<SnapshotMetadataBuffer>> load(boolean z);
@NonNull
Task<DataOrConflict<Snapshot>> open(@NonNull SnapshotMetadata snapshotMetadata);
@NonNull
Task<DataOrConflict<Snapshot>> open(@NonNull SnapshotMetadata snapshotMetadata, int i);
@NonNull
Task<DataOrConflict<Snapshot>> open(@NonNull String str, boolean z);
@NonNull
Task<DataOrConflict<Snapshot>> open(@NonNull String str, boolean z, int i);
@NonNull
Task<DataOrConflict<Snapshot>> resolveConflict(@NonNull String str, @NonNull Snapshot snapshot);
@NonNull
Task<DataOrConflict<Snapshot>> resolveConflict(@NonNull String str, @NonNull String str2, @NonNull SnapshotMetadataChange snapshotMetadataChange, @NonNull SnapshotContents snapshotContents);
}

View File

@@ -0,0 +1,56 @@
package com.google.android.gms.games;
import android.content.Intent;
import androidx.annotation.NonNull;
import com.google.android.gms.games.video.CaptureState;
import com.google.android.gms.games.video.VideoCapabilities;
import com.google.android.gms.tasks.Task;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@Deprecated
/* loaded from: classes2.dex */
public interface VideosClient {
public static final int CAPTURE_OVERLAY_STATE_CAPTURE_STARTED = 2;
public static final int CAPTURE_OVERLAY_STATE_CAPTURE_STOPPED = 3;
public static final int CAPTURE_OVERLAY_STATE_DISMISSED = 4;
public static final int CAPTURE_OVERLAY_STATE_SHOWN = 1;
@Retention(RetentionPolicy.SOURCE)
public @interface CaptureOverlayState {
}
@Deprecated
public interface OnCaptureOverlayStateListener {
@Deprecated
void onCaptureOverlayStateChanged(int i);
}
@NonNull
@Deprecated
Task<VideoCapabilities> getCaptureCapabilities();
@NonNull
@Deprecated
Task<Intent> getCaptureOverlayIntent();
@NonNull
@Deprecated
Task<CaptureState> getCaptureState();
@NonNull
@Deprecated
Task<Boolean> isCaptureAvailable(int i);
@NonNull
@Deprecated
Task<Boolean> isCaptureSupported();
@NonNull
@Deprecated
Task<Void> registerOnCaptureOverlayStateChangedListener(@NonNull OnCaptureOverlayStateListener onCaptureOverlayStateListener);
@NonNull
@Deprecated
Task<Boolean> unregisterOnCaptureOverlayStateChangedListener(@NonNull OnCaptureOverlayStateListener onCaptureOverlayStateListener);
}

View File

@@ -0,0 +1,91 @@
package com.google.android.gms.games.achievement;
import android.database.CharArrayBuffer;
import android.net.Uri;
import android.os.Parcelable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.gms.common.annotation.KeepName;
import com.google.android.gms.common.data.Freezable;
import com.google.android.gms.games.Player;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/* loaded from: classes2.dex */
public interface Achievement extends Freezable<Achievement>, Parcelable {
public static final int STATE_HIDDEN = 2;
public static final int STATE_REVEALED = 1;
public static final int STATE_UNLOCKED = 0;
public static final int TYPE_INCREMENTAL = 1;
public static final int TYPE_STANDARD = 0;
@Retention(RetentionPolicy.SOURCE)
public @interface AchievementState {
}
@Retention(RetentionPolicy.SOURCE)
public @interface AchievementType {
}
@NonNull
String getAchievementId();
int getCurrentSteps();
@NonNull
String getDescription();
void getDescription(@NonNull CharArrayBuffer charArrayBuffer);
@Nullable
String getFormattedCurrentSteps();
void getFormattedCurrentSteps(@NonNull CharArrayBuffer charArrayBuffer);
@Nullable
String getFormattedTotalSteps();
void getFormattedTotalSteps(@NonNull CharArrayBuffer charArrayBuffer);
long getLastUpdatedTimestamp();
@NonNull
String getName();
void getName(@NonNull CharArrayBuffer charArrayBuffer);
@NonNull
Player getPlayer();
@Nullable
Uri getRevealedImageUri();
@Nullable
@KeepName
@Deprecated
String getRevealedImageUrl();
int getState();
int getTotalSteps();
int getType();
@Nullable
Uri getUnlockedImageUri();
@Nullable
@KeepName
@Deprecated
String getUnlockedImageUrl();
long getXpValue();
float zza();
@Nullable
Player zzb();
@NonNull
String zzc();
}

View File

@@ -0,0 +1,18 @@
package com.google.android.gms.games.achievement;
import androidx.annotation.NonNull;
import com.google.android.gms.common.data.AbstractDataBuffer;
import com.google.android.gms.common.data.DataHolder;
/* loaded from: classes2.dex */
public class AchievementBuffer extends AbstractDataBuffer<Achievement> {
public AchievementBuffer(@NonNull DataHolder dataHolder) {
super(dataHolder);
}
@Override // com.google.android.gms.common.data.AbstractDataBuffer, com.google.android.gms.common.data.DataBuffer
@NonNull
public Achievement get(int i) {
return new AchievementRef(this.mDataHolder, i);
}
}

View File

@@ -0,0 +1,372 @@
package com.google.android.gms.games.achievement;
import android.database.CharArrayBuffer;
import android.net.Uri;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.apps.common.proguard.UsedByReflection;
import com.google.android.gms.common.internal.Asserts;
import com.google.android.gms.common.internal.Objects;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
import com.google.android.gms.common.util.DataUtils;
import com.google.android.gms.games.Player;
import com.google.android.gms.games.PlayerEntity;
import com.google.android.gms.games.internal.zzh;
@UsedByReflection("GamesGmsClientImpl.java")
@SafeParcelable.Class(creator = "AchievementEntityCreator")
@SafeParcelable.Reserved({1000})
/* loaded from: classes2.dex */
public final class AchievementEntity extends zzh implements Achievement {
@NonNull
public static final Parcelable.Creator<AchievementEntity> CREATOR = new zza();
@SafeParcelable.Field(getter = "getAchievementId", id = 1)
private final String zza;
@SafeParcelable.Field(getter = "getType", id = 2)
private final int zzb;
@SafeParcelable.Field(getter = "getName", id = 3)
private final String zzc;
@SafeParcelable.Field(getter = "getDescription", id = 4)
private final String zzd;
@Nullable
@SafeParcelable.Field(getter = "getUnlockedImageUri", id = 5)
private final Uri zze;
@Nullable
@SafeParcelable.Field(getter = "getUnlockedImageUrl", id = 6)
private final String zzf;
@Nullable
@SafeParcelable.Field(getter = "getRevealedImageUri", id = 7)
private final Uri zzg;
@Nullable
@SafeParcelable.Field(getter = "getRevealedImageUrl", id = 8)
private final String zzh;
@SafeParcelable.Field(getter = "getTotalStepsRaw", id = 9)
private final int zzi;
@Nullable
@SafeParcelable.Field(getter = "getFormattedTotalStepsRaw", id = 10)
private final String zzj;
@Nullable
@SafeParcelable.Field(getter = "getPlayerInternal", id = 11)
private final PlayerEntity zzk;
@SafeParcelable.Field(getter = "getState", id = 12)
private final int zzl;
@SafeParcelable.Field(getter = "getCurrentStepsRaw", id = 13)
private final int zzm;
@Nullable
@SafeParcelable.Field(getter = "getFormattedCurrentStepsRaw", id = 14)
private final String zzn;
@SafeParcelable.Field(getter = "getLastUpdatedTimestamp", id = 15)
private final long zzo;
@SafeParcelable.Field(getter = "getXpValue", id = 16)
private final long zzp;
@SafeParcelable.Field(defaultValue = "-1.0f", getter = "getRarityPercent", id = 17)
private final float zzq;
@SafeParcelable.Field(getter = "getApplicationId", id = 18)
private final String zzr;
public AchievementEntity(@NonNull Achievement achievement) {
String achievementId = achievement.getAchievementId();
this.zza = achievementId;
this.zzb = achievement.getType();
this.zzc = achievement.getName();
String description = achievement.getDescription();
this.zzd = description;
this.zze = achievement.getUnlockedImageUri();
this.zzf = achievement.getUnlockedImageUrl();
this.zzg = achievement.getRevealedImageUri();
this.zzh = achievement.getRevealedImageUrl();
Player zzb = achievement.zzb();
if (zzb != null) {
this.zzk = new PlayerEntity(zzb);
} else {
this.zzk = null;
}
this.zzl = achievement.getState();
this.zzo = achievement.getLastUpdatedTimestamp();
this.zzp = achievement.getXpValue();
this.zzq = achievement.zza();
this.zzr = achievement.zzc();
if (achievement.getType() == 1) {
this.zzi = achievement.getTotalSteps();
this.zzj = achievement.getFormattedTotalSteps();
this.zzm = achievement.getCurrentSteps();
this.zzn = achievement.getFormattedCurrentSteps();
} else {
this.zzi = 0;
this.zzj = null;
this.zzm = 0;
this.zzn = null;
}
Asserts.checkNotNull(achievementId);
Asserts.checkNotNull(description);
}
public static int zzd(Achievement achievement) {
int i;
int i2;
if (achievement.getType() == 1) {
i = achievement.getCurrentSteps();
i2 = achievement.getTotalSteps();
} else {
i = 0;
i2 = 0;
}
return Objects.hashCode(achievement.getAchievementId(), achievement.zzc(), achievement.getName(), Integer.valueOf(achievement.getType()), achievement.getDescription(), Long.valueOf(achievement.getXpValue()), Integer.valueOf(achievement.getState()), Long.valueOf(achievement.getLastUpdatedTimestamp()), achievement.zzb(), Integer.valueOf(i), Integer.valueOf(i2));
}
public static String zze(Achievement achievement) {
Objects.ToStringHelper add = Objects.toStringHelper(achievement).add("Id", achievement.getAchievementId()).add("Game Id", achievement.zzc()).add("Type", Integer.valueOf(achievement.getType())).add("Name", achievement.getName()).add("Description", achievement.getDescription()).add("Player", achievement.zzb()).add("State", Integer.valueOf(achievement.getState())).add("Rarity Percent", Float.valueOf(achievement.zza()));
if (achievement.getType() == 1) {
add.add("CurrentSteps", Integer.valueOf(achievement.getCurrentSteps()));
add.add("TotalSteps", Integer.valueOf(achievement.getTotalSteps()));
}
return add.toString();
}
public static boolean zzf(Achievement achievement, @Nullable Object obj) {
if (!(obj instanceof Achievement)) {
return false;
}
if (achievement == obj) {
return true;
}
Achievement achievement2 = (Achievement) obj;
if (achievement2.getType() != achievement.getType()) {
return false;
}
return (achievement.getType() != 1 || (achievement2.getCurrentSteps() == achievement.getCurrentSteps() && achievement2.getTotalSteps() == achievement.getTotalSteps())) && achievement2.getXpValue() == achievement.getXpValue() && achievement2.getState() == achievement.getState() && achievement2.getLastUpdatedTimestamp() == achievement.getLastUpdatedTimestamp() && Objects.equal(achievement2.getAchievementId(), achievement.getAchievementId()) && Objects.equal(achievement2.zzc(), achievement.zzc()) && Objects.equal(achievement2.getName(), achievement.getName()) && Objects.equal(achievement2.getDescription(), achievement.getDescription()) && Objects.equal(achievement2.zzb(), achievement.zzb()) && achievement2.zza() == achievement.zza();
}
public boolean equals(@Nullable Object obj) {
return zzf(this, obj);
}
/* JADX WARN: Can't rename method to resolve collision */
@Override // com.google.android.gms.common.data.Freezable
@NonNull
public Achievement freeze() {
return this;
}
@Override // com.google.android.gms.common.data.Freezable
@NonNull
public final /* bridge */ /* synthetic */ Achievement freeze() {
return this;
}
@Override // com.google.android.gms.games.achievement.Achievement
@NonNull
public String getAchievementId() {
return this.zza;
}
@Override // com.google.android.gms.games.achievement.Achievement
public int getCurrentSteps() {
Asserts.checkState(getType() == 1);
return this.zzm;
}
@Override // com.google.android.gms.games.achievement.Achievement
@NonNull
public String getDescription() {
return this.zzd;
}
@Override // com.google.android.gms.games.achievement.Achievement
public void getDescription(@NonNull CharArrayBuffer charArrayBuffer) {
DataUtils.copyStringToBuffer(this.zzd, charArrayBuffer);
}
@Override // com.google.android.gms.games.achievement.Achievement
@Nullable
public String getFormattedCurrentSteps() {
Asserts.checkState(getType() == 1);
return this.zzn;
}
@Override // com.google.android.gms.games.achievement.Achievement
@Nullable
public String getFormattedTotalSteps() {
Asserts.checkState(getType() == 1);
return this.zzj;
}
@Override // com.google.android.gms.games.achievement.Achievement
public long getLastUpdatedTimestamp() {
return this.zzo;
}
@Override // com.google.android.gms.games.achievement.Achievement
@NonNull
public String getName() {
return this.zzc;
}
@Override // com.google.android.gms.games.achievement.Achievement
public void getName(@NonNull CharArrayBuffer charArrayBuffer) {
DataUtils.copyStringToBuffer(this.zzc, charArrayBuffer);
}
@Override // com.google.android.gms.games.achievement.Achievement
@NonNull
public Player getPlayer() {
return (Player) Preconditions.checkNotNull(this.zzk);
}
@Override // com.google.android.gms.games.achievement.Achievement
@Nullable
public Uri getRevealedImageUri() {
return this.zzg;
}
@Override // com.google.android.gms.games.achievement.Achievement
@Nullable
public String getRevealedImageUrl() {
return this.zzh;
}
@Override // com.google.android.gms.games.achievement.Achievement
public int getState() {
return this.zzl;
}
@Override // com.google.android.gms.games.achievement.Achievement
public int getTotalSteps() {
Asserts.checkState(getType() == 1);
return this.zzi;
}
@Override // com.google.android.gms.games.achievement.Achievement
public int getType() {
return this.zzb;
}
@Override // com.google.android.gms.games.achievement.Achievement
@Nullable
public Uri getUnlockedImageUri() {
return this.zze;
}
@Override // com.google.android.gms.games.achievement.Achievement
@Nullable
public String getUnlockedImageUrl() {
return this.zzf;
}
@Override // com.google.android.gms.games.achievement.Achievement
public long getXpValue() {
return this.zzp;
}
public int hashCode() {
return zzd(this);
}
@Override // com.google.android.gms.common.data.Freezable
public boolean isDataValid() {
return true;
}
@NonNull
public String toString() {
return zze(this);
}
@Override // android.os.Parcelable
public void writeToParcel(@NonNull Parcel parcel, int i) {
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeString(parcel, 1, getAchievementId(), false);
SafeParcelWriter.writeInt(parcel, 2, getType());
SafeParcelWriter.writeString(parcel, 3, getName(), false);
SafeParcelWriter.writeString(parcel, 4, getDescription(), false);
SafeParcelWriter.writeParcelable(parcel, 5, getUnlockedImageUri(), i, false);
SafeParcelWriter.writeString(parcel, 6, getUnlockedImageUrl(), false);
SafeParcelWriter.writeParcelable(parcel, 7, getRevealedImageUri(), i, false);
SafeParcelWriter.writeString(parcel, 8, getRevealedImageUrl(), false);
SafeParcelWriter.writeInt(parcel, 9, this.zzi);
SafeParcelWriter.writeString(parcel, 10, this.zzj, false);
SafeParcelWriter.writeParcelable(parcel, 11, this.zzk, i, false);
SafeParcelWriter.writeInt(parcel, 12, getState());
SafeParcelWriter.writeInt(parcel, 13, this.zzm);
SafeParcelWriter.writeString(parcel, 14, this.zzn, false);
SafeParcelWriter.writeLong(parcel, 15, getLastUpdatedTimestamp());
SafeParcelWriter.writeLong(parcel, 16, getXpValue());
SafeParcelWriter.writeFloat(parcel, 17, this.zzq);
SafeParcelWriter.writeString(parcel, 18, this.zzr, false);
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
}
@Override // com.google.android.gms.games.achievement.Achievement
public final float zza() {
return this.zzq;
}
@Override // com.google.android.gms.games.achievement.Achievement
@Nullable
public final Player zzb() {
return this.zzk;
}
@Override // com.google.android.gms.games.achievement.Achievement
@NonNull
public final String zzc() {
return this.zzr;
}
@Override // com.google.android.gms.games.achievement.Achievement
public void getFormattedCurrentSteps(@NonNull CharArrayBuffer charArrayBuffer) {
Asserts.checkState(getType() == 1);
DataUtils.copyStringToBuffer(this.zzn, charArrayBuffer);
}
@Override // com.google.android.gms.games.achievement.Achievement
public void getFormattedTotalSteps(@NonNull CharArrayBuffer charArrayBuffer) {
Asserts.checkState(getType() == 1);
DataUtils.copyStringToBuffer(this.zzj, charArrayBuffer);
}
@SafeParcelable.Constructor
public AchievementEntity(@SafeParcelable.Param(id = 1) String str, @SafeParcelable.Param(id = 2) int i, @SafeParcelable.Param(id = 3) String str2, @SafeParcelable.Param(id = 4) String str3, @SafeParcelable.Param(id = 5) Uri uri, @SafeParcelable.Param(id = 6) String str4, @SafeParcelable.Param(id = 7) Uri uri2, @SafeParcelable.Param(id = 8) String str5, @SafeParcelable.Param(id = 9) int i2, @SafeParcelable.Param(id = 10) String str6, @Nullable @SafeParcelable.Param(id = 11) PlayerEntity playerEntity, @SafeParcelable.Param(id = 12) int i3, @SafeParcelable.Param(id = 13) int i4, @SafeParcelable.Param(id = 14) String str7, @SafeParcelable.Param(id = 15) long j, @SafeParcelable.Param(id = 16) long j2, @SafeParcelable.Param(id = 17) float f, @SafeParcelable.Param(id = 18) String str8) {
this.zza = str;
this.zzb = i;
this.zzc = str2;
this.zzd = str3;
this.zze = uri;
this.zzf = str4;
this.zzg = uri2;
this.zzh = str5;
this.zzi = i2;
this.zzj = str6;
this.zzk = playerEntity;
this.zzl = i3;
this.zzm = i4;
this.zzn = str7;
this.zzo = j;
this.zzp = j2;
this.zzq = f;
this.zzr = str8;
}
}

View File

@@ -0,0 +1,190 @@
package com.google.android.gms.games.achievement;
import android.database.CharArrayBuffer;
import android.net.Uri;
import android.os.Parcel;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.gms.common.data.DataBufferRef;
import com.google.android.gms.common.data.DataHolder;
import com.google.android.gms.common.internal.Asserts;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.games.Player;
import com.google.android.gms.games.PlayerRef;
/* loaded from: classes2.dex */
public final class AchievementRef extends DataBufferRef implements Achievement {
public AchievementRef(DataHolder dataHolder, int i) {
super(dataHolder, i);
}
@Override // android.os.Parcelable
public final int describeContents() {
return 0;
}
@Override // com.google.android.gms.common.data.DataBufferRef
public final boolean equals(@Nullable Object obj) {
return AchievementEntity.zzf(this, obj);
}
@Override // com.google.android.gms.common.data.Freezable
@NonNull
public final /* synthetic */ Achievement freeze() {
return new AchievementEntity(this);
}
@Override // com.google.android.gms.games.achievement.Achievement
@NonNull
public final String getAchievementId() {
return getString("external_achievement_id");
}
@Override // com.google.android.gms.games.achievement.Achievement
public final int getCurrentSteps() {
Asserts.checkState(getInteger("type") == 1);
return getInteger("current_steps");
}
@Override // com.google.android.gms.games.achievement.Achievement
@NonNull
public final String getDescription() {
return getString("description");
}
@Override // com.google.android.gms.games.achievement.Achievement
@NonNull
public final String getFormattedCurrentSteps() {
Asserts.checkState(getInteger("type") == 1);
return getString("formatted_current_steps");
}
@Override // com.google.android.gms.games.achievement.Achievement
@NonNull
public final String getFormattedTotalSteps() {
Asserts.checkState(getInteger("type") == 1);
return getString("formatted_total_steps");
}
@Override // com.google.android.gms.games.achievement.Achievement
public final long getLastUpdatedTimestamp() {
return getLong("last_updated_timestamp");
}
@Override // com.google.android.gms.games.achievement.Achievement
@NonNull
public final String getName() {
return getString("name");
}
@Override // com.google.android.gms.games.achievement.Achievement
@NonNull
public final Player getPlayer() {
return (Player) Preconditions.checkNotNull(zzb());
}
@Override // com.google.android.gms.games.achievement.Achievement
@NonNull
public final Uri getRevealedImageUri() {
return parseUri("revealed_icon_image_uri");
}
@Override // com.google.android.gms.games.achievement.Achievement
@NonNull
public String getRevealedImageUrl() {
return getString("revealed_icon_image_url");
}
@Override // com.google.android.gms.games.achievement.Achievement
public final int getState() {
return getInteger("state");
}
@Override // com.google.android.gms.games.achievement.Achievement
public final int getTotalSteps() {
Asserts.checkState(getInteger("type") == 1);
return getInteger("total_steps");
}
@Override // com.google.android.gms.games.achievement.Achievement
public final int getType() {
return getInteger("type");
}
@Override // com.google.android.gms.games.achievement.Achievement
@NonNull
public final Uri getUnlockedImageUri() {
return parseUri("unlocked_icon_image_uri");
}
@Override // com.google.android.gms.games.achievement.Achievement
@NonNull
public String getUnlockedImageUrl() {
return getString("unlocked_icon_image_url");
}
@Override // com.google.android.gms.games.achievement.Achievement
public final long getXpValue() {
return (!hasColumn("instance_xp_value") || hasNull("instance_xp_value")) ? getLong("definition_xp_value") : getLong("instance_xp_value");
}
@Override // com.google.android.gms.common.data.DataBufferRef
public final int hashCode() {
return AchievementEntity.zzd(this);
}
@NonNull
public final String toString() {
return AchievementEntity.zze(this);
}
@Override // android.os.Parcelable
public final void writeToParcel(@NonNull Parcel parcel, int i) {
new AchievementEntity(this).writeToParcel(parcel, i);
}
@Override // com.google.android.gms.games.achievement.Achievement
public final float zza() {
if (!hasColumn("rarity_percent") || hasNull("rarity_percent")) {
return -1.0f;
}
return getFloat("rarity_percent");
}
@Override // com.google.android.gms.games.achievement.Achievement
@Nullable
public final Player zzb() {
if (hasNull("external_player_id")) {
return null;
}
return new PlayerRef(this.mDataHolder, this.mDataRow, null);
}
@Override // com.google.android.gms.games.achievement.Achievement
@NonNull
public final String zzc() {
return getString("external_game_id");
}
@Override // com.google.android.gms.games.achievement.Achievement
public final void getDescription(@NonNull CharArrayBuffer charArrayBuffer) {
copyToBuffer("description", charArrayBuffer);
}
@Override // com.google.android.gms.games.achievement.Achievement
public final void getName(@NonNull CharArrayBuffer charArrayBuffer) {
copyToBuffer("name", charArrayBuffer);
}
@Override // com.google.android.gms.games.achievement.Achievement
public final void getFormattedCurrentSteps(@NonNull CharArrayBuffer charArrayBuffer) {
Asserts.checkState(getInteger("type") == 1);
copyToBuffer("formatted_current_steps", charArrayBuffer);
}
@Override // com.google.android.gms.games.achievement.Achievement
public final void getFormattedTotalSteps(@NonNull CharArrayBuffer charArrayBuffer) {
Asserts.checkState(getInteger("type") == 1);
copyToBuffer("formatted_total_steps", charArrayBuffer);
}
}

View File

@@ -0,0 +1,102 @@
package com.google.android.gms.games.achievement;
import android.net.Uri;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
import com.google.android.gms.games.PlayerEntity;
/* loaded from: classes2.dex */
public final class zza implements Parcelable.Creator {
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
String str = null;
String str2 = null;
String str3 = null;
Uri uri = null;
String str4 = null;
Uri uri2 = null;
String str5 = null;
String str6 = null;
PlayerEntity playerEntity = null;
String str7 = null;
String str8 = null;
float f = -1.0f;
long j = 0;
long j2 = 0;
int i = 0;
int i2 = 0;
int i3 = 0;
int i4 = 0;
while (parcel.dataPosition() < validateObjectHeader) {
int readHeader = SafeParcelReader.readHeader(parcel);
switch (SafeParcelReader.getFieldId(readHeader)) {
case 1:
str = SafeParcelReader.createString(parcel, readHeader);
break;
case 2:
i = SafeParcelReader.readInt(parcel, readHeader);
break;
case 3:
str2 = SafeParcelReader.createString(parcel, readHeader);
break;
case 4:
str3 = SafeParcelReader.createString(parcel, readHeader);
break;
case 5:
uri = (Uri) SafeParcelReader.createParcelable(parcel, readHeader, Uri.CREATOR);
break;
case 6:
str4 = SafeParcelReader.createString(parcel, readHeader);
break;
case 7:
uri2 = (Uri) SafeParcelReader.createParcelable(parcel, readHeader, Uri.CREATOR);
break;
case 8:
str5 = SafeParcelReader.createString(parcel, readHeader);
break;
case 9:
i2 = SafeParcelReader.readInt(parcel, readHeader);
break;
case 10:
str6 = SafeParcelReader.createString(parcel, readHeader);
break;
case 11:
playerEntity = (PlayerEntity) SafeParcelReader.createParcelable(parcel, readHeader, PlayerEntity.CREATOR);
break;
case 12:
i3 = SafeParcelReader.readInt(parcel, readHeader);
break;
case 13:
i4 = SafeParcelReader.readInt(parcel, readHeader);
break;
case 14:
str7 = SafeParcelReader.createString(parcel, readHeader);
break;
case 15:
j = SafeParcelReader.readLong(parcel, readHeader);
break;
case 16:
j2 = SafeParcelReader.readLong(parcel, readHeader);
break;
case 17:
f = SafeParcelReader.readFloat(parcel, readHeader);
break;
case 18:
str8 = SafeParcelReader.createString(parcel, readHeader);
break;
default:
SafeParcelReader.skipUnknownField(parcel, readHeader);
break;
}
}
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
return new AchievementEntity(str, i, str2, str3, uri, str4, uri2, str5, i2, str6, playerEntity, i3, i4, str7, j, j2, f, str8);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Object[] newArray(int i) {
return new AchievementEntity[i];
}
}

View File

@@ -0,0 +1,47 @@
package com.google.android.gms.games.event;
import android.database.CharArrayBuffer;
import android.net.Uri;
import android.os.Parcelable;
import androidx.annotation.NonNull;
import androidx.annotation.VisibleForTesting;
import com.google.android.gms.common.annotation.KeepName;
import com.google.android.gms.common.data.Freezable;
import com.google.android.gms.games.Player;
@VisibleForTesting
/* loaded from: classes2.dex */
public interface Event extends Freezable<Event>, Parcelable {
@NonNull
String getDescription();
void getDescription(@NonNull CharArrayBuffer charArrayBuffer);
@NonNull
String getEventId();
@NonNull
String getFormattedValue();
void getFormattedValue(@NonNull CharArrayBuffer charArrayBuffer);
@NonNull
Uri getIconImageUri();
@NonNull
@KeepName
@Deprecated
String getIconImageUrl();
@NonNull
String getName();
void getName(@NonNull CharArrayBuffer charArrayBuffer);
@NonNull
Player getPlayer();
long getValue();
boolean isVisible();
}

View File

@@ -0,0 +1,18 @@
package com.google.android.gms.games.event;
import androidx.annotation.NonNull;
import com.google.android.gms.common.data.AbstractDataBuffer;
import com.google.android.gms.common.data.DataHolder;
/* loaded from: classes2.dex */
public final class EventBuffer extends AbstractDataBuffer<Event> {
public EventBuffer(@NonNull DataHolder dataHolder) {
super(dataHolder);
}
@Override // com.google.android.gms.common.data.AbstractDataBuffer, com.google.android.gms.common.data.DataBuffer
@NonNull
public Event get(int i) {
return new EventRef(this.mDataHolder, i);
}
}

View File

@@ -0,0 +1,211 @@
package com.google.android.gms.games.event;
import android.database.CharArrayBuffer;
import android.net.Uri;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.apps.common.proguard.UsedByReflection;
import com.google.android.gms.common.internal.Objects;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
import com.google.android.gms.common.util.DataUtils;
import com.google.android.gms.games.Player;
import com.google.android.gms.games.PlayerEntity;
import com.google.android.gms.games.internal.zzh;
import com.ironsource.Cif;
@UsedByReflection("GamesGmsClientImpl.java")
@SafeParcelable.Class(creator = "EventEntityCreator")
@SafeParcelable.Reserved({1000})
/* loaded from: classes2.dex */
public final class EventEntity extends zzh implements Event {
@NonNull
public static final Parcelable.Creator<EventEntity> CREATOR = new zza();
@SafeParcelable.Field(getter = "getEventId", id = 1)
private final String zza;
@SafeParcelable.Field(getter = "getName", id = 2)
private final String zzb;
@SafeParcelable.Field(getter = "getDescription", id = 3)
private final String zzc;
@SafeParcelable.Field(getter = "getIconImageUri", id = 4)
private final Uri zzd;
@SafeParcelable.Field(getter = "getIconImageUrl", id = 5)
private final String zze;
@SafeParcelable.Field(getter = "getPlayer", id = 6)
private final PlayerEntity zzf;
@SafeParcelable.Field(getter = "getValue", id = 7)
private final long zzg;
@SafeParcelable.Field(getter = "getFormattedValue", id = 8)
private final String zzh;
@SafeParcelable.Field(getter = Cif.k, id = 9)
private final boolean zzi;
public EventEntity(@NonNull Event event) {
this.zza = event.getEventId();
this.zzb = event.getName();
this.zzc = event.getDescription();
this.zzd = event.getIconImageUri();
this.zze = event.getIconImageUrl();
this.zzf = (PlayerEntity) event.getPlayer().freeze();
this.zzg = event.getValue();
this.zzh = event.getFormattedValue();
this.zzi = event.isVisible();
}
public static int zza(Event event) {
return Objects.hashCode(event.getEventId(), event.getName(), event.getDescription(), event.getIconImageUri(), event.getIconImageUrl(), event.getPlayer(), Long.valueOf(event.getValue()), event.getFormattedValue(), Boolean.valueOf(event.isVisible()));
}
public static String zzb(Event event) {
return Objects.toStringHelper(event).add("Id", event.getEventId()).add("Name", event.getName()).add("Description", event.getDescription()).add("IconImageUri", event.getIconImageUri()).add("IconImageUrl", event.getIconImageUrl()).add("Player", event.getPlayer()).add("Value", Long.valueOf(event.getValue())).add("FormattedValue", event.getFormattedValue()).add(Cif.k, Boolean.valueOf(event.isVisible())).toString();
}
public static boolean zzc(Event event, Object obj) {
if (!(obj instanceof Event)) {
return false;
}
if (event == obj) {
return true;
}
Event event2 = (Event) obj;
return Objects.equal(event2.getEventId(), event.getEventId()) && Objects.equal(event2.getName(), event.getName()) && Objects.equal(event2.getDescription(), event.getDescription()) && Objects.equal(event2.getIconImageUri(), event.getIconImageUri()) && Objects.equal(event2.getIconImageUrl(), event.getIconImageUrl()) && Objects.equal(event2.getPlayer(), event.getPlayer()) && Objects.equal(Long.valueOf(event2.getValue()), Long.valueOf(event.getValue())) && Objects.equal(event2.getFormattedValue(), event.getFormattedValue()) && Objects.equal(Boolean.valueOf(event2.isVisible()), Boolean.valueOf(event.isVisible()));
}
public boolean equals(@Nullable Object obj) {
return zzc(this, obj);
}
/* JADX WARN: Can't rename method to resolve collision */
@Override // com.google.android.gms.common.data.Freezable
@NonNull
public Event freeze() {
return this;
}
@Override // com.google.android.gms.common.data.Freezable
@NonNull
public final /* bridge */ /* synthetic */ Event freeze() {
return this;
}
@Override // com.google.android.gms.games.event.Event
@NonNull
public String getDescription() {
return this.zzc;
}
@Override // com.google.android.gms.games.event.Event
public void getDescription(@NonNull CharArrayBuffer charArrayBuffer) {
DataUtils.copyStringToBuffer(this.zzc, charArrayBuffer);
}
@Override // com.google.android.gms.games.event.Event
@NonNull
public String getEventId() {
return this.zza;
}
@Override // com.google.android.gms.games.event.Event
@NonNull
public String getFormattedValue() {
return this.zzh;
}
@Override // com.google.android.gms.games.event.Event
public void getFormattedValue(@NonNull CharArrayBuffer charArrayBuffer) {
DataUtils.copyStringToBuffer(this.zzh, charArrayBuffer);
}
@Override // com.google.android.gms.games.event.Event
@NonNull
public Uri getIconImageUri() {
return this.zzd;
}
@Override // com.google.android.gms.games.event.Event
@NonNull
public String getIconImageUrl() {
return this.zze;
}
@Override // com.google.android.gms.games.event.Event
@NonNull
public String getName() {
return this.zzb;
}
@Override // com.google.android.gms.games.event.Event
public void getName(@NonNull CharArrayBuffer charArrayBuffer) {
DataUtils.copyStringToBuffer(this.zzb, charArrayBuffer);
}
@Override // com.google.android.gms.games.event.Event
@NonNull
public Player getPlayer() {
return this.zzf;
}
@Override // com.google.android.gms.games.event.Event
public long getValue() {
return this.zzg;
}
public int hashCode() {
return zza(this);
}
@Override // com.google.android.gms.common.data.Freezable
public boolean isDataValid() {
return true;
}
@Override // com.google.android.gms.games.event.Event
public boolean isVisible() {
return this.zzi;
}
@NonNull
public String toString() {
return zzb(this);
}
@Override // android.os.Parcelable
public void writeToParcel(@NonNull Parcel parcel, int i) {
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeString(parcel, 1, getEventId(), false);
SafeParcelWriter.writeString(parcel, 2, getName(), false);
SafeParcelWriter.writeString(parcel, 3, getDescription(), false);
SafeParcelWriter.writeParcelable(parcel, 4, getIconImageUri(), i, false);
SafeParcelWriter.writeString(parcel, 5, getIconImageUrl(), false);
SafeParcelWriter.writeParcelable(parcel, 6, getPlayer(), i, false);
SafeParcelWriter.writeLong(parcel, 7, getValue());
SafeParcelWriter.writeString(parcel, 8, getFormattedValue(), false);
SafeParcelWriter.writeBoolean(parcel, 9, isVisible());
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
}
@SafeParcelable.Constructor
public EventEntity(@SafeParcelable.Param(id = 1) String str, @SafeParcelable.Param(id = 2) String str2, @SafeParcelable.Param(id = 3) String str3, @SafeParcelable.Param(id = 4) Uri uri, @SafeParcelable.Param(id = 5) String str4, @SafeParcelable.Param(id = 6) Player player, @SafeParcelable.Param(id = 7) long j, @SafeParcelable.Param(id = 8) String str5, @SafeParcelable.Param(id = 9) boolean z) {
this.zza = str;
this.zzb = str2;
this.zzc = str3;
this.zzd = uri;
this.zze = str4;
this.zzf = new PlayerEntity(player);
this.zzg = j;
this.zzh = str5;
this.zzi = z;
}
}

View File

@@ -0,0 +1,117 @@
package com.google.android.gms.games.event;
import android.database.CharArrayBuffer;
import android.net.Uri;
import android.os.Parcel;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.facebook.appevents.internal.ViewHierarchyConstants;
import com.google.android.gms.common.data.DataBufferRef;
import com.google.android.gms.common.data.DataHolder;
import com.google.android.gms.games.Player;
import com.google.android.gms.games.PlayerRef;
/* loaded from: classes2.dex */
public final class EventRef extends DataBufferRef implements Event {
public EventRef(DataHolder dataHolder, int i) {
super(dataHolder, i);
}
@Override // android.os.Parcelable
public final int describeContents() {
return 0;
}
@Override // com.google.android.gms.common.data.DataBufferRef
public final boolean equals(@Nullable Object obj) {
return EventEntity.zzc(this, obj);
}
@Override // com.google.android.gms.common.data.Freezable
@NonNull
public final /* synthetic */ Event freeze() {
return new EventEntity(this);
}
@Override // com.google.android.gms.games.event.Event
@NonNull
public final String getDescription() {
return getString("description");
}
@Override // com.google.android.gms.games.event.Event
@NonNull
public final String getEventId() {
return getString("external_event_id");
}
@Override // com.google.android.gms.games.event.Event
@NonNull
public final String getFormattedValue() {
return getString("formatted_value");
}
@Override // com.google.android.gms.games.event.Event
@NonNull
public final Uri getIconImageUri() {
return parseUri("icon_image_uri");
}
@Override // com.google.android.gms.games.event.Event
@NonNull
public String getIconImageUrl() {
return getString("icon_image_url");
}
@Override // com.google.android.gms.games.event.Event
@NonNull
public final String getName() {
return getString("name");
}
@Override // com.google.android.gms.games.event.Event
@NonNull
public final Player getPlayer() {
return new PlayerRef(this.mDataHolder, this.mDataRow, null);
}
@Override // com.google.android.gms.games.event.Event
public final long getValue() {
return getLong("value");
}
@Override // com.google.android.gms.common.data.DataBufferRef
public final int hashCode() {
return EventEntity.zza(this);
}
@Override // com.google.android.gms.games.event.Event
public final boolean isVisible() {
return getBoolean(ViewHierarchyConstants.DIMENSION_VISIBILITY_KEY);
}
@NonNull
public final String toString() {
return EventEntity.zzb(this);
}
@Override // android.os.Parcelable
public final void writeToParcel(@NonNull Parcel parcel, int i) {
new EventEntity(this).writeToParcel(parcel, i);
}
@Override // com.google.android.gms.games.event.Event
public final void getDescription(@NonNull CharArrayBuffer charArrayBuffer) {
copyToBuffer("description", charArrayBuffer);
}
@Override // com.google.android.gms.games.event.Event
public final void getFormattedValue(@NonNull CharArrayBuffer charArrayBuffer) {
copyToBuffer("formatted_value", charArrayBuffer);
}
@Override // com.google.android.gms.games.event.Event
public final void getName(@NonNull CharArrayBuffer charArrayBuffer) {
copyToBuffer("name", charArrayBuffer);
}
}

View File

@@ -0,0 +1,66 @@
package com.google.android.gms.games.event;
import android.net.Uri;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
import com.google.android.gms.games.PlayerEntity;
/* loaded from: classes2.dex */
public final class zza implements Parcelable.Creator {
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
boolean z = false;
String str = null;
String str2 = null;
String str3 = null;
Uri uri = null;
String str4 = null;
PlayerEntity playerEntity = null;
String str5 = null;
long j = 0;
while (parcel.dataPosition() < validateObjectHeader) {
int readHeader = SafeParcelReader.readHeader(parcel);
switch (SafeParcelReader.getFieldId(readHeader)) {
case 1:
str = SafeParcelReader.createString(parcel, readHeader);
break;
case 2:
str2 = SafeParcelReader.createString(parcel, readHeader);
break;
case 3:
str3 = SafeParcelReader.createString(parcel, readHeader);
break;
case 4:
uri = (Uri) SafeParcelReader.createParcelable(parcel, readHeader, Uri.CREATOR);
break;
case 5:
str4 = SafeParcelReader.createString(parcel, readHeader);
break;
case 6:
playerEntity = (PlayerEntity) SafeParcelReader.createParcelable(parcel, readHeader, PlayerEntity.CREATOR);
break;
case 7:
j = SafeParcelReader.readLong(parcel, readHeader);
break;
case 8:
str5 = SafeParcelReader.createString(parcel, readHeader);
break;
case 9:
z = SafeParcelReader.readBoolean(parcel, readHeader);
break;
default:
SafeParcelReader.skipUnknownField(parcel, readHeader);
break;
}
}
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
return new EventEntity(str, str2, str3, uri, str4, playerEntity, j, str5, z);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Object[] newArray(int i) {
return new EventEntity[i];
}
}

View File

@@ -0,0 +1,21 @@
package com.google.android.gms.games.internal;
import androidx.annotation.Nullable;
import com.google.android.gms.common.internal.DowngradeableSafeParcel;
import com.google.android.gms.common.util.GmsVersion;
/* loaded from: classes2.dex */
public abstract class GamesDowngradeableSafeParcel extends DowngradeableSafeParcel {
public static boolean zzp(@Nullable Integer num) {
if (num == null) {
return false;
}
return GmsVersion.isAtLeastFenacho(num.intValue());
}
@Override // com.google.android.gms.common.internal.DowngradeableSafeParcel
public final boolean prepareForClientVersion(int i) {
setShouldDowngrade(!zzp(Integer.valueOf(i)));
return true;
}
}

View File

@@ -0,0 +1,43 @@
package com.google.android.gms.games.internal.experience;
import android.net.Uri;
import android.os.Parcelable;
import androidx.annotation.NonNull;
import androidx.annotation.VisibleForTesting;
import com.google.android.gms.common.annotation.KeepName;
import com.google.android.gms.common.data.Freezable;
import com.google.android.gms.games.Game;
@VisibleForTesting
/* loaded from: classes2.dex */
public interface ExperienceEvent extends Freezable<ExperienceEvent>, Parcelable {
@NonNull
@KeepName
@Deprecated
String getIconImageUrl();
int zza();
int zzb();
long zzc();
long zzd();
long zze();
@NonNull
Uri zzf();
@NonNull
Game zzg();
@NonNull
String zzh();
@NonNull
String zzi();
@NonNull
String zzj();
}

View File

@@ -0,0 +1,182 @@
package com.google.android.gms.games.internal.experience;
import android.net.Uri;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.apps.common.proguard.UsedByReflection;
import com.google.android.gms.common.internal.Objects;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
import com.google.android.gms.games.Game;
import com.google.android.gms.games.GameEntity;
import com.google.android.gms.games.internal.zzh;
@UsedByReflection("GamesGmsClientImpl.java")
@SafeParcelable.Class(creator = "ExperienceEventEntityCreator")
@SafeParcelable.Reserved({1000})
/* loaded from: classes2.dex */
public final class ExperienceEventEntity extends zzh implements ExperienceEvent {
@NonNull
public static final Parcelable.Creator<ExperienceEventEntity> CREATOR = new zza();
@SafeParcelable.Field(getter = "getExperienceId", id = 1)
private final String zza;
@SafeParcelable.Field(getter = "getGame", id = 2)
private final GameEntity zzb;
@SafeParcelable.Field(getter = "getDisplayTitle", id = 3)
private final String zzc;
@SafeParcelable.Field(getter = "getDisplayDescription", id = 4)
private final String zzd;
@SafeParcelable.Field(getter = "getIconImageUrl", id = 5)
private final String zze;
@SafeParcelable.Field(getter = "getIconImageUri", id = 6)
private final Uri zzf;
@SafeParcelable.Field(getter = "getCreatedTimestamp", id = 7)
private final long zzg;
@SafeParcelable.Field(getter = "getXpEarned", id = 8)
private final long zzh;
@SafeParcelable.Field(getter = "getCurrentXp", id = 9)
private final long zzi;
@SafeParcelable.Field(getter = "getType", id = 10)
private final int zzj;
@SafeParcelable.Field(getter = "getNewLevel", id = 11)
private final int zzk;
@SafeParcelable.Constructor
public ExperienceEventEntity(@SafeParcelable.Param(id = 1) String str, @SafeParcelable.Param(id = 2) GameEntity gameEntity, @SafeParcelable.Param(id = 3) String str2, @SafeParcelable.Param(id = 4) String str3, @SafeParcelable.Param(id = 5) String str4, @SafeParcelable.Param(id = 6) Uri uri, @SafeParcelable.Param(id = 7) long j, @SafeParcelable.Param(id = 8) long j2, @SafeParcelable.Param(id = 9) long j3, @SafeParcelable.Param(id = 10) int i, @SafeParcelable.Param(id = 11) int i2) {
this.zza = str;
this.zzb = gameEntity;
this.zzc = str2;
this.zzd = str3;
this.zze = str4;
this.zzf = uri;
this.zzg = j;
this.zzh = j2;
this.zzi = j3;
this.zzj = i;
this.zzk = i2;
}
public final boolean equals(@Nullable Object obj) {
if (!(obj instanceof ExperienceEvent)) {
return false;
}
if (this == obj) {
return true;
}
ExperienceEvent experienceEvent = (ExperienceEvent) obj;
return Objects.equal(experienceEvent.zzj(), this.zza) && Objects.equal(experienceEvent.zzg(), this.zzb) && Objects.equal(experienceEvent.zzi(), this.zzc) && Objects.equal(experienceEvent.zzh(), this.zzd) && Objects.equal(experienceEvent.getIconImageUrl(), getIconImageUrl()) && Objects.equal(experienceEvent.zzf(), this.zzf) && Objects.equal(Long.valueOf(experienceEvent.zzc()), Long.valueOf(this.zzg)) && Objects.equal(Long.valueOf(experienceEvent.zze()), Long.valueOf(this.zzh)) && Objects.equal(Long.valueOf(experienceEvent.zzd()), Long.valueOf(this.zzi)) && Objects.equal(Integer.valueOf(experienceEvent.zzb()), Integer.valueOf(this.zzj)) && Objects.equal(Integer.valueOf(experienceEvent.zza()), Integer.valueOf(this.zzk));
}
@Override // com.google.android.gms.common.data.Freezable
@NonNull
public final /* bridge */ /* synthetic */ ExperienceEvent freeze() {
return this;
}
@Override // com.google.android.gms.games.internal.experience.ExperienceEvent
@NonNull
public String getIconImageUrl() {
return this.zze;
}
public final int hashCode() {
return Objects.hashCode(this.zza, this.zzb, this.zzc, this.zzd, getIconImageUrl(), this.zzf, Long.valueOf(this.zzg), Long.valueOf(this.zzh), Long.valueOf(this.zzi), Integer.valueOf(this.zzj), Integer.valueOf(this.zzk));
}
@Override // com.google.android.gms.common.data.Freezable
public final boolean isDataValid() {
return true;
}
@NonNull
public final String toString() {
return Objects.toStringHelper(this).add("ExperienceId", this.zza).add("Game", this.zzb).add("DisplayTitle", this.zzc).add("DisplayDescription", this.zzd).add("IconImageUrl", getIconImageUrl()).add("IconImageUri", this.zzf).add("CreatedTimestamp", Long.valueOf(this.zzg)).add("XpEarned", Long.valueOf(this.zzh)).add("CurrentXp", Long.valueOf(this.zzi)).add("Type", Integer.valueOf(this.zzj)).add("NewLevel", Integer.valueOf(this.zzk)).toString();
}
@Override // android.os.Parcelable
public final void writeToParcel(@NonNull Parcel parcel, int i) {
String str = this.zza;
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeString(parcel, 1, str, false);
SafeParcelWriter.writeParcelable(parcel, 2, this.zzb, i, false);
SafeParcelWriter.writeString(parcel, 3, this.zzc, false);
SafeParcelWriter.writeString(parcel, 4, this.zzd, false);
SafeParcelWriter.writeString(parcel, 5, getIconImageUrl(), false);
SafeParcelWriter.writeParcelable(parcel, 6, this.zzf, i, false);
SafeParcelWriter.writeLong(parcel, 7, this.zzg);
SafeParcelWriter.writeLong(parcel, 8, this.zzh);
SafeParcelWriter.writeLong(parcel, 9, this.zzi);
SafeParcelWriter.writeInt(parcel, 10, this.zzj);
SafeParcelWriter.writeInt(parcel, 11, this.zzk);
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
}
@Override // com.google.android.gms.games.internal.experience.ExperienceEvent
public final int zza() {
return this.zzk;
}
@Override // com.google.android.gms.games.internal.experience.ExperienceEvent
public final int zzb() {
return this.zzj;
}
@Override // com.google.android.gms.games.internal.experience.ExperienceEvent
public final long zzc() {
return this.zzg;
}
@Override // com.google.android.gms.games.internal.experience.ExperienceEvent
public final long zzd() {
return this.zzi;
}
@Override // com.google.android.gms.games.internal.experience.ExperienceEvent
public final long zze() {
return this.zzh;
}
@Override // com.google.android.gms.games.internal.experience.ExperienceEvent
@NonNull
public final Uri zzf() {
return this.zzf;
}
@Override // com.google.android.gms.games.internal.experience.ExperienceEvent
@NonNull
public final Game zzg() {
return this.zzb;
}
@Override // com.google.android.gms.games.internal.experience.ExperienceEvent
@NonNull
public final String zzh() {
return this.zzd;
}
@Override // com.google.android.gms.games.internal.experience.ExperienceEvent
@NonNull
public final String zzi() {
return this.zzc;
}
@Override // com.google.android.gms.games.internal.experience.ExperienceEvent
@NonNull
public final String zzj() {
return this.zza;
}
}

View File

@@ -0,0 +1,103 @@
package com.google.android.gms.games.internal.experience;
import android.net.Uri;
import android.os.Parcel;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.gms.common.data.DataBufferRef;
import com.google.android.gms.games.Game;
/* loaded from: classes2.dex */
public final class ExperienceEventRef extends DataBufferRef implements ExperienceEvent {
@Override // android.os.Parcelable
public final int describeContents() {
throw null;
}
@Override // com.google.android.gms.common.data.DataBufferRef
public final boolean equals(@Nullable Object obj) {
throw null;
}
@Override // com.google.android.gms.common.data.Freezable
@NonNull
public final /* bridge */ /* synthetic */ ExperienceEvent freeze() {
throw null;
}
@Override // com.google.android.gms.games.internal.experience.ExperienceEvent
@NonNull
public String getIconImageUrl() {
throw null;
}
@Override // com.google.android.gms.common.data.DataBufferRef
public final int hashCode() {
throw null;
}
@NonNull
public final String toString() {
throw null;
}
@Override // android.os.Parcelable
public final void writeToParcel(@NonNull Parcel parcel, int i) {
throw null;
}
@Override // com.google.android.gms.games.internal.experience.ExperienceEvent
public final int zza() {
throw null;
}
@Override // com.google.android.gms.games.internal.experience.ExperienceEvent
public final int zzb() {
throw null;
}
@Override // com.google.android.gms.games.internal.experience.ExperienceEvent
public final long zzc() {
throw null;
}
@Override // com.google.android.gms.games.internal.experience.ExperienceEvent
public final long zzd() {
throw null;
}
@Override // com.google.android.gms.games.internal.experience.ExperienceEvent
public final long zze() {
throw null;
}
@Override // com.google.android.gms.games.internal.experience.ExperienceEvent
@NonNull
public final Uri zzf() {
throw null;
}
@Override // com.google.android.gms.games.internal.experience.ExperienceEvent
@NonNull
public final Game zzg() {
throw null;
}
@Override // com.google.android.gms.games.internal.experience.ExperienceEvent
@NonNull
public final String zzh() {
throw null;
}
@Override // com.google.android.gms.games.internal.experience.ExperienceEvent
@NonNull
public final String zzi() {
throw null;
}
@Override // com.google.android.gms.games.internal.experience.ExperienceEvent
@NonNull
public final String zzj() {
throw null;
}
}

View File

@@ -0,0 +1,74 @@
package com.google.android.gms.games.internal.experience;
import android.net.Uri;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
import com.google.android.gms.games.GameEntity;
/* loaded from: classes2.dex */
public final class zza implements Parcelable.Creator {
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
int i = 0;
int i2 = 0;
long j = 0;
long j2 = 0;
long j3 = 0;
String str = null;
GameEntity gameEntity = null;
String str2 = null;
String str3 = null;
String str4 = null;
Uri uri = null;
while (parcel.dataPosition() < validateObjectHeader) {
int readHeader = SafeParcelReader.readHeader(parcel);
switch (SafeParcelReader.getFieldId(readHeader)) {
case 1:
str = SafeParcelReader.createString(parcel, readHeader);
break;
case 2:
gameEntity = (GameEntity) SafeParcelReader.createParcelable(parcel, readHeader, GameEntity.CREATOR);
break;
case 3:
str2 = SafeParcelReader.createString(parcel, readHeader);
break;
case 4:
str3 = SafeParcelReader.createString(parcel, readHeader);
break;
case 5:
str4 = SafeParcelReader.createString(parcel, readHeader);
break;
case 6:
uri = (Uri) SafeParcelReader.createParcelable(parcel, readHeader, Uri.CREATOR);
break;
case 7:
j = SafeParcelReader.readLong(parcel, readHeader);
break;
case 8:
j2 = SafeParcelReader.readLong(parcel, readHeader);
break;
case 9:
j3 = SafeParcelReader.readLong(parcel, readHeader);
break;
case 10:
i = SafeParcelReader.readInt(parcel, readHeader);
break;
case 11:
i2 = SafeParcelReader.readInt(parcel, readHeader);
break;
default:
SafeParcelReader.skipUnknownField(parcel, readHeader);
break;
}
}
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
return new ExperienceEventEntity(str, gameEntity, str2, str3, str4, uri, j, j2, j3, i, i2);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Object[] newArray(int i) {
return new ExperienceEventEntity[i];
}
}

View File

@@ -0,0 +1,102 @@
package com.google.android.gms.games.internal.game;
import android.net.Uri;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.apps.common.proguard.UsedByReflection;
import com.google.android.gms.common.internal.Objects;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
import com.google.android.gms.games.internal.GamesDowngradeableSafeParcel;
@UsedByReflection("GamesGmsClientImpl.java")
@SafeParcelable.Class(creator = "GameBadgeEntityCreator", creatorIsFinal = false)
@SafeParcelable.Reserved({1000})
/* loaded from: classes2.dex */
public final class GameBadgeEntity extends GamesDowngradeableSafeParcel implements zza {
@NonNull
public static final Parcelable.Creator<GameBadgeEntity> CREATOR = new zzb();
@SafeParcelable.Field(getter = "getType", id = 1)
private final int zza;
@SafeParcelable.Field(getter = "getTitle", id = 2)
private final String zzb;
@SafeParcelable.Field(getter = "getDescription", id = 3)
private final String zzc;
@SafeParcelable.Field(getter = "getIconImageUri", id = 4)
private final Uri zzd;
@SafeParcelable.Constructor
public GameBadgeEntity(@SafeParcelable.Param(id = 1) int i, @SafeParcelable.Param(id = 2) String str, @SafeParcelable.Param(id = 3) String str2, @SafeParcelable.Param(id = 4) Uri uri) {
this.zza = i;
this.zzb = str;
this.zzc = str2;
this.zzd = uri;
}
public final boolean equals(@Nullable Object obj) {
if (!(obj instanceof zza)) {
return false;
}
if (this == obj) {
return true;
}
zza zzaVar = (zza) obj;
return Objects.equal(Integer.valueOf(zzaVar.zza()), this.zzb) && Objects.equal(zzaVar.zzb(), this.zzd);
}
@Override // com.google.android.gms.common.data.Freezable
@NonNull
public final /* bridge */ /* synthetic */ Object freeze() {
return this;
}
public final int hashCode() {
return Objects.hashCode(Integer.valueOf(this.zza), this.zzb, this.zzc, this.zzd);
}
@Override // com.google.android.gms.common.data.Freezable
public final boolean isDataValid() {
return true;
}
@NonNull
public final String toString() {
return Objects.toStringHelper(this).add("Type", Integer.valueOf(this.zza)).add("Title", this.zzb).add("Description", this.zzc).add("IconImageUri", this.zzd).toString();
}
@Override // android.os.Parcelable
public final void writeToParcel(@NonNull Parcel parcel, int i) {
if (shouldDowngrade()) {
parcel.writeInt(this.zza);
parcel.writeString(this.zzb);
parcel.writeString(this.zzc);
Uri uri = this.zzd;
parcel.writeString(uri == null ? null : uri.toString());
return;
}
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeInt(parcel, 1, this.zza);
SafeParcelWriter.writeString(parcel, 2, this.zzb, false);
SafeParcelWriter.writeString(parcel, 3, this.zzc, false);
SafeParcelWriter.writeParcelable(parcel, 4, this.zzd, i, false);
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
}
@Override // com.google.android.gms.games.internal.game.zza
public final int zza() {
return this.zza;
}
@Override // com.google.android.gms.games.internal.game.zza
@NonNull
public final String zzb() {
return this.zzc;
}
}

View File

@@ -0,0 +1,80 @@
package com.google.android.gms.games.internal.game;
import android.net.Uri;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.apps.common.proguard.UsedByReflection;
import com.google.android.gms.common.data.Freezable;
import com.google.android.gms.common.internal.Objects;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
import com.google.android.gms.games.internal.zzh;
@UsedByReflection("GamesGmsClientImpl.java")
@SafeParcelable.Class(creator = "ScreenshotEntityCreator")
@SafeParcelable.Reserved({1000})
/* loaded from: classes2.dex */
public final class ScreenshotEntity extends zzh implements Freezable, Parcelable {
@NonNull
public static final Parcelable.Creator<ScreenshotEntity> CREATOR = new zzd();
@SafeParcelable.Field(getter = "getUri", id = 1)
private final Uri zza;
@SafeParcelable.Field(getter = "getWidth", id = 2)
private final int zzb;
@SafeParcelable.Field(getter = "getHeight", id = 3)
private final int zzc;
@SafeParcelable.Constructor
public ScreenshotEntity(@NonNull @SafeParcelable.Param(id = 1) Uri uri, @SafeParcelable.Param(id = 2) int i, @SafeParcelable.Param(id = 3) int i2) {
this.zza = uri;
this.zzb = i;
this.zzc = i2;
}
public final boolean equals(@Nullable Object obj) {
if (!(obj instanceof ScreenshotEntity)) {
return false;
}
if (this == obj) {
return true;
}
ScreenshotEntity screenshotEntity = (ScreenshotEntity) obj;
return Objects.equal(screenshotEntity.zza, this.zza) && Objects.equal(Integer.valueOf(screenshotEntity.zzb), Integer.valueOf(this.zzb)) && Objects.equal(Integer.valueOf(screenshotEntity.zzc), Integer.valueOf(this.zzc));
}
@Override // com.google.android.gms.common.data.Freezable
@NonNull
public final /* bridge */ /* synthetic */ Object freeze() {
return this;
}
public final int hashCode() {
return Objects.hashCode(this.zza, Integer.valueOf(this.zzb), Integer.valueOf(this.zzc));
}
@Override // com.google.android.gms.common.data.Freezable
public final boolean isDataValid() {
return true;
}
@NonNull
public final String toString() {
return Objects.toStringHelper(this).add("Uri", this.zza).add("Width", Integer.valueOf(this.zzb)).add("Height", Integer.valueOf(this.zzc)).toString();
}
@Override // android.os.Parcelable
public final void writeToParcel(@NonNull Parcel parcel, int i) {
Uri uri = this.zza;
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeParcelable(parcel, 1, uri, i, false);
SafeParcelWriter.writeInt(parcel, 2, this.zzb);
SafeParcelWriter.writeInt(parcel, 3, this.zzc);
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
}
}

View File

@@ -0,0 +1,11 @@
package com.google.android.gms.games.internal.game;
import android.os.Parcelable;
import com.google.android.gms.common.data.Freezable;
/* loaded from: classes2.dex */
public interface zza extends Freezable, Parcelable {
int zza();
String zzb();
}

View File

@@ -0,0 +1,35 @@
package com.google.android.gms.games.internal.game;
import android.net.Uri;
import android.os.Parcel;
import com.google.android.gms.common.internal.DowngradeableSafeParcel;
import com.google.android.gms.games.internal.GamesDowngradeableSafeParcel;
/* loaded from: classes2.dex */
final class zzb extends zzc {
@Override // com.google.android.gms.games.internal.game.zzc, android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
return createFromParcel(parcel);
}
@Override // com.google.android.gms.games.internal.game.zzc
/* renamed from: zza */
public final GameBadgeEntity createFromParcel(Parcel parcel) {
Integer unparcelClientVersion;
boolean zzp;
boolean canUnparcelSafely;
unparcelClientVersion = DowngradeableSafeParcel.getUnparcelClientVersion();
zzp = GamesDowngradeableSafeParcel.zzp(unparcelClientVersion);
if (!zzp) {
canUnparcelSafely = DowngradeableSafeParcel.canUnparcelSafely(GameBadgeEntity.class.getCanonicalName());
if (!canUnparcelSafely) {
int readInt = parcel.readInt();
String readString = parcel.readString();
String readString2 = parcel.readString();
String readString3 = parcel.readString();
return new GameBadgeEntity(readInt, readString, readString2, readString3 == null ? null : Uri.parse(readString3));
}
}
return super.createFromParcel(parcel);
}
}

View File

@@ -0,0 +1,41 @@
package com.google.android.gms.games.internal.game;
import android.net.Uri;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
/* loaded from: classes2.dex */
public class zzc implements Parcelable.Creator {
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Object[] newArray(int i) {
return new GameBadgeEntity[i];
}
@Override // android.os.Parcelable.Creator
/* renamed from: zza, reason: merged with bridge method [inline-methods] */
public GameBadgeEntity createFromParcel(Parcel parcel) {
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
String str = null;
Uri uri = null;
int i = 0;
String str2 = null;
while (parcel.dataPosition() < validateObjectHeader) {
int readHeader = SafeParcelReader.readHeader(parcel);
int fieldId = SafeParcelReader.getFieldId(readHeader);
if (fieldId == 1) {
i = SafeParcelReader.readInt(parcel, readHeader);
} else if (fieldId == 2) {
str = SafeParcelReader.createString(parcel, readHeader);
} else if (fieldId == 3) {
str2 = SafeParcelReader.createString(parcel, readHeader);
} else if (fieldId != 4) {
SafeParcelReader.skipUnknownField(parcel, readHeader);
} else {
uri = (Uri) SafeParcelReader.createParcelable(parcel, readHeader, Uri.CREATOR);
}
}
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
return new GameBadgeEntity(i, str, str2, uri);
}
}

View File

@@ -0,0 +1,37 @@
package com.google.android.gms.games.internal.game;
import android.net.Uri;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
/* loaded from: classes2.dex */
public final class zzd implements Parcelable.Creator {
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
int i = 0;
Uri uri = null;
int i2 = 0;
while (parcel.dataPosition() < validateObjectHeader) {
int readHeader = SafeParcelReader.readHeader(parcel);
int fieldId = SafeParcelReader.getFieldId(readHeader);
if (fieldId == 1) {
uri = (Uri) SafeParcelReader.createParcelable(parcel, readHeader, Uri.CREATOR);
} else if (fieldId == 2) {
i = SafeParcelReader.readInt(parcel, readHeader);
} else if (fieldId != 3) {
SafeParcelReader.skipUnknownField(parcel, readHeader);
} else {
i2 = SafeParcelReader.readInt(parcel, readHeader);
}
}
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
return new ScreenshotEntity(uri, i, i2);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Object[] newArray(int i) {
return new ScreenshotEntity[i];
}
}

View File

@@ -0,0 +1,140 @@
package com.google.android.gms.games.internal.player;
import android.net.Uri;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.apps.common.proguard.UsedByReflection;
import com.google.android.gms.common.internal.Objects;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
@UsedByReflection("GamesGmsClientImpl.java")
@SafeParcelable.Class(creator = "MostRecentGameInfoEntityCreator")
@SafeParcelable.Reserved({1000})
/* loaded from: classes2.dex */
public final class MostRecentGameInfoEntity extends com.google.android.gms.games.internal.zzh implements zza {
@NonNull
public static final Parcelable.Creator<MostRecentGameInfoEntity> CREATOR = new zzb();
@SafeParcelable.Field(getter = "getGameId", id = 1)
private final String zza;
@SafeParcelable.Field(getter = "getGameName", id = 2)
private final String zzb;
@SafeParcelable.Field(getter = "getActivityTimestampMillis", id = 3)
private final long zzc;
@SafeParcelable.Field(getter = "getGameIconImageUri", id = 4)
private final Uri zzd;
@SafeParcelable.Field(getter = "getGameHiResImageUri", id = 5)
private final Uri zze;
@SafeParcelable.Field(getter = "getGameFeaturedImageUri", id = 6)
private final Uri zzf;
public MostRecentGameInfoEntity(zza zzaVar) {
this.zza = zzaVar.zze();
this.zzb = zzaVar.zzf();
this.zzc = zzaVar.zza();
this.zzd = zzaVar.zzd();
this.zze = zzaVar.zzc();
this.zzf = zzaVar.zzb();
}
public static int zzg(zza zzaVar) {
return Objects.hashCode(zzaVar.zze(), zzaVar.zzf(), Long.valueOf(zzaVar.zza()), zzaVar.zzd(), zzaVar.zzc(), zzaVar.zzb());
}
public static String zzh(zza zzaVar) {
return Objects.toStringHelper(zzaVar).add("GameId", zzaVar.zze()).add("GameName", zzaVar.zzf()).add("ActivityTimestampMillis", Long.valueOf(zzaVar.zza())).add("GameIconUri", zzaVar.zzd()).add("GameHiResUri", zzaVar.zzc()).add("GameFeaturedUri", zzaVar.zzb()).toString();
}
public static boolean zzi(zza zzaVar, Object obj) {
if (!(obj instanceof zza)) {
return false;
}
if (zzaVar == obj) {
return true;
}
zza zzaVar2 = (zza) obj;
return Objects.equal(zzaVar2.zze(), zzaVar.zze()) && Objects.equal(zzaVar2.zzf(), zzaVar.zzf()) && Objects.equal(Long.valueOf(zzaVar2.zza()), Long.valueOf(zzaVar.zza())) && Objects.equal(zzaVar2.zzd(), zzaVar.zzd()) && Objects.equal(zzaVar2.zzc(), zzaVar.zzc()) && Objects.equal(zzaVar2.zzb(), zzaVar.zzb());
}
public final boolean equals(@Nullable Object obj) {
return zzi(this, obj);
}
@Override // com.google.android.gms.common.data.Freezable
@NonNull
public final /* bridge */ /* synthetic */ Object freeze() {
return this;
}
public final int hashCode() {
return zzg(this);
}
@Override // com.google.android.gms.common.data.Freezable
public final boolean isDataValid() {
return true;
}
@NonNull
public final String toString() {
return zzh(this);
}
@Override // android.os.Parcelable
public final void writeToParcel(@NonNull Parcel parcel, int i) {
zzb.zza(this, parcel, i);
}
@Override // com.google.android.gms.games.internal.player.zza
public final long zza() {
return this.zzc;
}
@Override // com.google.android.gms.games.internal.player.zza
@NonNull
public final Uri zzb() {
return this.zzf;
}
@Override // com.google.android.gms.games.internal.player.zza
@NonNull
public final Uri zzc() {
return this.zze;
}
@Override // com.google.android.gms.games.internal.player.zza
@NonNull
public final Uri zzd() {
return this.zzd;
}
@Override // com.google.android.gms.games.internal.player.zza
@NonNull
public final String zze() {
return this.zza;
}
@Override // com.google.android.gms.games.internal.player.zza
@NonNull
public final String zzf() {
return this.zzb;
}
@SafeParcelable.Constructor
public MostRecentGameInfoEntity(@SafeParcelable.Param(id = 1) String str, @SafeParcelable.Param(id = 2) String str2, @SafeParcelable.Param(id = 3) long j, @SafeParcelable.Param(id = 4) Uri uri, @SafeParcelable.Param(id = 5) Uri uri2, @SafeParcelable.Param(id = 6) Uri uri3) {
this.zza = str;
this.zzb = str2;
this.zzc = j;
this.zzd = uri;
this.zze = uri2;
this.zzf = uri3;
}
}

View File

@@ -0,0 +1,206 @@
package com.google.android.gms.games.internal.player;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.apps.common.proguard.UsedByReflection;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.common.internal.Objects;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
import com.google.android.gms.games.zzx;
@UsedByReflection("GamesGmsClientImpl.java")
@SafeParcelable.Class(creator = "ProfileSettingsEntityCreator")
@SafeParcelable.Reserved({1000})
/* loaded from: classes2.dex */
public class ProfileSettingsEntity extends com.google.android.gms.games.internal.zzh implements zzx {
@NonNull
public static final Parcelable.Creator<ProfileSettingsEntity> CREATOR = new zzg();
@SafeParcelable.Field(getter = "getStatus", id = 1)
private final Status zza;
@SafeParcelable.Field(getter = "getGamerTag", id = 2)
private final String zzb;
@SafeParcelable.Field(getter = "isGamerTagExplicitlySet", id = 3)
private final boolean zzc;
@SafeParcelable.Field(getter = "isProfileVisible", id = 4)
private final boolean zzd;
@SafeParcelable.Field(getter = "isVisibilityExplicitlySet", id = 5)
private final boolean zze;
@SafeParcelable.Field(getter = "getStockProfileImage", id = 6)
private final StockProfileImageEntity zzf;
@SafeParcelable.Field(getter = "isProfileDiscoverable", id = 7)
private final boolean zzg;
@SafeParcelable.Field(getter = "isAutoSignInEnabled", id = 8)
private final boolean zzh;
@SafeParcelable.Field(getter = "getHttpErrorCode", id = 9)
private final int zzi;
@SafeParcelable.Field(getter = "isSettingsChangesProhibited", id = 10)
private final boolean zzj;
@SafeParcelable.Field(getter = "allowFriendInvites", id = 11)
private final boolean zzk;
@SafeParcelable.Field(getter = "getProfileVisibility", id = 12)
private final int zzl;
@SafeParcelable.Field(getter = "getGlobalFriendsListVisibility", id = 13)
private final int zzm;
@SafeParcelable.Field(getter = "isAlwaysAutoSignIn", id = 14)
private final boolean zzn;
@SafeParcelable.Field(getter = "getProfilelessRecallSummary", id = 15)
private final zzh zzo;
@SafeParcelable.Constructor
public ProfileSettingsEntity(@SafeParcelable.Param(id = 1) Status status, @SafeParcelable.Param(id = 2) String str, @SafeParcelable.Param(id = 3) boolean z, @SafeParcelable.Param(id = 4) boolean z2, @SafeParcelable.Param(id = 5) boolean z3, @SafeParcelable.Param(id = 6) StockProfileImageEntity stockProfileImageEntity, @SafeParcelable.Param(id = 7) boolean z4, @SafeParcelable.Param(id = 8) boolean z5, @SafeParcelable.Param(id = 9) int i, @SafeParcelable.Param(id = 10) boolean z6, @SafeParcelable.Param(id = 11) boolean z7, @SafeParcelable.Param(id = 12) int i2, @SafeParcelable.Param(id = 13) int i3, @SafeParcelable.Param(id = 14) boolean z8, @SafeParcelable.Param(id = 15) zzh zzhVar) {
this.zza = status;
this.zzb = str;
this.zzc = z;
this.zzd = z2;
this.zze = z3;
this.zzf = stockProfileImageEntity;
this.zzg = z4;
this.zzh = z5;
this.zzi = i;
this.zzj = z6;
this.zzk = z7;
this.zzl = i2;
this.zzm = i3;
this.zzn = z8;
this.zzo = zzhVar;
}
public final boolean equals(@Nullable Object obj) {
if (!(obj instanceof zzx)) {
return false;
}
if (this == obj) {
return true;
}
zzx zzxVar = (zzx) obj;
return Objects.equal(this.zzb, zzxVar.zzf()) && Objects.equal(Boolean.valueOf(this.zzc), Boolean.valueOf(zzxVar.zzj())) && Objects.equal(Boolean.valueOf(this.zzd), Boolean.valueOf(zzxVar.zzl())) && Objects.equal(Boolean.valueOf(this.zze), Boolean.valueOf(zzxVar.zzn())) && Objects.equal(this.zza, zzxVar.getStatus()) && Objects.equal(this.zzf, zzxVar.zze()) && Objects.equal(Boolean.valueOf(this.zzg), Boolean.valueOf(zzxVar.zzk())) && Objects.equal(Boolean.valueOf(this.zzh), Boolean.valueOf(zzxVar.zzi())) && this.zzi == zzxVar.zzb() && this.zzj == zzxVar.zzm() && this.zzk == zzxVar.zzg() && this.zzl == zzxVar.zzc() && this.zzm == zzxVar.zza() && this.zzn == zzxVar.zzh() && Objects.equal(this.zzo, zzxVar.zzd());
}
@Override // com.google.android.gms.common.api.Result
@NonNull
public final Status getStatus() {
return this.zza;
}
public final int hashCode() {
return Objects.hashCode(this.zzb, Boolean.valueOf(this.zzc), Boolean.valueOf(this.zzd), Boolean.valueOf(this.zze), this.zza, this.zzf, Boolean.valueOf(this.zzg), Boolean.valueOf(this.zzh), Integer.valueOf(this.zzi), Boolean.valueOf(this.zzj), Boolean.valueOf(this.zzk), Integer.valueOf(this.zzl), Integer.valueOf(this.zzm), Boolean.valueOf(this.zzn), this.zzo);
}
@NonNull
public final String toString() {
return Objects.toStringHelper(this).add("GamerTag", this.zzb).add("IsGamerTagExplicitlySet", Boolean.valueOf(this.zzc)).add("IsProfileVisible", Boolean.valueOf(this.zzd)).add("IsVisibilityExplicitlySet", Boolean.valueOf(this.zze)).add("Status", this.zza).add("StockProfileImage", this.zzf).add("IsProfileDiscoverable", Boolean.valueOf(this.zzg)).add("AutoSignIn", Boolean.valueOf(this.zzh)).add("httpErrorCode", Integer.valueOf(this.zzi)).add("IsSettingsChangesProhibited", Boolean.valueOf(this.zzj)).add("AllowFriendInvites", Boolean.valueOf(this.zzk)).add("ProfileVisibility", Integer.valueOf(this.zzl)).add("global_friends_list_visibility", Integer.valueOf(this.zzm)).add("always_auto_sign_in", Boolean.valueOf(this.zzn)).add("profileless_recall_summary", this.zzo).toString();
}
@Override // android.os.Parcelable
public final void writeToParcel(@NonNull Parcel parcel, int i) {
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeParcelable(parcel, 1, this.zza, i, false);
SafeParcelWriter.writeString(parcel, 2, this.zzb, false);
SafeParcelWriter.writeBoolean(parcel, 3, this.zzc);
SafeParcelWriter.writeBoolean(parcel, 4, this.zzd);
SafeParcelWriter.writeBoolean(parcel, 5, this.zze);
SafeParcelWriter.writeParcelable(parcel, 6, this.zzf, i, false);
SafeParcelWriter.writeBoolean(parcel, 7, this.zzg);
SafeParcelWriter.writeBoolean(parcel, 8, this.zzh);
SafeParcelWriter.writeInt(parcel, 9, this.zzi);
SafeParcelWriter.writeBoolean(parcel, 10, this.zzj);
SafeParcelWriter.writeBoolean(parcel, 11, this.zzk);
SafeParcelWriter.writeInt(parcel, 12, this.zzl);
SafeParcelWriter.writeInt(parcel, 13, this.zzm);
SafeParcelWriter.writeBoolean(parcel, 14, this.zzn);
SafeParcelWriter.writeParcelable(parcel, 15, this.zzo, i, false);
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
}
@Override // com.google.android.gms.games.zzx
public final int zza() {
return this.zzm;
}
@Override // com.google.android.gms.games.zzx
public final int zzb() {
return this.zzi;
}
@Override // com.google.android.gms.games.zzx
public final int zzc() {
return this.zzl;
}
@Override // com.google.android.gms.games.zzx
@Nullable
public final zzh zzd() {
return this.zzo;
}
@Override // com.google.android.gms.games.zzx
@NonNull
public final StockProfileImage zze() {
return this.zzf;
}
@Override // com.google.android.gms.games.zzx
@NonNull
public final String zzf() {
return this.zzb;
}
@Override // com.google.android.gms.games.zzx
public final boolean zzg() {
return this.zzk;
}
@Override // com.google.android.gms.games.zzx
public final boolean zzh() {
return this.zzn;
}
@Override // com.google.android.gms.games.zzx
public final boolean zzi() {
return this.zzh;
}
@Override // com.google.android.gms.games.zzx
public final boolean zzj() {
return this.zzc;
}
@Override // com.google.android.gms.games.zzx
public final boolean zzk() {
return this.zzg;
}
@Override // com.google.android.gms.games.zzx
public final boolean zzl() {
return this.zzd;
}
@Override // com.google.android.gms.games.zzx
public final boolean zzm() {
return this.zzj;
}
@Override // com.google.android.gms.games.zzx
public final boolean zzn() {
return this.zze;
}
}

View File

@@ -0,0 +1,17 @@
package com.google.android.gms.games.internal.player;
import android.net.Uri;
import android.os.Parcelable;
import androidx.annotation.NonNull;
import com.google.android.gms.common.data.Freezable;
import com.google.android.gms.common.internal.ShowFirstParty;
@ShowFirstParty
/* loaded from: classes2.dex */
public interface StockProfileImage extends Freezable<StockProfileImage>, Parcelable {
@NonNull
String getImageUrl();
@NonNull
Uri zza();
}

View File

@@ -0,0 +1,84 @@
package com.google.android.gms.games.internal.player;
import android.net.Uri;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.apps.common.proguard.UsedByReflection;
import com.google.android.gms.common.internal.Objects;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
@UsedByReflection("GamesGmsClientImpl.java")
@SafeParcelable.Class(creator = "StockProfileImageEntityCreator")
@SafeParcelable.Reserved({1000})
/* loaded from: classes2.dex */
public final class StockProfileImageEntity extends com.google.android.gms.games.internal.zzh implements StockProfileImage {
@NonNull
public static final Parcelable.Creator<StockProfileImageEntity> CREATOR = new zzj();
@SafeParcelable.Field(getter = "getImageUrl", id = 1)
private final String zza;
@SafeParcelable.Field(getter = "getImageUri", id = 2)
private final Uri zzb;
@SafeParcelable.Constructor
public StockProfileImageEntity(@NonNull @SafeParcelable.Param(id = 1) String str, @NonNull @SafeParcelable.Param(id = 2) Uri uri) {
this.zza = str;
this.zzb = uri;
}
public final boolean equals(@Nullable Object obj) {
if (!(obj instanceof StockProfileImage)) {
return false;
}
if (obj == this) {
return true;
}
StockProfileImage stockProfileImage = (StockProfileImage) obj;
return Objects.equal(this.zza, stockProfileImage.getImageUrl()) && Objects.equal(this.zzb, stockProfileImage.zza());
}
@Override // com.google.android.gms.common.data.Freezable
@NonNull
public final /* bridge */ /* synthetic */ StockProfileImage freeze() {
return this;
}
@Override // com.google.android.gms.games.internal.player.StockProfileImage
@NonNull
public String getImageUrl() {
return this.zza;
}
public final int hashCode() {
return Objects.hashCode(this.zza, this.zzb);
}
@Override // com.google.android.gms.common.data.Freezable
public final boolean isDataValid() {
return true;
}
@NonNull
public final String toString() {
return Objects.toStringHelper(this).add("ImageId", this.zza).add("ImageUri", this.zzb).toString();
}
@Override // android.os.Parcelable
public final void writeToParcel(@NonNull Parcel parcel, int i) {
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeString(parcel, 1, getImageUrl(), false);
SafeParcelWriter.writeParcelable(parcel, 2, this.zzb, i, false);
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
}
@Override // com.google.android.gms.games.internal.player.StockProfileImage
@NonNull
public final Uri zza() {
return this.zzb;
}
}

View File

@@ -0,0 +1,37 @@
package com.google.android.gms.games.internal.player;
import android.net.Uri;
import android.os.Parcel;
import androidx.annotation.NonNull;
import com.google.android.gms.common.data.DataBufferRef;
/* loaded from: classes2.dex */
public class StockProfileImageRef extends DataBufferRef implements StockProfileImage {
@Override // android.os.Parcelable
public final int describeContents() {
throw null;
}
@Override // com.google.android.gms.common.data.Freezable
@NonNull
public final /* bridge */ /* synthetic */ StockProfileImage freeze() {
throw null;
}
@Override // com.google.android.gms.games.internal.player.StockProfileImage
@NonNull
public String getImageUrl() {
throw null;
}
@Override // android.os.Parcelable
public final void writeToParcel(@NonNull Parcel parcel, int i) {
throw null;
}
@Override // com.google.android.gms.games.internal.player.StockProfileImage
@NonNull
public final Uri zza() {
throw null;
}
}

View File

@@ -0,0 +1,20 @@
package com.google.android.gms.games.internal.player;
import android.net.Uri;
import android.os.Parcelable;
import com.google.android.gms.common.data.Freezable;
/* loaded from: classes2.dex */
public interface zza extends Freezable, Parcelable {
long zza();
Uri zzb();
Uri zzc();
Uri zzd();
String zze();
String zzf();
}

View File

@@ -0,0 +1,65 @@
package com.google.android.gms.games.internal.player;
import android.net.Uri;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
/* loaded from: classes2.dex */
public final class zzb implements Parcelable.Creator {
public static void zza(MostRecentGameInfoEntity mostRecentGameInfoEntity, Parcel parcel, int i) {
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeString(parcel, 1, mostRecentGameInfoEntity.zze(), false);
SafeParcelWriter.writeString(parcel, 2, mostRecentGameInfoEntity.zzf(), false);
SafeParcelWriter.writeLong(parcel, 3, mostRecentGameInfoEntity.zza());
SafeParcelWriter.writeParcelable(parcel, 4, mostRecentGameInfoEntity.zzd(), i, false);
SafeParcelWriter.writeParcelable(parcel, 5, mostRecentGameInfoEntity.zzc(), i, false);
SafeParcelWriter.writeParcelable(parcel, 6, mostRecentGameInfoEntity.zzb(), i, false);
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
}
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
String str = null;
String str2 = null;
Uri uri = null;
Uri uri2 = null;
Uri uri3 = null;
long j = 0;
while (parcel.dataPosition() < validateObjectHeader) {
int readHeader = SafeParcelReader.readHeader(parcel);
switch (SafeParcelReader.getFieldId(readHeader)) {
case 1:
str = SafeParcelReader.createString(parcel, readHeader);
break;
case 2:
str2 = SafeParcelReader.createString(parcel, readHeader);
break;
case 3:
j = SafeParcelReader.readLong(parcel, readHeader);
break;
case 4:
uri = (Uri) SafeParcelReader.createParcelable(parcel, readHeader, Uri.CREATOR);
break;
case 5:
uri2 = (Uri) SafeParcelReader.createParcelable(parcel, readHeader, Uri.CREATOR);
break;
case 6:
uri3 = (Uri) SafeParcelReader.createParcelable(parcel, readHeader, Uri.CREATOR);
break;
default:
SafeParcelReader.skipUnknownField(parcel, readHeader);
break;
}
}
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
return new MostRecentGameInfoEntity(str, str2, j, uri, uri2, uri3);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Object[] newArray(int i) {
return new MostRecentGameInfoEntity[i];
}
}

View File

@@ -0,0 +1,76 @@
package com.google.android.gms.games.internal.player;
import android.net.Uri;
import android.os.Parcel;
import androidx.annotation.Nullable;
import com.google.android.gms.common.data.DataBufferRef;
import com.google.android.gms.common.data.DataHolder;
/* loaded from: classes2.dex */
public final class zzc extends DataBufferRef implements zza {
private final zzd zza;
public zzc(DataHolder dataHolder, int i, zzd zzdVar) {
super(dataHolder, i);
this.zza = zzdVar;
}
@Override // android.os.Parcelable
public final int describeContents() {
return 0;
}
@Override // com.google.android.gms.common.data.DataBufferRef
public final boolean equals(@Nullable Object obj) {
return MostRecentGameInfoEntity.zzi(this, obj);
}
@Override // com.google.android.gms.common.data.Freezable
public final /* synthetic */ Object freeze() {
return new MostRecentGameInfoEntity(this);
}
@Override // com.google.android.gms.common.data.DataBufferRef
public final int hashCode() {
return MostRecentGameInfoEntity.zzg(this);
}
public final String toString() {
return MostRecentGameInfoEntity.zzh(this);
}
@Override // android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
zzb.zza(new MostRecentGameInfoEntity(this), parcel, i);
}
@Override // com.google.android.gms.games.internal.player.zza
public final long zza() {
return getLong(this.zza.zzv);
}
@Override // com.google.android.gms.games.internal.player.zza
public final Uri zzb() {
return parseUri(this.zza.zzy);
}
@Override // com.google.android.gms.games.internal.player.zza
public final Uri zzc() {
return parseUri(this.zza.zzx);
}
@Override // com.google.android.gms.games.internal.player.zza
public final Uri zzd() {
return parseUri(this.zza.zzw);
}
@Override // com.google.android.gms.games.internal.player.zza
public final String zze() {
return getString(this.zza.zzt);
}
@Override // com.google.android.gms.games.internal.player.zza
public final String zzf() {
return getString(this.zza.zzu);
}
}

View File

@@ -0,0 +1,132 @@
package com.google.android.gms.games.internal.player;
import android.text.TextUtils;
/* loaded from: classes2.dex */
public final class zzd {
public final String zzA;
public final String zzB;
public final String zzC;
public final String zzD;
public final String zzE;
public final String zzF;
public final String zzG;
public final String zzH;
public final String zzI;
public final String zzJ;
public final String zzK;
public final String zzL;
public final String zzM;
public final String zza;
public final String zzb;
public final String zzc;
public final String zzd;
public final String zze;
public final String zzf;
public final String zzg;
public final String zzh;
public final String zzi;
public final String zzj;
public final String zzk;
public final String zzl;
public final String zzm;
public final String zzn;
public final String zzo;
public final String zzp;
public final String zzq;
public final String zzr;
public final String zzs;
public final String zzt;
public final String zzu;
public final String zzv;
public final String zzw;
public final String zzx;
public final String zzy;
public final String zzz;
public zzd(String str) {
String str2;
if (TextUtils.isEmpty(null)) {
this.zza = "external_player_id";
this.zzb = "game_player_id";
this.zzc = "profile_name";
this.zzd = "profile_icon_image_uri";
this.zze = "profile_icon_image_url";
this.zzf = "profile_hi_res_image_uri";
this.zzg = "profile_hi_res_image_url";
this.zzh = "last_updated";
this.zzi = "is_in_circles";
this.zzj = "played_with_timestamp";
this.zzk = "current_xp_total";
this.zzl = "current_level";
this.zzm = "current_level_min_xp";
this.zzn = "current_level_max_xp";
this.zzo = "next_level";
this.zzp = "next_level_max_xp";
this.zzq = "last_level_up_timestamp";
this.zzr = "player_title";
this.zzs = "is_profile_visible";
this.zzt = "most_recent_external_game_id";
this.zzu = "most_recent_game_name";
this.zzv = "most_recent_activity_timestamp";
this.zzw = "most_recent_game_icon_uri";
this.zzx = "most_recent_game_hi_res_uri";
this.zzy = "most_recent_game_featured_uri";
this.zzz = "has_debug_access";
this.zzA = "gamer_tag";
this.zzB = "real_name";
this.zzC = "banner_image_landscape_uri";
this.zzD = "banner_image_landscape_url";
this.zzE = "banner_image_portrait_uri";
this.zzF = "banner_image_portrait_url";
this.zzG = "total_unlocked_achievements";
this.zzH = "play_together_friend_status";
this.zzI = "play_together_nickname";
this.zzJ = "play_together_invitation_nickname";
this.zzK = "nickname_abuse_report_token";
this.zzL = "friends_list_visibility";
str2 = "always_auto_sign_in";
} else {
this.zza = "nullexternal_player_id";
this.zzb = "nullgame_player_id";
this.zzc = "nullprofile_name";
this.zzd = "nullprofile_icon_image_uri";
this.zze = "nullprofile_icon_image_url";
this.zzf = "nullprofile_hi_res_image_uri";
this.zzg = "nullprofile_hi_res_image_url";
this.zzh = "nulllast_updated";
this.zzi = "nullis_in_circles";
this.zzj = "nullplayed_with_timestamp";
this.zzk = "nullcurrent_xp_total";
this.zzl = "nullcurrent_level";
this.zzm = "nullcurrent_level_min_xp";
this.zzn = "nullcurrent_level_max_xp";
this.zzo = "nullnext_level";
this.zzp = "nullnext_level_max_xp";
this.zzq = "nulllast_level_up_timestamp";
this.zzr = "nullplayer_title";
this.zzs = "nullis_profile_visible";
this.zzt = "nullmost_recent_external_game_id";
this.zzu = "nullmost_recent_game_name";
this.zzv = "nullmost_recent_activity_timestamp";
this.zzw = "nullmost_recent_game_icon_uri";
this.zzx = "nullmost_recent_game_hi_res_uri";
this.zzy = "nullmost_recent_game_featured_uri";
this.zzz = "nullhas_debug_access";
this.zzA = "nullgamer_tag";
this.zzB = "nullreal_name";
this.zzC = "nullbanner_image_landscape_uri";
this.zzD = "nullbanner_image_landscape_url";
this.zzE = "nullbanner_image_portrait_uri";
this.zzF = "nullbanner_image_portrait_url";
this.zzG = "nulltotal_unlocked_achievements";
this.zzH = "nullplay_together_friend_status";
this.zzI = "nullplay_together_nickname";
this.zzJ = "nullplay_together_invitation_nickname";
this.zzK = "nullnickname_abuse_report_token";
this.zzL = "nullfriends_list_visibility";
str2 = "nullalways_auto_sign_in";
}
this.zzM = str2;
}
}

View File

@@ -0,0 +1,94 @@
package com.google.android.gms.games.internal.player;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.Nullable;
import com.google.android.gms.common.internal.Objects;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
@SafeParcelable.Class(creator = "ProfileCapabilitiesCreator")
/* loaded from: classes2.dex */
public final class zze extends com.google.android.gms.games.internal.zzh {
public static final Parcelable.Creator<zze> CREATOR = new zzf();
@SafeParcelable.Field(getter = "forbiddenToHavePlayerProfile", id = 1)
private final boolean zza;
@SafeParcelable.Field(getter = "requiresParentPermissionToShareData", id = 2)
private final boolean zzb;
@SafeParcelable.Field(getter = "hasSettingsControlledByParent", id = 3)
private final boolean zzc;
@SafeParcelable.Field(getter = "requiresParentPermissionToUsePlayTogether", id = 4)
private final boolean zzd;
@SafeParcelable.Field(getter = "canUseOnlyAutoGeneratedGamerTag", id = 5)
private final boolean zze;
@SafeParcelable.Field(getter = "forbiddenToRecordVideo", id = 6)
private final boolean zzf;
@SafeParcelable.Field(getter = "shouldSeeEquallyWeightedButtonsInConsents", id = 7)
private final boolean zzg;
@SafeParcelable.Field(getter = "requiresParentConsentToUseAutoSignIn", id = 8)
private final boolean zzh;
@SafeParcelable.Field(getter = "shouldSeeSimplifiedConsentMessages", id = 9)
private final boolean zzi;
@SafeParcelable.Field(defaultValue = "false", getter = "forbiddenToUseProfilelessRecall", id = 10)
private final boolean zzj;
@SafeParcelable.Constructor
public zze(@SafeParcelable.Param(id = 1) boolean z, @SafeParcelable.Param(id = 2) boolean z2, @SafeParcelable.Param(id = 3) boolean z3, @SafeParcelable.Param(id = 4) boolean z4, @SafeParcelable.Param(id = 5) boolean z5, @SafeParcelable.Param(id = 6) boolean z6, @SafeParcelable.Param(id = 7) boolean z7, @SafeParcelable.Param(id = 8) boolean z8, @SafeParcelable.Param(id = 9) boolean z9, @SafeParcelable.Param(id = 10) boolean z10) {
this.zza = z;
this.zzb = z2;
this.zzc = z3;
this.zzd = z4;
this.zze = z5;
this.zzf = z6;
this.zzg = z7;
this.zzh = z8;
this.zzi = z9;
this.zzj = z10;
}
public final boolean equals(@Nullable Object obj) {
if (!(obj instanceof zze)) {
return false;
}
if (this == obj) {
return true;
}
zze zzeVar = (zze) obj;
return this.zza == zzeVar.zza && this.zzb == zzeVar.zzb && this.zzc == zzeVar.zzc && this.zzd == zzeVar.zzd && this.zze == zzeVar.zze && this.zzf == zzeVar.zzf && this.zzg == zzeVar.zzg && this.zzh == zzeVar.zzh && this.zzi == zzeVar.zzi && this.zzj == zzeVar.zzj;
}
public final int hashCode() {
return Objects.hashCode(Boolean.valueOf(this.zza), Boolean.valueOf(this.zzb), Boolean.valueOf(this.zzc), Boolean.valueOf(this.zzd), Boolean.valueOf(this.zze), Boolean.valueOf(this.zzf), Boolean.valueOf(this.zzg), Boolean.valueOf(this.zzh), Boolean.valueOf(this.zzi), Boolean.valueOf(this.zzj));
}
public final String toString() {
return Objects.toStringHelper(this).add("forbiddenToHavePlayerProfile", Boolean.valueOf(this.zza)).add("requiresParentPermissionToShareData", Boolean.valueOf(this.zzb)).add("hasSettingsControlledByParent", Boolean.valueOf(this.zzc)).add("requiresParentPermissionToUsePlayTogether", Boolean.valueOf(this.zzd)).add("canUseOnlyAutoGeneratedGamerTag", Boolean.valueOf(this.zze)).add("forbiddenToRecordVideo", Boolean.valueOf(this.zzf)).add("shouldSeeEquallyWeightedButtonsInConsents", Boolean.valueOf(this.zzg)).add("requiresParentConsentToUseAutoSignIn", Boolean.valueOf(this.zzh)).add("shouldSeeSimplifiedConsentMessages", Boolean.valueOf(this.zzi)).add("forbiddenToUseProfilelessRecall", Boolean.valueOf(this.zzj)).toString();
}
@Override // android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
boolean z = this.zza;
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeBoolean(parcel, 1, z);
SafeParcelWriter.writeBoolean(parcel, 2, this.zzb);
SafeParcelWriter.writeBoolean(parcel, 3, this.zzc);
SafeParcelWriter.writeBoolean(parcel, 4, this.zzd);
SafeParcelWriter.writeBoolean(parcel, 5, this.zze);
SafeParcelWriter.writeBoolean(parcel, 6, this.zzf);
SafeParcelWriter.writeBoolean(parcel, 7, this.zzg);
SafeParcelWriter.writeBoolean(parcel, 8, this.zzh);
SafeParcelWriter.writeBoolean(parcel, 9, this.zzi);
SafeParcelWriter.writeBoolean(parcel, 10, this.zzj);
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
}
}

View File

@@ -0,0 +1,68 @@
package com.google.android.gms.games.internal.player;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
/* loaded from: classes2.dex */
public final class zzf implements Parcelable.Creator {
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
boolean z = false;
boolean z2 = false;
boolean z3 = false;
boolean z4 = false;
boolean z5 = false;
boolean z6 = false;
boolean z7 = false;
boolean z8 = false;
boolean z9 = false;
boolean z10 = false;
while (parcel.dataPosition() < validateObjectHeader) {
int readHeader = SafeParcelReader.readHeader(parcel);
switch (SafeParcelReader.getFieldId(readHeader)) {
case 1:
z = SafeParcelReader.readBoolean(parcel, readHeader);
break;
case 2:
z2 = SafeParcelReader.readBoolean(parcel, readHeader);
break;
case 3:
z3 = SafeParcelReader.readBoolean(parcel, readHeader);
break;
case 4:
z4 = SafeParcelReader.readBoolean(parcel, readHeader);
break;
case 5:
z5 = SafeParcelReader.readBoolean(parcel, readHeader);
break;
case 6:
z6 = SafeParcelReader.readBoolean(parcel, readHeader);
break;
case 7:
z7 = SafeParcelReader.readBoolean(parcel, readHeader);
break;
case 8:
z8 = SafeParcelReader.readBoolean(parcel, readHeader);
break;
case 9:
z9 = SafeParcelReader.readBoolean(parcel, readHeader);
break;
case 10:
z10 = SafeParcelReader.readBoolean(parcel, readHeader);
break;
default:
SafeParcelReader.skipUnknownField(parcel, readHeader);
break;
}
}
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
return new zze(z, z2, z3, z4, z5, z6, z7, z8, z9, z10);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Object[] newArray(int i) {
return new zze[i];
}
}

View File

@@ -0,0 +1,89 @@
package com.google.android.gms.games.internal.player;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
/* loaded from: classes2.dex */
public final class zzg implements Parcelable.Creator {
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
Status status = null;
String str = null;
StockProfileImageEntity stockProfileImageEntity = null;
zzh zzhVar = null;
boolean z = false;
boolean z2 = false;
boolean z3 = false;
boolean z4 = false;
boolean z5 = false;
int i = 0;
boolean z6 = false;
boolean z7 = false;
int i2 = 0;
int i3 = 0;
boolean z8 = false;
while (parcel.dataPosition() < validateObjectHeader) {
int readHeader = SafeParcelReader.readHeader(parcel);
switch (SafeParcelReader.getFieldId(readHeader)) {
case 1:
status = (Status) SafeParcelReader.createParcelable(parcel, readHeader, Status.CREATOR);
break;
case 2:
str = SafeParcelReader.createString(parcel, readHeader);
break;
case 3:
z = SafeParcelReader.readBoolean(parcel, readHeader);
break;
case 4:
z2 = SafeParcelReader.readBoolean(parcel, readHeader);
break;
case 5:
z3 = SafeParcelReader.readBoolean(parcel, readHeader);
break;
case 6:
stockProfileImageEntity = (StockProfileImageEntity) SafeParcelReader.createParcelable(parcel, readHeader, StockProfileImageEntity.CREATOR);
break;
case 7:
z4 = SafeParcelReader.readBoolean(parcel, readHeader);
break;
case 8:
z5 = SafeParcelReader.readBoolean(parcel, readHeader);
break;
case 9:
i = SafeParcelReader.readInt(parcel, readHeader);
break;
case 10:
z6 = SafeParcelReader.readBoolean(parcel, readHeader);
break;
case 11:
z7 = SafeParcelReader.readBoolean(parcel, readHeader);
break;
case 12:
i2 = SafeParcelReader.readInt(parcel, readHeader);
break;
case 13:
i3 = SafeParcelReader.readInt(parcel, readHeader);
break;
case 14:
z8 = SafeParcelReader.readBoolean(parcel, readHeader);
break;
case 15:
zzhVar = (zzh) SafeParcelReader.createParcelable(parcel, readHeader, zzh.CREATOR);
break;
default:
SafeParcelReader.skipUnknownField(parcel, readHeader);
break;
}
}
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
return new ProfileSettingsEntity(status, str, z, z2, z3, stockProfileImageEntity, z4, z5, i, z6, z7, i2, i3, z8, zzhVar);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Object[] newArray(int i) {
return new ProfileSettingsEntity[i];
}
}

View File

@@ -0,0 +1,46 @@
package com.google.android.gms.games.internal.player;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.Nullable;
import com.google.android.gms.common.internal.Objects;
import com.google.android.gms.common.internal.ShowFirstParty;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
@ShowFirstParty
@SafeParcelable.Class(creator = "ProfilelessRecallSummaryCreator")
/* loaded from: classes2.dex */
public final class zzh extends com.google.android.gms.games.internal.zzh {
public static final Parcelable.Creator<zzh> CREATOR = new zzi();
@SafeParcelable.Field(getter = "getRecallTokenSnapshotId", id = 1)
private final String zza;
@SafeParcelable.Constructor
public zzh(@SafeParcelable.Param(id = 1) String str) {
this.zza = str;
}
public final boolean equals(@Nullable Object obj) {
if (!(obj instanceof zzh)) {
return false;
}
if (obj == this) {
return true;
}
return Objects.equal(this.zza, ((zzh) obj).zza);
}
public final int hashCode() {
return Objects.hashCode(this.zza);
}
@Override // android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
String str = this.zza;
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeString(parcel, 1, str, false);
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
}
}

View File

@@ -0,0 +1,29 @@
package com.google.android.gms.games.internal.player;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
/* loaded from: classes2.dex */
public final class zzi implements Parcelable.Creator {
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
String str = null;
while (parcel.dataPosition() < validateObjectHeader) {
int readHeader = SafeParcelReader.readHeader(parcel);
if (SafeParcelReader.getFieldId(readHeader) != 1) {
SafeParcelReader.skipUnknownField(parcel, readHeader);
} else {
str = SafeParcelReader.createString(parcel, readHeader);
}
}
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
return new zzh(str);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Object[] newArray(int i) {
return new zzh[i];
}
}

View File

@@ -0,0 +1,34 @@
package com.google.android.gms.games.internal.player;
import android.net.Uri;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
/* loaded from: classes2.dex */
public final class zzj implements Parcelable.Creator {
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
String str = null;
Uri uri = null;
while (parcel.dataPosition() < validateObjectHeader) {
int readHeader = SafeParcelReader.readHeader(parcel);
int fieldId = SafeParcelReader.getFieldId(readHeader);
if (fieldId == 1) {
str = SafeParcelReader.createString(parcel, readHeader);
} else if (fieldId != 2) {
SafeParcelReader.skipUnknownField(parcel, readHeader);
} else {
uri = (Uri) SafeParcelReader.createParcelable(parcel, readHeader, Uri.CREATOR);
}
}
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
return new StockProfileImageEntity(str, uri);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Object[] newArray(int i) {
return new StockProfileImageEntity[i];
}
}

View File

@@ -0,0 +1,53 @@
package com.google.android.gms.games.internal.v2.appshortcuts;
import android.app.Activity;
import android.content.Intent;
import android.os.Looper;
import androidx.annotation.NonNull;
import com.google.android.gms.internal.games_v2.zzad;
import com.google.android.gms.internal.games_v2.zzfl;
@zzad
/* loaded from: classes2.dex */
public final class PlayGamesAppShortcutsActivity extends Activity {
private Intent zza;
public static /* synthetic */ void zza(@NonNull PlayGamesAppShortcutsActivity playGamesAppShortcutsActivity) {
playGamesAppShortcutsActivity.startActivityForResult(playGamesAppShortcutsActivity.zza, 1005000001);
playGamesAppShortcutsActivity.finish();
System.exit(0);
}
@Override // android.app.Activity
public final void onActivityResult(int i, int i2, @NonNull Intent intent) {
super.onActivityResult(i, i2, intent);
if (i != 1005000000) {
return;
}
if (i2 != -1) {
finish();
} else {
new zzfl(Looper.getMainLooper()).postDelayed(new Runnable() { // from class: com.google.android.gms.games.internal.v2.appshortcuts.zzaa
@Override // java.lang.Runnable
public final void run() {
PlayGamesAppShortcutsActivity.zza(PlayGamesAppShortcutsActivity.this);
}
}, 50L);
}
}
/* JADX WARN: Removed duplicated region for block: B:33:0x0077 A[SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:37:0x0047 A[SYNTHETIC] */
@Override // android.app.Activity
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void onCreate(@androidx.annotation.Nullable android.os.Bundle r12) {
/*
Method dump skipped, instructions count: 277
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.games.internal.v2.appshortcuts.PlayGamesAppShortcutsActivity.onCreate(android.os.Bundle):void");
}
}

View File

@@ -0,0 +1,8 @@
package com.google.android.gms.games.internal.v2.appshortcuts;
/* loaded from: classes2.dex */
final class zza extends zzg {
public zza() {
super(null);
}
}

View File

@@ -0,0 +1,125 @@
package com.google.android.gms.games.internal.v2.appshortcuts;
import android.content.Context;
import android.content.pm.ShortcutInfo;
import android.content.pm.ShortcutManager;
import androidx.annotation.RequiresApi;
import com.google.android.gms.common.api.internal.RemoteCall;
import com.google.android.gms.common.api.internal.TaskApiCall;
import com.google.android.gms.internal.games_v2.zzfk;
import com.google.android.gms.internal.games_v2.zzfw;
import com.google.android.gms.internal.games_v2.zzfz;
import com.google.android.gms.internal.games_v2.zzge;
import com.google.android.gms.tasks.Continuation;
import com.google.android.gms.tasks.OnSuccessListener;
import com.google.android.gms.tasks.Task;
import com.google.android.gms.tasks.TaskCompletionSource;
import com.google.android.gms.tasks.Tasks;
import java.util.Iterator;
import java.util.List;
@RequiresApi(25)
/* loaded from: classes2.dex */
final class zze extends zzg {
private final Context zza;
public zze(Context context) {
super(null);
this.zza = context.getApplicationContext();
}
public static /* synthetic */ zzh zza(zzfz zzfzVar, zzfz zzfzVar2, Task task) throws Exception {
return task.isSuccessful() ? (zzh) task.getResult() : zze(zzfzVar, zzfzVar2);
}
public static /* synthetic */ void zzb(zze zzeVar) {
Task forResult;
final ShortcutManager shortcutManager = (ShortcutManager) zzeVar.zza.getSystemService(ShortcutManager.class);
if (shortcutManager == null) {
return;
}
final zzs zza = zzu.zza(zzeVar.zza, PlayGamesAppShortcutsActivity.class);
final zzfz zzg = zzg(shortcutManager.getDynamicShortcuts());
final zzfz zzg2 = zzg(shortcutManager.getPinnedShortcuts());
if (zza == null || zza.zza() <= 0) {
forResult = Tasks.forResult(zze(zzg, zzg2));
} else {
final zzr zzrVar = new zzr(zzeVar.zza);
forResult = zzrVar.doRead(TaskApiCall.builder().setMethodKey(6744).setFeatures(com.google.android.gms.games.zzd.zzg).setAutoResolveMissingFeatures(false).run(new RemoteCall() { // from class: com.google.android.gms.games.internal.v2.appshortcuts.zzl
/* JADX WARN: Multi-variable type inference failed */
@Override // com.google.android.gms.common.api.internal.RemoteCall
public final void accept(Object obj, Object obj2) {
((zzw) ((zzv) obj).getService()).zzd(new zzo(zzr.this, (TaskCompletionSource) obj2), zza, zzg, zzg2);
}
}).build()).continueWith(zzge.zza(), new Continuation() { // from class: com.google.android.gms.games.internal.v2.appshortcuts.zzb
@Override // com.google.android.gms.tasks.Continuation
public final Object then(Task task) {
return zze.zza(zzfz.this, zzg2, task);
}
});
}
forResult.addOnSuccessListener(zzge.zza(), new OnSuccessListener() { // from class: com.google.android.gms.games.internal.v2.appshortcuts.zzc
@Override // com.google.android.gms.tasks.OnSuccessListener
public final void onSuccess(Object obj) {
zzh zzhVar = (zzh) obj;
List<String> zzd = zzhVar.zzd();
ShortcutManager shortcutManager2 = shortcutManager;
if (zzd != null && !zzd.isEmpty()) {
shortcutManager2.removeDynamicShortcuts(zzd);
}
List<ShortcutInfo> zza2 = zzhVar.zza();
if (zza2 != null && !zza2.isEmpty()) {
shortcutManager2.addDynamicShortcuts(zza2);
}
List<String> zzb = zzhVar.zzb();
if (zzb != null && !zzb.isEmpty()) {
shortcutManager2.disableShortcuts(zzb);
}
List<String> zzc = zzhVar.zzc();
if (zzc == null || zzc.isEmpty()) {
return;
}
shortcutManager2.enableShortcuts(zzc);
}
});
}
private static zzh zze(zzfz zzfzVar, zzfz zzfzVar2) {
return new zzh(zzf(zzfzVar), zzfz.zzg(), zzf(zzfzVar2), zzfz.zzg());
}
private static zzfz zzf(zzfz zzfzVar) {
zzfw zzfwVar = new zzfw();
int size = zzfzVar.size();
for (int i = 0; i < size; i++) {
String zza = ((zzj) zzfzVar.get(i)).zza();
if (zza != null) {
zzfwVar.zza(zza);
}
}
return zzfwVar.zzb();
}
private static zzfz zzg(List list) {
zzfw zzfwVar = new zzfw();
Iterator it = list.iterator();
while (it.hasNext()) {
ShortcutInfo shortcutInfo = (ShortcutInfo) it.next();
if (!shortcutInfo.isImmutable() && shortcutInfo.getId().startsWith("PLAY_GAMES_SERVICES_")) {
zzfwVar.zza(new zzj(shortcutInfo.getId(), shortcutInfo.getExtras(), Boolean.valueOf(shortcutInfo.isPinned()), Boolean.valueOf(shortcutInfo.isEnabled())));
}
}
return zzfwVar.zzb();
}
@Override // com.google.android.gms.games.internal.v2.appshortcuts.zzg
public final void zzc() {
zzfk.zza();
new Thread(new Runnable() { // from class: com.google.android.gms.games.internal.v2.appshortcuts.zzd
@Override // java.lang.Runnable
public final void run() {
zze.zzb(zze.this);
}
}, "initialize-shortcuts").start();
}
}

View File

@@ -0,0 +1,16 @@
package com.google.android.gms.games.internal.v2.appshortcuts;
import android.content.Context;
/* loaded from: classes2.dex */
public class zzg {
public /* synthetic */ zzg(zzf zzfVar) {
}
public static zzg zzd(Context context) {
return new zze(context);
}
public void zzc() {
}
}

View File

@@ -0,0 +1,72 @@
package com.google.android.gms.games.internal.v2.appshortcuts;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.Nullable;
import androidx.annotation.RequiresApi;
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
import java.util.List;
@RequiresApi(25)
@SafeParcelable.Class(creator = "ExpectedShortcutsStateCreator")
/* loaded from: classes2.dex */
public final class zzh extends AbstractSafeParcelable {
public static final Parcelable.Creator<zzh> CREATOR = new zzi();
@Nullable
@SafeParcelable.Field(getter = "getRemovedShortcutIds", id = 1)
private final List zza;
@Nullable
@SafeParcelable.Field(getter = "getAddedShortcuts", id = 2)
private final List zzb;
@Nullable
@SafeParcelable.Field(getter = "getDisabledShortcutIds", id = 3)
private final List zzc;
@Nullable
@SafeParcelable.Field(getter = "getEnabledShortcutIds", id = 4)
private final List zzd;
@SafeParcelable.Constructor
public zzh(@Nullable @SafeParcelable.Param(id = 1) List list, @Nullable @SafeParcelable.Param(id = 2) List list2, @Nullable @SafeParcelable.Param(id = 3) List list3, @Nullable @SafeParcelable.Param(id = 4) List list4) {
this.zza = list;
this.zzb = list2;
this.zzc = list3;
this.zzd = list4;
}
@Override // android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
List list = this.zza;
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeStringList(parcel, 1, list, false);
SafeParcelWriter.writeTypedList(parcel, 2, this.zzb, false);
SafeParcelWriter.writeStringList(parcel, 3, this.zzc, false);
SafeParcelWriter.writeStringList(parcel, 4, this.zzd, false);
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
}
@Nullable
public final List zza() {
return this.zzb;
}
@Nullable
public final List zzb() {
return this.zzc;
}
@Nullable
public final List zzc() {
return this.zzd;
}
@Nullable
public final List zzd() {
return this.zza;
}
}

View File

@@ -0,0 +1,43 @@
package com.google.android.gms.games.internal.v2.appshortcuts;
import android.content.pm.ShortcutInfo;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.RequiresApi;
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
import java.util.ArrayList;
@RequiresApi(25)
/* loaded from: classes2.dex */
public final class zzi implements Parcelable.Creator {
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
ArrayList<String> arrayList = null;
ArrayList arrayList2 = null;
ArrayList<String> arrayList3 = null;
ArrayList<String> arrayList4 = null;
while (parcel.dataPosition() < validateObjectHeader) {
int readHeader = SafeParcelReader.readHeader(parcel);
int fieldId = SafeParcelReader.getFieldId(readHeader);
if (fieldId == 1) {
arrayList = SafeParcelReader.createStringList(parcel, readHeader);
} else if (fieldId == 2) {
arrayList2 = SafeParcelReader.createTypedList(parcel, readHeader, ShortcutInfo.CREATOR);
} else if (fieldId == 3) {
arrayList3 = SafeParcelReader.createStringList(parcel, readHeader);
} else if (fieldId != 4) {
SafeParcelReader.skipUnknownField(parcel, readHeader);
} else {
arrayList4 = SafeParcelReader.createStringList(parcel, readHeader);
}
}
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
return new zzh(arrayList, arrayList2, arrayList3, arrayList4);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Object[] newArray(int i) {
return new zzh[i];
}
}

View File

@@ -0,0 +1,55 @@
package com.google.android.gms.games.internal.v2.appshortcuts;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.PersistableBundle;
import androidx.annotation.Nullable;
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
@SafeParcelable.Class(creator = "GamesAppShortcutCreator")
/* loaded from: classes2.dex */
public final class zzj extends AbstractSafeParcelable {
public static final Parcelable.Creator<zzj> CREATOR = new zzk();
@Nullable
@SafeParcelable.Field(getter = "getId", id = 1)
private final String zza;
@Nullable
@SafeParcelable.Field(getter = "getExtras", id = 2)
private final PersistableBundle zzb;
@Nullable
@SafeParcelable.Field(getter = "isPinned", id = 3)
private final Boolean zzc;
@Nullable
@SafeParcelable.Field(getter = "isEnabled", id = 4)
private final Boolean zzd;
@SafeParcelable.Constructor
public zzj(@Nullable @SafeParcelable.Param(id = 1) String str, @Nullable @SafeParcelable.Param(id = 2) PersistableBundle persistableBundle, @Nullable @SafeParcelable.Param(id = 3) Boolean bool, @Nullable @SafeParcelable.Param(id = 4) Boolean bool2) {
this.zza = str;
this.zzb = persistableBundle;
this.zzc = bool;
this.zzd = bool2;
}
@Override // android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
String str = this.zza;
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeString(parcel, 1, str, false);
SafeParcelWriter.writeParcelable(parcel, 2, this.zzb, i, false);
SafeParcelWriter.writeBooleanObject(parcel, 3, this.zzc, false);
SafeParcelWriter.writeBooleanObject(parcel, 4, this.zzd, false);
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
}
@Nullable
public final String zza() {
return this.zza;
}
}

View File

@@ -0,0 +1,40 @@
package com.google.android.gms.games.internal.v2.appshortcuts;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.PersistableBundle;
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
/* loaded from: classes2.dex */
public final class zzk implements Parcelable.Creator {
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
String str = null;
PersistableBundle persistableBundle = null;
Boolean bool = null;
Boolean bool2 = null;
while (parcel.dataPosition() < validateObjectHeader) {
int readHeader = SafeParcelReader.readHeader(parcel);
int fieldId = SafeParcelReader.getFieldId(readHeader);
if (fieldId == 1) {
str = SafeParcelReader.createString(parcel, readHeader);
} else if (fieldId == 2) {
persistableBundle = (PersistableBundle) SafeParcelReader.createParcelable(parcel, readHeader, PersistableBundle.CREATOR);
} else if (fieldId == 3) {
bool = SafeParcelReader.readBooleanObject(parcel, readHeader);
} else if (fieldId != 4) {
SafeParcelReader.skipUnknownField(parcel, readHeader);
} else {
bool2 = SafeParcelReader.readBooleanObject(parcel, readHeader);
}
}
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
return new zzj(str, persistableBundle, bool, bool2);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Object[] newArray(int i) {
return new zzj[i];
}
}

View File

@@ -0,0 +1,16 @@
package com.google.android.gms.games.internal.v2.appshortcuts;
import android.content.Context;
import android.os.Looper;
import com.google.android.gms.common.api.Api;
import com.google.android.gms.common.api.internal.ConnectionCallbacks;
import com.google.android.gms.common.api.internal.OnConnectionFailedListener;
import com.google.android.gms.common.internal.ClientSettings;
/* loaded from: classes2.dex */
final class zzn extends Api.AbstractClientBuilder {
@Override // com.google.android.gms.common.api.Api.AbstractClientBuilder
public final /* synthetic */ Api.Client buildClient(Context context, Looper looper, ClientSettings clientSettings, Object obj, ConnectionCallbacks connectionCallbacks, OnConnectionFailedListener onConnectionFailedListener) {
return new zzv(context, looper, clientSettings, connectionCallbacks, onConnectionFailedListener);
}
}

View File

@@ -0,0 +1,21 @@
package com.google.android.gms.games.internal.v2.appshortcuts;
import androidx.annotation.Nullable;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.tasks.TaskCompletionSource;
/* loaded from: classes2.dex */
final class zzo extends zzq {
public zzo(zzr zzrVar, TaskCompletionSource taskCompletionSource) {
super(taskCompletionSource);
}
@Override // com.google.android.gms.games.internal.v2.appshortcuts.zzq, com.google.android.gms.games.internal.v2.appshortcuts.zzy
public final void zzb(@Nullable zzh zzhVar) {
if (zzhVar == null) {
zzd(new Status(17));
} else {
this.zza.trySetResult(zzhVar);
}
}
}

View File

@@ -0,0 +1,22 @@
package com.google.android.gms.games.internal.v2.appshortcuts;
import android.content.Intent;
import androidx.annotation.Nullable;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.tasks.TaskCompletionSource;
/* loaded from: classes2.dex */
final class zzp extends zzq {
public zzp(zzr zzrVar, TaskCompletionSource taskCompletionSource) {
super(taskCompletionSource);
}
@Override // com.google.android.gms.games.internal.v2.appshortcuts.zzq, com.google.android.gms.games.internal.v2.appshortcuts.zzy
public final void zzc(@Nullable Intent intent) {
if (intent == null) {
zzd(new Status(17));
} else {
this.zza.trySetResult(intent);
}
}
}

View File

@@ -0,0 +1,29 @@
package com.google.android.gms.games.internal.v2.appshortcuts;
import android.content.Intent;
import androidx.annotation.Nullable;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.common.internal.ApiExceptionUtil;
import com.google.android.gms.tasks.TaskCompletionSource;
/* loaded from: classes2.dex */
class zzq extends zzx {
protected final TaskCompletionSource zza;
public zzq(TaskCompletionSource taskCompletionSource) {
this.zza = taskCompletionSource;
}
public void zzb(@Nullable zzh zzhVar) {
zzd(new Status(10));
}
public void zzc(@Nullable Intent intent) {
zzd(new Status(10));
}
@Override // com.google.android.gms.games.internal.v2.appshortcuts.zzy
public final void zzd(Status status) {
this.zza.trySetException(ApiExceptionUtil.fromStatus(status));
}
}

View File

@@ -0,0 +1,29 @@
package com.google.android.gms.games.internal.v2.appshortcuts;
import android.app.Activity;
import android.content.Context;
import com.google.android.gms.common.api.Api;
import com.google.android.gms.common.api.GoogleApi;
/* loaded from: classes2.dex */
final class zzr extends GoogleApi {
private static final Api.ClientKey zza;
private static final Api.AbstractClientBuilder zzb;
private static final Api zzc;
static {
Api.ClientKey clientKey = new Api.ClientKey();
zza = clientKey;
zzn zznVar = new zzn();
zzb = zznVar;
zzc = new Api("GamesAppShortcuts.API", zznVar, clientKey);
}
public zzr(Activity activity) {
super(activity, (Api<Api.ApiOptions.NoOptions>) zzc, Api.ApiOptions.NO_OPTIONS, GoogleApi.Settings.DEFAULT_SETTINGS);
}
public zzr(Context context) {
super(context, (Api<Api.ApiOptions.NoOptions>) zzc, Api.ApiOptions.NO_OPTIONS, GoogleApi.Settings.DEFAULT_SETTINGS);
}
}

View File

@@ -0,0 +1,62 @@
package com.google.android.gms.games.internal.v2.appshortcuts;
import android.content.ComponentName;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.Nullable;
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
@SafeParcelable.Class(creator = "GamesAppShortcutsConfigCreator")
/* loaded from: classes2.dex */
public final class zzs extends AbstractSafeParcelable {
public static final Parcelable.Creator<zzs> CREATOR = new zzt();
@SafeParcelable.Field(getter = "getAppId", id = 1)
private final long zza;
@Nullable
@SafeParcelable.Field(getter = "getAppPackage", id = 2)
private final String zzb;
@SafeParcelable.Field(getter = "getAppShortcutsMaxNumber", id = 3)
private final int zzc;
@Nullable
@SafeParcelable.Field(getter = "getAppShortcutsTrampolineActivity", id = 4)
private final ComponentName zzd;
@Nullable
@SafeParcelable.Field(getter = "getAppShortcutsTargetActivity", id = 5)
private final String zze;
@SafeParcelable.Constructor
public zzs(@SafeParcelable.Param(id = 1) long j, @Nullable @SafeParcelable.Param(id = 2) String str, @SafeParcelable.Param(id = 3) int i, @Nullable @SafeParcelable.Param(id = 4) ComponentName componentName, @Nullable @SafeParcelable.Param(id = 5) String str2) {
this.zza = j;
this.zzb = str;
this.zzc = i;
this.zzd = componentName;
this.zze = str2;
}
@Override // android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeLong(parcel, 1, this.zza);
SafeParcelWriter.writeString(parcel, 2, this.zzb, false);
SafeParcelWriter.writeInt(parcel, 3, this.zzc);
SafeParcelWriter.writeParcelable(parcel, 4, this.zzd, i, false);
SafeParcelWriter.writeString(parcel, 5, this.zze, false);
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
}
public final int zza() {
return this.zzc;
}
@Nullable
public final String zzb() {
return this.zze;
}
}

View File

@@ -0,0 +1,43 @@
package com.google.android.gms.games.internal.v2.appshortcuts;
import android.content.ComponentName;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
/* loaded from: classes2.dex */
public final class zzt implements Parcelable.Creator {
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ Object createFromParcel(Parcel parcel) {
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
String str = null;
ComponentName componentName = null;
String str2 = null;
int i = 0;
long j = 0;
while (parcel.dataPosition() < validateObjectHeader) {
int readHeader = SafeParcelReader.readHeader(parcel);
int fieldId = SafeParcelReader.getFieldId(readHeader);
if (fieldId == 1) {
j = SafeParcelReader.readLong(parcel, readHeader);
} else if (fieldId == 2) {
str = SafeParcelReader.createString(parcel, readHeader);
} else if (fieldId == 3) {
i = SafeParcelReader.readInt(parcel, readHeader);
} else if (fieldId == 4) {
componentName = (ComponentName) SafeParcelReader.createParcelable(parcel, readHeader, ComponentName.CREATOR);
} else if (fieldId != 5) {
SafeParcelReader.skipUnknownField(parcel, readHeader);
} else {
str2 = SafeParcelReader.createString(parcel, readHeader);
}
}
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
return new zzs(j, str, i, componentName, str2);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Object[] newArray(int i) {
return new zzs[i];
}
}

View File

@@ -0,0 +1,25 @@
package com.google.android.gms.games.internal.v2.appshortcuts;
import androidx.annotation.RequiresApi;
@RequiresApi(25)
/* loaded from: classes2.dex */
public final class zzu {
/* JADX WARN: Removed duplicated region for block: B:10:0x002b A[RETURN] */
/* JADX WARN: Removed duplicated region for block: B:12:0x002c */
/* JADX WARN: Removed duplicated region for block: B:26:0x0086 A[SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:30:0x0055 A[SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:60:0x001b A[EXC_TOP_SPLITTER, SYNTHETIC] */
@androidx.annotation.Nullable
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static com.google.android.gms.games.internal.v2.appshortcuts.zzs zza(android.content.Context r11, java.lang.Class r12) {
/*
Method dump skipped, instructions count: 255
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.games.internal.v2.appshortcuts.zzu.zza(android.content.Context, java.lang.Class):com.google.android.gms.games.internal.v2.appshortcuts.zzs");
}
}

View File

@@ -0,0 +1,54 @@
package com.google.android.gms.games.internal.v2.appshortcuts;
import android.content.Context;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Looper;
import androidx.annotation.Nullable;
import com.google.android.gms.common.Feature;
import com.google.android.gms.common.api.internal.ConnectionCallbacks;
import com.google.android.gms.common.api.internal.OnConnectionFailedListener;
import com.google.android.gms.common.internal.ClientSettings;
import com.google.android.gms.common.internal.GmsClient;
/* loaded from: classes2.dex */
final class zzv extends GmsClient {
public zzv(Context context, Looper looper, ClientSettings clientSettings, ConnectionCallbacks connectionCallbacks, OnConnectionFailedListener onConnectionFailedListener) {
super(context, looper, 1, clientSettings, connectionCallbacks, onConnectionFailedListener);
}
@Override // com.google.android.gms.common.internal.BaseGmsClient
@Nullable
public final /* synthetic */ IInterface createServiceInterface(IBinder iBinder) {
if (iBinder == null) {
return null;
}
IInterface queryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.games.internal.v2.appshortcuts.IAppShortcutsService");
return queryLocalInterface instanceof zzw ? (zzw) queryLocalInterface : new zzw(iBinder);
}
@Override // com.google.android.gms.common.internal.BaseGmsClient
public final Feature[] getApiFeatures() {
return new Feature[]{com.google.android.gms.games.zzd.zzg};
}
@Override // com.google.android.gms.common.internal.BaseGmsClient
public final String getServiceDescriptor() {
return "com.google.android.gms.games.internal.v2.appshortcuts.IAppShortcutsService";
}
@Override // com.google.android.gms.common.internal.BaseGmsClient
public final String getStartServiceAction() {
return "com.google.android.gms.games.internal.appshortcuts.service.START";
}
@Override // com.google.android.gms.common.internal.BaseGmsClient, com.google.android.gms.common.api.Api.Client
public final boolean requiresGooglePlayServices() {
return false;
}
@Override // com.google.android.gms.common.internal.BaseGmsClient
public final boolean usesClientTelemetry() {
return true;
}
}

View File

@@ -0,0 +1,31 @@
package com.google.android.gms.games.internal.v2.appshortcuts;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
import java.util.List;
/* loaded from: classes2.dex */
public final class zzw extends com.google.android.gms.internal.games_v2.zza implements IInterface {
public zzw(IBinder iBinder) {
super(iBinder, "com.google.android.gms.games.internal.v2.appshortcuts.IAppShortcutsService");
}
public final void zzd(zzy zzyVar, zzs zzsVar, List list, List list2) throws RemoteException {
Parcel zza = zza();
com.google.android.gms.internal.games_v2.zzc.zzd(zza, zzyVar);
com.google.android.gms.internal.games_v2.zzc.zzc(zza, zzsVar);
zza.writeTypedList(list);
zza.writeTypedList(list2);
zzc(3, zza);
}
public final void zze(zzy zzyVar, zzs zzsVar, zzj zzjVar) throws RemoteException {
Parcel zza = zza();
com.google.android.gms.internal.games_v2.zzc.zzd(zza, zzyVar);
com.google.android.gms.internal.games_v2.zzc.zzc(zza, zzsVar);
com.google.android.gms.internal.games_v2.zzc.zzc(zza, zzjVar);
zzc(4, zza);
}
}

View File

@@ -0,0 +1,34 @@
package com.google.android.gms.games.internal.v2.appshortcuts;
import android.content.Intent;
import android.os.Parcel;
import android.os.RemoteException;
import com.google.android.gms.common.api.Status;
/* loaded from: classes2.dex */
public abstract class zzx extends com.google.android.gms.internal.games_v2.zzb implements zzy {
public zzx() {
super("com.google.android.gms.games.internal.v2.appshortcuts.IAppShortcutsServiceCallback");
}
@Override // com.google.android.gms.internal.games_v2.zzb
public final boolean zza(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
if (i == 1) {
Status status = (Status) com.google.android.gms.internal.games_v2.zzc.zza(parcel, Status.CREATOR);
com.google.android.gms.internal.games_v2.zzc.zzb(parcel);
zzd(status);
} else if (i == 2) {
zzh zzhVar = (zzh) com.google.android.gms.internal.games_v2.zzc.zza(parcel, zzh.CREATOR);
com.google.android.gms.internal.games_v2.zzc.zzb(parcel);
zzb(zzhVar);
} else {
if (i != 3) {
return false;
}
Intent intent = (Intent) com.google.android.gms.internal.games_v2.zzc.zza(parcel, Intent.CREATOR);
com.google.android.gms.internal.games_v2.zzc.zzb(parcel);
zzc(intent);
}
return true;
}
}

View File

@@ -0,0 +1,16 @@
package com.google.android.gms.games.internal.v2.appshortcuts;
import android.content.Intent;
import android.os.IInterface;
import android.os.RemoteException;
import androidx.annotation.Nullable;
import com.google.android.gms.common.api.Status;
/* loaded from: classes2.dex */
public interface zzy extends IInterface {
void zzb(@Nullable zzh zzhVar) throws RemoteException;
void zzc(@Nullable Intent intent) throws RemoteException;
void zzd(Status status) throws RemoteException;
}

View File

@@ -0,0 +1,84 @@
package com.google.android.gms.games.internal.v2.resolution;
import android.app.Activity;
import android.app.PendingIntent;
import android.content.Intent;
import android.content.IntentSender;
import android.os.Bundle;
import android.os.ResultReceiver;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.gms.common.internal.BaseGmsClient;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.internal.games_v2.zzfg;
/* loaded from: classes2.dex */
public final class GamesResolutionActivity extends Activity {
@Nullable
private ResultReceiver zza;
private boolean zzb;
private final void zza(int i, @Nullable Intent intent) {
Bundle bundle;
if (this.zzb) {
return;
}
this.zzb = true;
ResultReceiver resultReceiver = this.zza;
if (resultReceiver != null) {
if (intent == null) {
bundle = new Bundle();
} else {
Bundle bundle2 = new Bundle();
bundle2.putParcelable("resultData", intent);
bundle = bundle2;
}
resultReceiver.send(i, bundle);
}
}
@Override // android.app.Activity
public final void onActivityResult(int i, int i2, @NonNull Intent intent) {
super.onActivityResult(i, i2, intent);
if (i == 0) {
zza(i2, intent);
finish();
return;
}
zzfg.zzc("ResultActivity", "Unexpected request code: " + i);
zza(0, intent);
finish();
}
@Override // android.app.Activity
public final void onCreate(@Nullable Bundle bundle) {
super.onCreate(bundle);
if (bundle != null) {
this.zza = (ResultReceiver) Preconditions.checkNotNull((ResultReceiver) bundle.getParcelable("resultReceiver"));
return;
}
this.zza = (ResultReceiver) Preconditions.checkNotNull((ResultReceiver) getIntent().getParcelableExtra("resultReceiver"));
try {
startIntentSenderForResult(((PendingIntent) Preconditions.checkNotNull((PendingIntent) getIntent().getParcelableExtra(BaseGmsClient.KEY_PENDING_INTENT))).getIntentSender(), 0, null, 0, 0, 0);
} catch (IntentSender.SendIntentException e) {
zzfg.zzd("ResultActivity", "Failed to launch", e);
zza(0, null);
finish();
}
}
@Override // android.app.Activity
public final void onDestroy() {
if (!isChangingConfigurations()) {
zza(0, null);
}
super.onDestroy();
}
@Override // android.app.Activity
public final void onSaveInstanceState(@NonNull Bundle bundle) {
super.onSaveInstanceState(bundle);
bundle.putParcelable("resultReceiver", this.zza);
}
}

View File

@@ -0,0 +1,39 @@
package com.google.android.gms.games.internal.v2.resolution;
import android.content.Intent;
import android.os.Bundle;
import android.os.Looper;
import android.os.ResultReceiver;
import com.google.android.gms.internal.games_v2.zzfl;
import com.google.android.gms.tasks.Task;
import com.google.android.gms.tasks.TaskCompletionSource;
/* loaded from: classes2.dex */
final class zza extends ResultReceiver {
private final TaskCompletionSource zza;
public zza() {
super(new zzfl(Looper.getMainLooper()));
this.zza = new TaskCompletionSource();
}
@Override // android.os.ResultReceiver
public final void onReceiveResult(int i, Bundle bundle) {
Intent intent;
super.onReceiveResult(i, bundle);
Boolean valueOf = Boolean.valueOf(i == -1);
if (bundle == null) {
intent = new Intent();
} else {
intent = (Intent) bundle.getParcelable("resultData");
if (intent == null) {
intent = new Intent();
}
}
this.zza.trySetResult(valueOf.booleanValue() ? zzc.zzc(intent) : zzc.zzb(intent));
}
public final Task zza() {
return this.zza.getTask();
}
}

View File

@@ -0,0 +1,28 @@
package com.google.android.gms.games.internal.v2.resolution;
import android.app.Activity;
import android.app.PendingIntent;
import android.content.Intent;
import androidx.annotation.VisibleForTesting;
import com.google.android.gms.common.internal.BaseGmsClient;
import com.google.android.gms.tasks.Task;
/* loaded from: classes2.dex */
public final class zzb {
@VisibleForTesting(otherwise = 2)
public zzb() {
}
public static zzb zza() {
return new zzb();
}
public static final Task zzb(Activity activity, PendingIntent pendingIntent) {
zza zzaVar = new zza();
Intent intent = new Intent(activity, (Class<?>) GamesResolutionActivity.class);
intent.putExtra(BaseGmsClient.KEY_PENDING_INTENT, pendingIntent);
intent.putExtra("resultReceiver", zzaVar);
activity.startActivity(intent);
return zzaVar.zza();
}
}

View File

@@ -0,0 +1,30 @@
package com.google.android.gms.games.internal.v2.resolution;
import android.content.Intent;
/* loaded from: classes2.dex */
public final class zzc {
private final boolean zza;
private final Intent zzb;
private zzc(boolean z, Intent intent) {
this.zza = z;
this.zzb = intent;
}
public static zzc zzb(Intent intent) {
return new zzc(false, intent);
}
public static zzc zzc(Intent intent) {
return new zzc(true, intent);
}
public final Intent zza() {
return this.zzb;
}
public final boolean zzd() {
return this.zza;
}
}

View File

@@ -0,0 +1,77 @@
package com.google.android.gms.games.internal;
import androidx.annotation.Nullable;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.common.data.DataHolder;
import com.google.android.gms.drive.Contents;
/* loaded from: classes2.dex */
public class zza extends zzak {
@Override // com.google.android.gms.games.internal.zzal
public void zzb(int i, String str) {
}
@Override // com.google.android.gms.games.internal.zzal
public void zzc(DataHolder dataHolder) {
}
@Override // com.google.android.gms.games.internal.zzal
public void zzd(DataHolder dataHolder) {
}
@Override // com.google.android.gms.games.internal.zzal
public void zze(DataHolder dataHolder) {
}
@Override // com.google.android.gms.games.internal.zzal
public void zzf(DataHolder dataHolder, DataHolder dataHolder2) {
}
@Override // com.google.android.gms.games.internal.zzal
public void zzg(DataHolder dataHolder) {
}
@Override // com.google.android.gms.games.internal.zzal
public void zzh(DataHolder dataHolder) {
}
@Override // com.google.android.gms.games.internal.zzal
public void zzi(DataHolder dataHolder) {
}
@Override // com.google.android.gms.games.internal.zzal
public void zzj(DataHolder dataHolder) {
}
@Override // com.google.android.gms.games.internal.zzal
public void zzk(DataHolder dataHolder) {
}
@Override // com.google.android.gms.games.internal.zzal
public void zzl(Status status, @Nullable String str) {
}
@Override // com.google.android.gms.games.internal.zzal
public void zzm() {
}
@Override // com.google.android.gms.games.internal.zzal
public void zzn(DataHolder dataHolder) {
}
@Override // com.google.android.gms.games.internal.zzal
public void zzo(DataHolder dataHolder, String str, Contents contents, Contents contents2, Contents contents3) {
}
@Override // com.google.android.gms.games.internal.zzal
public void zzp(int i, String str) {
}
@Override // com.google.android.gms.games.internal.zzal
public void zzq(DataHolder dataHolder, Contents contents) {
}
@Override // com.google.android.gms.games.internal.zzal
public void zzr(DataHolder dataHolder) {
}
}

View File

@@ -0,0 +1,52 @@
package com.google.android.gms.games.internal;
import com.google.android.gms.common.data.DataHolder;
import com.google.android.gms.games.AnnotatedData;
import com.google.android.gms.games.GamesStatusUtils;
import com.google.android.gms.games.LeaderboardsClient;
import com.google.android.gms.games.leaderboard.Leaderboard;
import com.google.android.gms.games.leaderboard.LeaderboardBuffer;
import com.google.android.gms.games.leaderboard.LeaderboardScoreBuffer;
import com.google.android.gms.tasks.TaskCompletionSource;
/* loaded from: classes2.dex */
final class zzaa extends zza {
final /* synthetic */ zzaj zza;
private final TaskCompletionSource zzb;
public zzaa(zzaj zzajVar, TaskCompletionSource taskCompletionSource) {
this.zza = zzajVar;
this.zzb = taskCompletionSource;
}
@Override // com.google.android.gms.games.internal.zza, com.google.android.gms.games.internal.zzal
public final void zzf(DataHolder dataHolder, DataHolder dataHolder2) {
int statusCode = dataHolder2.getStatusCode();
if (statusCode == 10003) {
zzaj.zzq(this.zza, this.zzb);
dataHolder.close();
dataHolder2.close();
return;
}
boolean z = statusCode == 3;
if (statusCode != 0 && !z) {
GamesStatusUtils.zza(this.zzb, statusCode);
dataHolder.close();
dataHolder2.close();
return;
}
LeaderboardBuffer leaderboardBuffer = new LeaderboardBuffer(dataHolder);
try {
Leaderboard freeze = leaderboardBuffer.getCount() > 0 ? leaderboardBuffer.get(0).freeze() : null;
leaderboardBuffer.close();
this.zzb.setResult(new AnnotatedData(new LeaderboardsClient.LeaderboardScores(freeze, new LeaderboardScoreBuffer(dataHolder2)), z));
} catch (Throwable th) {
try {
leaderboardBuffer.close();
} catch (Throwable th2) {
th.addSuppressed(th2);
}
throw th;
}
}
}

View File

@@ -0,0 +1,28 @@
package com.google.android.gms.games.internal;
import com.google.android.gms.common.data.DataHolder;
import com.google.android.gms.games.AnnotatedData;
import com.google.android.gms.games.GamesStatusUtils;
import com.google.android.gms.games.leaderboard.LeaderboardBuffer;
import com.google.android.gms.tasks.TaskCompletionSource;
/* loaded from: classes2.dex */
final class zzab extends zza {
private final TaskCompletionSource zza;
public zzab(TaskCompletionSource taskCompletionSource) {
this.zza = taskCompletionSource;
}
@Override // com.google.android.gms.games.internal.zza, com.google.android.gms.games.internal.zzal
public final void zzg(DataHolder dataHolder) {
int statusCode = dataHolder.getStatusCode();
boolean z = statusCode == 3;
if (statusCode == 0 || z) {
this.zza.setResult(new AnnotatedData(new LeaderboardBuffer(dataHolder), z));
} else {
GamesStatusUtils.zza(this.zza, statusCode);
dataHolder.close();
}
}
}

View File

@@ -0,0 +1,28 @@
package com.google.android.gms.games.internal;
import com.google.android.gms.common.data.DataHolder;
import com.google.android.gms.games.AnnotatedData;
import com.google.android.gms.games.GamesStatusUtils;
import com.google.android.gms.games.snapshot.SnapshotMetadataBuffer;
import com.google.android.gms.tasks.TaskCompletionSource;
/* loaded from: classes2.dex */
final class zzac extends zza {
private final TaskCompletionSource zza;
public zzac(TaskCompletionSource taskCompletionSource) {
this.zza = taskCompletionSource;
}
@Override // com.google.android.gms.games.internal.zza, com.google.android.gms.games.internal.zzal
public final void zzr(DataHolder dataHolder) {
int statusCode = dataHolder.getStatusCode();
boolean z = statusCode == 3;
if (statusCode == 0 || z) {
this.zza.setResult(new AnnotatedData(new SnapshotMetadataBuffer(dataHolder), z));
} else {
GamesStatusUtils.zza(this.zza, statusCode);
dataHolder.close();
}
}
}

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