58 lines
2.6 KiB
Java
58 lines
2.6 KiB
Java
package com.discord.utilities.analytics;
|
|
|
|
import android.content.SharedPreferences;
|
|
import c.d.b.a.a;
|
|
import com.discord.hardware_analytics.BuildInfo;
|
|
import com.discord.hardware_analytics.DecoderCountInfo;
|
|
import com.discord.hardware_analytics.HardwareSurveyVersionCache;
|
|
import com.discord.hardware_analytics.MemoryInfo;
|
|
import com.discord.utilities.logging.Logger;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
/* compiled from: HardwareAnalytics.kt */
|
|
public final class HardwareAnalytics$runHardwareAnalytics$1 extends o implements Function1<DecoderCountInfo, Unit> {
|
|
public final /* synthetic */ BuildInfo $buildInfo;
|
|
public final /* synthetic */ HardwareSurveyVersionCache $cache;
|
|
public final /* synthetic */ Logger $logger;
|
|
public final /* synthetic */ MemoryInfo $memoryInfo;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public HardwareAnalytics$runHardwareAnalytics$1(Logger logger, BuildInfo buildInfo, MemoryInfo memoryInfo, HardwareSurveyVersionCache hardwareSurveyVersionCache) {
|
|
super(1);
|
|
this.$logger = logger;
|
|
this.$buildInfo = buildInfo;
|
|
this.$memoryInfo = memoryInfo;
|
|
this.$cache = hardwareSurveyVersionCache;
|
|
}
|
|
|
|
/* Return type fixed from 'java.lang.Object' to match base method */
|
|
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public /* bridge */ /* synthetic */ Unit invoke(DecoderCountInfo decoderCountInfo) {
|
|
invoke(decoderCountInfo);
|
|
return Unit.a;
|
|
}
|
|
|
|
public final void invoke(DecoderCountInfo decoderCountInfo) {
|
|
m.checkNotNullParameter(decoderCountInfo, "decoderCountInfo");
|
|
Logger logger = this.$logger;
|
|
StringBuilder L = a.L("buildInfo=");
|
|
L.append(this.$buildInfo);
|
|
L.append(", memoryInfo=");
|
|
L.append(this.$memoryInfo);
|
|
L.append(", decoderCountInfo=");
|
|
L.append(decoderCountInfo);
|
|
Logger.i$default(logger, "HardwareAnalytics", L.toString(), null, 4, null);
|
|
AnalyticsTracker.INSTANCE.hardwareAnalytics(this.$buildInfo, this.$memoryInfo, decoderCountInfo);
|
|
HardwareSurveyVersionCache hardwareSurveyVersionCache = this.$cache;
|
|
if (hardwareSurveyVersionCache != null) {
|
|
SharedPreferences.Editor edit = hardwareSurveyVersionCache.a.edit();
|
|
m.checkExpressionValueIsNotNull(edit, "editor");
|
|
edit.putInt("HardwareSurveyService.VERSION_KEY", 1);
|
|
edit.putInt("HardwareSurveyService.ATTEMPTS", 0);
|
|
edit.apply();
|
|
}
|
|
}
|
|
}
|