package com.huawei.hms.hatool; import android.content.Context; import java.util.LinkedHashMap; /* loaded from: classes2.dex */ public abstract class a { private static z0 a; public static void c() { if (a() == null || !q1.b().a()) { return; } a.a(-1); } public static boolean b() { return q.c().a(); } public static void b(int i, String str, LinkedHashMap linkedHashMap) { if (a() == null || !q1.b().a()) { return; } if (i == 1 || i == 0) { a.b(i, str, linkedHashMap); } else { v.d("hmsSdk", "Data type no longer collects range.type: ".concat(String.valueOf(i))); } } @Deprecated public static void a(Context context, String str, String str2) { if (a() != null) { a.a(context, str, str2); } } public static void a(int i, String str, LinkedHashMap linkedHashMap) { if (a() == null || !q1.b().a()) { return; } if (i == 1 || i == 0) { a.a(i, str, linkedHashMap); } else { v.d("hmsSdk", "Data type no longer collects range.type: ".concat(String.valueOf(i))); } } private static z0 a() { z0 z0Var; synchronized (a.class) { if (a == null) { a = q.c().b(); } z0Var = a; } return z0Var; } }