jimu-decompiled/sources/com/google/android/gms/measurement/AppMeasurement.java
2025-05-13 19:24:51 +02:00

222 lines
6.0 KiB
Java

package com.google.android.gms.measurement;
import android.content.Context;
import android.os.Bundle;
import androidx.annotation.Keep;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.measurement.internal.zzan;
import com.google.android.gms.measurement.internal.zzbw;
import com.google.android.gms.measurement.internal.zzdw;
import java.util.List;
import java.util.Map;
@Deprecated
/* loaded from: classes.dex */
public class AppMeasurement {
private final zzbw a;
public static class ConditionalUserProperty {
@Keep
public boolean mActive;
@Keep
public String mAppId;
@Keep
public long mCreationTimestamp;
@Keep
public String mExpiredEventName;
@Keep
public Bundle mExpiredEventParams;
@Keep
public String mName;
@Keep
public String mOrigin;
@Keep
public long mTimeToLive;
@Keep
public String mTimedOutEventName;
@Keep
public Bundle mTimedOutEventParams;
@Keep
public String mTriggerEventName;
@Keep
public long mTriggerTimeout;
@Keep
public String mTriggeredEventName;
@Keep
public Bundle mTriggeredEventParams;
@Keep
public long mTriggeredTimestamp;
@Keep
public Object mValue;
public ConditionalUserProperty() {
}
public ConditionalUserProperty(ConditionalUserProperty conditionalUserProperty) {
Preconditions.a(conditionalUserProperty);
this.mAppId = conditionalUserProperty.mAppId;
this.mOrigin = conditionalUserProperty.mOrigin;
this.mCreationTimestamp = conditionalUserProperty.mCreationTimestamp;
this.mName = conditionalUserProperty.mName;
Object obj = conditionalUserProperty.mValue;
if (obj != null) {
this.mValue = zzdw.a(obj);
if (this.mValue == null) {
this.mValue = conditionalUserProperty.mValue;
}
}
this.mActive = conditionalUserProperty.mActive;
this.mTriggerEventName = conditionalUserProperty.mTriggerEventName;
this.mTriggerTimeout = conditionalUserProperty.mTriggerTimeout;
this.mTimedOutEventName = conditionalUserProperty.mTimedOutEventName;
Bundle bundle = conditionalUserProperty.mTimedOutEventParams;
if (bundle != null) {
this.mTimedOutEventParams = new Bundle(bundle);
}
this.mTriggeredEventName = conditionalUserProperty.mTriggeredEventName;
Bundle bundle2 = conditionalUserProperty.mTriggeredEventParams;
if (bundle2 != null) {
this.mTriggeredEventParams = new Bundle(bundle2);
}
this.mTriggeredTimestamp = conditionalUserProperty.mTriggeredTimestamp;
this.mTimeToLive = conditionalUserProperty.mTimeToLive;
this.mExpiredEventName = conditionalUserProperty.mExpiredEventName;
Bundle bundle3 = conditionalUserProperty.mExpiredEventParams;
if (bundle3 != null) {
this.mExpiredEventParams = new Bundle(bundle3);
}
}
}
public AppMeasurement(zzbw zzbwVar) {
Preconditions.a(zzbwVar);
this.a = zzbwVar;
}
@Keep
@Deprecated
public static AppMeasurement getInstance(Context context) {
return zzbw.a(context, (zzan) null).y();
}
public final void a(String str, Bundle bundle) {
this.a.k().a("app", str, bundle, true);
}
public final void b(boolean z) {
this.a.k().b(z);
}
@Keep
public void beginAdUnitExposure(String str) {
this.a.j().a(str, this.a.d().b());
}
@Keep
public void clearConditionalUserProperty(String str, String str2, Bundle bundle) {
this.a.k().a(str, str2, bundle);
}
@Keep
protected void clearConditionalUserPropertyAs(String str, String str2, String str3, Bundle bundle) {
this.a.k().a(str, str2, str3, bundle);
throw null;
}
@Keep
public void endAdUnitExposure(String str) {
this.a.j().b(str, this.a.d().b());
}
@Keep
public long generateEventId() {
return this.a.s().t();
}
@Keep
public String getAppInstanceId() {
return this.a.k().E();
}
@Keep
public List<ConditionalUserProperty> getConditionalUserProperties(String str, String str2) {
return this.a.k().b(str, str2);
}
@Keep
protected List<ConditionalUserProperty> getConditionalUserPropertiesAs(String str, String str2, String str3) {
this.a.k().a(str, str2, str3);
throw null;
}
@Keep
public String getCurrentScreenClass() {
return this.a.k().B();
}
@Keep
public String getCurrentScreenName() {
return this.a.k().C();
}
@Keep
public String getGmpAppId() {
return this.a.k().D();
}
@Keep
public int getMaxUserProperties(String str) {
this.a.k();
Preconditions.b(str);
return 25;
}
@Keep
protected Map<String, Object> getUserProperties(String str, String str2, boolean z) {
return this.a.k().a(str, str2, z);
}
@Keep
protected Map<String, Object> getUserPropertiesAs(String str, String str2, String str3, boolean z) {
this.a.k().a(str, str2, str3, z);
throw null;
}
@Keep
public void logEventInternal(String str, String str2, Bundle bundle) {
this.a.k().b(str, str2, bundle);
}
@Keep
public void setConditionalUserProperty(ConditionalUserProperty conditionalUserProperty) {
this.a.k().a(conditionalUserProperty);
}
@Keep
protected void setConditionalUserPropertyAs(ConditionalUserProperty conditionalUserProperty) {
this.a.k().b(conditionalUserProperty);
throw null;
}
@Deprecated
public void a(boolean z) {
this.a.k().a(z);
}
}