42 lines
1.3 KiB
Java
42 lines
1.3 KiB
Java
package com.huawei.hms.stats;
|
|
|
|
import android.content.Context;
|
|
import com.huawei.hianalytics.process.HiAnalyticsInstance;
|
|
import com.huawei.hms.utils.HMSBIInitializer;
|
|
import java.util.LinkedHashMap;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class HiAnalyticsOfCpUtils {
|
|
private static HiAnalyticsInstance a;
|
|
|
|
private static HiAnalyticsInstance a(Context context) {
|
|
HiAnalyticsInstance analyticsInstance = HMSBIInitializer.getInstance(context).getAnalyticsInstance();
|
|
a = analyticsInstance;
|
|
return analyticsInstance;
|
|
}
|
|
|
|
public static void onEvent(Context context, String str, String str2) {
|
|
if (a(context) != null) {
|
|
a.onEvent(context, str, str2);
|
|
}
|
|
}
|
|
|
|
public static void onReport(Context context, int i) {
|
|
if (a(context) != null) {
|
|
a.onReport(i);
|
|
}
|
|
}
|
|
|
|
public static void onStreamEvent(Context context, int i, String str, LinkedHashMap<String, String> linkedHashMap) {
|
|
if (a(context) != null) {
|
|
a.onStreamEvent(i, str, linkedHashMap);
|
|
}
|
|
}
|
|
|
|
public static void onEvent(Context context, int i, String str, LinkedHashMap<String, String> linkedHashMap) {
|
|
if (a(context) != null) {
|
|
a.onEvent(i, str, linkedHashMap);
|
|
}
|
|
}
|
|
}
|