QQ浏览器 v12.2.3.7053版本的 MD5 值为:8285ab3059e5c8b521a264dfbc5c3685
以下内容为反编译后的 h.java 源代码,内容仅作参考
package com.tencent.xweb.util;
import android.content.SharedPreferences;
import com.tencent.luggage.wxa.mg.ag;
import com.tencent.thumbplayer.core.common.TPCodecID;
import com.tencent.xweb.JsRuntime;
import com.tencent.xweb.WebView;
import com.tencent.xweb.ac;
import com.xiaomi.mipush.sdk.Constants;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.UUID;
import org.xwalk.core.Log;
import org.xwalk.core.XWalkEnvironment;
import trpc.ugpush.uginnerpushserver.Pushcomm;
public class h {
public static String f82338a = "";
public static String f82339b = "";
static WebView.c f82340c = WebView.c.WV_KIND_NONE;
static ac f82341d = null;
static boolean e = false;
private static boolean f = false;
public static class AnonymousClass1 {
static final int[] f82342a = new int[WebView.c.values().length];
static {
try {
f82342a[WebView.c.WV_KIND_CW.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
f82342a[WebView.c.WV_KIND_X5.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
f82342a[WebView.c.WV_KIND_SYS.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
}
}
public static class a {
StringBuilder f82343a = new StringBuilder();
int f82344b;
public a(int i) {
this.f82344b = 0;
this.f82344b = i;
}
public a a(int i, Object obj) {
return a(obj);
}
public a a(Object obj) {
if (this.f82343a.length() > 0) {
this.f82343a.append(Constants.ACCEPT_TIME_SEPARATOR_SP);
}
this.f82343a.append(obj.toString());
return this;
}
public String a() {
String sb = this.f82343a.toString();
h.a(this.f82344b, this.f82343a.toString());
return sb;
}
}
public static class b {
public static class a {
public static int f82345a = 19307;
public static int f82346b = 1;
public static int f82347c = 2;
public static int f82348d = 1;
public static int e = 2;
}
}
public static void A() {
ac acVar = f82341d;
if (acVar != null) {
acVar.a(577L, 20L, 1L);
}
}
public static void B() {
ac acVar = f82341d;
if (acVar != null) {
acVar.a(577L, 21L, 1L);
}
}
public static void C() {
ac acVar = f82341d;
if (acVar != null) {
acVar.a(577L, 25L, 1L);
}
}
public static void D() {
ac acVar = f82341d;
if (acVar != null) {
acVar.a(577L, 26L, 1L);
}
}
public static void E() {
ac acVar = f82341d;
if (acVar != null) {
acVar.a(577L, 14L, 1L);
}
}
public static void F() {
ac acVar = f82341d;
if (acVar != null) {
acVar.a(577L, 15L, 1L);
}
}
public static void G() {
ac acVar = f82341d;
if (acVar == null) {
return;
}
acVar.a(577L, 83L, 1L);
}
public static void H() {
ac acVar = f82341d;
if (acVar == null) {
return;
}
acVar.a(577L, 87L, 1L);
}
public static void I() {
ac acVar = f82341d;
if (acVar != null) {
acVar.a(577L, 180L, 1L);
}
}
public static void J() {
ac acVar = f82341d;
if (acVar != null) {
acVar.a(577L, 181L, 1L);
}
}
public static void K() {
ac acVar = f82341d;
if (acVar != null) {
acVar.a(577L, 182L, 1L);
}
}
public static void L() {
ac acVar = f82341d;
if (acVar != null) {
acVar.a(577L, 183L, 1L);
}
}
public static void M() {
ac acVar = f82341d;
if (acVar != null) {
acVar.a(577L, 184L, 1L);
}
}
public static void N() {
ac acVar = f82341d;
if (acVar != null) {
acVar.a(577L, 189L, 1L);
}
}
public static void O() {
ac acVar = f82341d;
if (acVar != null) {
acVar.a(577L, 190L, 1L);
}
}
public static void P() {
ac acVar = f82341d;
if (acVar == null) {
return;
}
acVar.a(577L, 88L, 1L);
}
public static boolean Q() {
return f82341d != null;
}
public static void R() {
a(938L, 89L, 1L);
}
public static void S() {
a(938L, 90L, 1L);
}
public static void T() {
a(938L, 91L, 1L);
}
public static WebView.c a() {
return WebView.getCurWebType();
}
public static void a(int i, int i2) {
if (f82341d == null) {
return;
}
SharedPreferences mMKVSharedTransportOld = XWalkEnvironment.getMMKVSharedTransportOld("REPORT_DAILY");
String str = "id_" + i + "_key_" + i2;
String format = new SimpleDateFormat("yyyyMMdd").format(new Date());
if (format.equals(mMKVSharedTransportOld.getString(str, ""))) {
return;
}
f82341d.a(i, i2, 1L);
mMKVSharedTransportOld.edit().putString(str, format).commit();
}
public static void a(int i, String str) {
ac acVar = f82341d;
if (acVar != null) {
acVar.a(i, str);
}
}
public static void a(int i, boolean z) {
if (f82341d != null) {
int i2 = 0;
if (i == 0) {
i2 = z ? 163 : 159;
} else if (i == 1) {
i2 = z ? 164 : 160;
} else if (i == 2) {
i2 = z ? 165 : 161;
} else if (i == 3) {
i2 = z ? TPCodecID.TP_CODEC_ID_VP9 : Pushcomm.CommRetCode.RET_REDIS_DEL_FAIL_VALUE;
}
if (i2 > 0) {
f82341d.a(577L, i2, 1L);
}
}
}
public static void a(long j) {
ac acVar = f82341d;
if (acVar == null || j <= 0 || j >= Constants.ASSEMBLE_PUSH_NETWORK_INTERVAL) {
return;
}
acVar.a(ag.CTRL_INDEX, ag.CTRL_INDEX, 2, 3, 1, (int) j);
}
public static void a(long j, int i) {
ac acVar = f82341d;
if (acVar != null) {
acVar.a(577L, j, i);
}
}
public static void a(long j, long j2, long j3) {
ac acVar = f82341d;
if (acVar != null) {
acVar.a(j, j2, j3);
}
}
public static void a(WebView.c cVar) {
f82340c = cVar;
}
public static void a(WebView.c cVar, int i) {
Integer valueOf;
int safeGetChromiunVersion;
int i2;
if (com.tencent.xweb.internal.c.b("kv_" + b.a.f82345a + cVar.toString() + "_" + i)) {
a aVar = new a(b.a.f82345a);
aVar.a(21, Integer.valueOf(i));
if (cVar != WebView.c.WV_KIND_CW) {
int i3 = 0;
if (cVar == WebView.c.WV_KIND_X5) {
try {
i3 = WebView.getInstalledTbsCoreVersion(XWalkEnvironment.getApplicationContext());
} catch (Exception unused) {
Log.e("onUseCoreFailed", "get tbs core version failed");
}
} else if (cVar == WebView.c.WV_KIND_SYS) {
safeGetChromiunVersion = XWalkEnvironment.safeGetChromiunVersion();
}
valueOf = Integer.valueOf(i3);
aVar.a(22, valueOf);
aVar.a(23, Integer.valueOf(XWalkEnvironment.SDK_VERSION));
if (XWalkEnvironment.RUNTIME_ABI_ARM32_STR.equalsIgnoreCase(XWalkEnvironment.getRuntimeAbi())) {
if (XWalkEnvironment.RUNTIME_ABI_ARM64_STR.equalsIgnoreCase(XWalkEnvironment.getRuntimeAbi())) {
i2 = b.a.e;
}
aVar.a(25, Integer.valueOf(cVar.ordinal()));
aVar.a();
}
i2 = b.a.f82348d;
aVar.a(24, Integer.valueOf(i2));
aVar.a(25, Integer.valueOf(cVar.ordinal()));
aVar.a();
}
safeGetChromiunVersion = XWalkEnvironment.getInstalledNewstVersionForCurAbi();
valueOf = Integer.valueOf(safeGetChromiunVersion);
aVar.a(22, valueOf);
aVar.a(23, Integer.valueOf(XWalkEnvironment.SDK_VERSION));
if (XWalkEnvironment.RUNTIME_ABI_ARM32_STR.equalsIgnoreCase(XWalkEnvironment.getRuntimeAbi())) {
}
aVar.a(24, Integer.valueOf(i2));
aVar.a(25, Integer.valueOf(cVar.ordinal()));
aVar.a();
}
}
public static void a(ac acVar) {
f82341d = acVar;
}
public static void a(String str) {
if (str != null) {
f82339b = str;
}
}
public static void a(String str, int i) {
if (f82341d != null) {
b(str);
f82338a = w();
f82341d.a(577L, 4L, 1L);
f82341d.a(15003, XWalkEnvironment.SDK_VERSION, XWalkEnvironment.getAvailableVersion(), 0, c(str), f82338a, JsRuntime.a() == null ? 100 : JsRuntime.a().ordinal(), -1, 0, 0, 0, i, "");
}
}
public static void a(String str, int i, long j, int i2) {
if (f82341d != null) {
h();
f82341d.a(577L, 5L, 1L);
f82341d.a(15003, "");
f82341d.a(15003, XWalkEnvironment.SDK_VERSION, XWalkEnvironment.getAvailableVersion(), 0, c(str), f82338a, JsRuntime.a() == null ? 100 : JsRuntime.a().ordinal(), -1, 1, i, (int) j, i2, "");
}
}
public static void a(String str, long j, int i) {
a(j);
ac acVar = f82341d;
if (acVar == null || j <= 0 || j >= Constants.ASSEMBLE_PUSH_NETWORK_INTERVAL) {
return;
}
int i2 = (int) j;
acVar.a(ag.CTRL_INDEX, ag.CTRL_INDEX, 6, 7, 1, i2);
f82341d.a(15003, XWalkEnvironment.SDK_VERSION, XWalkEnvironment.getAvailableVersion(), 0, c(str), f82338a, JsRuntime.a() == null ? 100 : JsRuntime.a().ordinal(), -1, 1, 0, i2, i, "");
}
public static synchronized void a(String str, WebView webView) {
synchronized (h.class) {
if (f82341d == null) {
return;
}
g();
if (webView.isX5WrappedSysKernel()) {
f();
}
if (str != null && "https://servicewechat.com/preload/page-frame.html".equalsIgnoreCase(str.trim())) {
f82341d.a(903L, 102L, 1L);
}
int e2 = e();
int ordinal = WebView.getCurWebType().ordinal() - 1;
if (e2 >= 30 && ordinal >= 0) {
f82341d.a(903L, e2 + 0 + ordinal, 1L);
}
if ("toolsmp".equals(f82339b)) {
if (b()) {
f82341d.a(903L, 107L, 1L);
} else if (c()) {
f82341d.a(903L, 109L, 1L);
}
}
}
}
public static void a(String str, boolean z) {
ac acVar;
long j;
long j2;
if (f82341d == null) {
return;
}
int i = z ? 51 : 60;
if (XWalkEnvironment.XWALK_PLUGIN_NAME_FULL_SCREEN_VIDEO.equals(str)) {
acVar = f82341d;
j = 577;
j2 = 185;
} else {
if (XWalkEnvironment.XWALK_PLUGIN_NAME_PPT.equals(str)) {
acVar = f82341d;
j = 1068;
} else if (XWalkEnvironment.XWALK_PLUGIN_NAME_PDF.equals(str)) {
acVar = f82341d;
j = 1071;
} else if (XWalkEnvironment.XWALK_PLUGIN_NAME_WORD.equals(str)) {
acVar = f82341d;
j = 1069;
} else {
if (!XWalkEnvironment.XWALK_PLUGIN_NAME_EXCEL.equals(str)) {
if (XWalkEnvironment.XWALK_PLUGIN_NAME_OFFICE.equals(str)) {
f82341d.a(1544L, i, 1L);
return;
}
return;
}
acVar = f82341d;
j = 1070;
}
j2 = i;
}
acVar.a(j, j2, 1L);
}
public static boolean a(int i) {
return i == 15625 || i == 15626;
}
public static void b(int i) {
int i2;
if ("toolsmp".equals(f82339b)) {
if (a() == WebView.c.WV_KIND_CW) {
i2 = 200;
} else if (a() != WebView.c.WV_KIND_X5) {
return;
} else {
i2 = 220;
}
if (i < 0) {
i = 3;
} else if (i > 9) {
i = 4;
}
a(903L, i2 + i, 1L);
}
}
public static void b(int i, boolean z) {
if (f82341d != null) {
int i2 = 0;
if (i == 0) {
i2 = z ? 155 : 151;
} else if (i == 1) {
i2 = z ? 156 : 152;
} else if (i == 2) {
i2 = z ? 157 : 153;
} else if (i == 3) {
i2 = z ? 158 : 154;
}
if (i2 > 0) {
f82341d.a(577L, i2, 1L);
}
}
}
public static void b(long j) {
ac acVar = f82341d;
if (acVar == null || j <= 0 || j >= Constants.ASSEMBLE_PUSH_NETWORK_INTERVAL) {
return;
}
acVar.a(ag.CTRL_INDEX, ag.CTRL_INDEX, 48, 49, 1, (int) j);
}
public static void b(long j, long j2, long j3) {
Log.i("WXWebReporter", "report idkey id = " + j + " key = " + j2 + " value = " + j3);
ac acVar = f82341d;
if (acVar != null) {
acVar.a(j, j2, j3);
}
}
public static void b(WebView.c cVar) {
String str;
int i;
if (f82341d == null) {
return;
}
if (cVar == WebView.c.WV_KIND_CW) {
str = "REPORT_APK_VER_TIME";
} else {
str = "REPORT_APK_VER_TIME_" + cVar;
}
String format = new SimpleDateFormat("yyyyMMdd").format(new Date());
String string = XWalkEnvironment.getSharedPreferences().getString(str, "");
if (string == null) {
string = "";
}
if (cVar == WebView.c.WV_KIND_CW) {
int i2 = XWalkEnvironment.getSharedPreferences().getInt("REPORT_XWEB_APK_VER", 0);
int availableVersion = XWalkEnvironment.getAvailableVersion();
if (availableVersion <= 0) {
return;
}
if (availableVersion != i2 || !format.equals(string)) {
f82341d.a(577L, (availableVersion % 50) + 100, 1L);
XWalkEnvironment.getSharedPreferences().edit().putInt("REPORT_XWEB_APK_VER", availableVersion).commit();
}
}
if (format.equals(string)) {
return;
}
if (cVar == WebView.c.WV_KIND_CW) {
if (XWalkEnvironment.getAvailableVersion() <= 0) {
return;
} else {
i = 99;
}
} else if (cVar == WebView.c.WV_KIND_SYS) {
i = 97;
} else if (cVar != WebView.c.WV_KIND_X5) {
return;
} else {
i = 98;
}
f82341d.a(577L, i, 1L);
XWalkEnvironment.getSharedPreferences().edit().putString(str, format).commit();
}
public static void b(String str) {
ac acVar;
long j;
long j2;
ac acVar2 = f82341d;
if (acVar2 == null) {
return;
}
acVar2.a(577L, 0L, 1L);
if (f82339b.equals("toolsmp") && str != null && c(str) == 2) {
f82341d.a(903L, 101L, 1L);
}
if (f82339b.equals("toolsmp")) {
if (WebView.getCurWebType() != WebView.c.WV_KIND_CW) {
if (WebView.getCurWebType() == WebView.c.WV_KIND_X5) {
acVar = f82341d;
j = 903;
j2 = 104;
}
if (f) {
return;
}
int i = 73;
if (f82339b.equals("tools")) {
i = 70;
} else if (!f82339b.equals("appbrand") && !f82339b.equals("support")) {
i = -1;
}
int ordinal = WebView.getCurWebType().ordinal() - 1;
if (i < 70 || ordinal < 0) {
return;
}
f = true;
a(ag.CTRL_INDEX, i + ordinal);
return;
}
acVar = f82341d;
j = 903;
j2 = 105;
acVar.a(j, j2, 1L);
if (f) {
}
} else {
if (f82339b.equals("tools") && str != null && c(str) == 1) {
acVar = f82341d;
j = 903;
j2 = 103;
acVar.a(j, j2, 1L);
}
if (f) {
}
}
}
public static void b(String str, boolean z) {
ac acVar;
long j;
long j2;
if (f82341d == null) {
return;
}
int i = z ? 52 : 61;
if (XWalkEnvironment.XWALK_PLUGIN_NAME_FULL_SCREEN_VIDEO.equals(str)) {
acVar = f82341d;
j = 577;
j2 = 186;
} else {
if (XWalkEnvironment.XWALK_PLUGIN_NAME_PPT.equals(str)) {
acVar = f82341d;
j = 1068;
} else if (XWalkEnvironment.XWALK_PLUGIN_NAME_PDF.equals(str)) {
acVar = f82341d;
j = 1071;
} else if (XWalkEnvironment.XWALK_PLUGIN_NAME_WORD.equals(str)) {
acVar = f82341d;
j = 1069;
} else {
if (!XWalkEnvironment.XWALK_PLUGIN_NAME_EXCEL.equals(str)) {
if (XWalkEnvironment.XWALK_PLUGIN_NAME_OFFICE.equals(str)) {
f82341d.a(1544L, i, 1L);
return;
}
return;
}
acVar = f82341d;
j = 1070;
}
j2 = i;
}
acVar.a(j, j2, 1L);
}
static boolean b() {
return f82340c == WebView.c.WV_KIND_CW && WebView.getCurWebType() != f82340c;
}
public static int c(String str) {
if (str.startsWith("https://servicewechat.com/")) {
return 0;
}
return (str.startsWith("http://mp.weixin.qq.com/") || str.startsWith("https://mp.weixin.qq.com/") || str.startsWith("https://servicewechat.com/preload/") || str.startsWith("http://mp.weixinbridge.com/")) ? 1 : 2;
}
public static void c(long j) {
ac acVar = f82341d;
if (acVar == null || acVar == null || j <= 0 || j >= 600000) {
return;
}
acVar.a(ag.CTRL_INDEX, ag.CTRL_INDEX, 11, 12, 1, (int) j);
}
public static void c(WebView.c cVar) {
if (f82341d != null && cVar == WebView.c.WV_KIND_CW) {
f82341d.a(577L, 61L, 1L);
a(ag.CTRL_INDEX, 62);
}
}
public static void c(String str, boolean z) {
ac acVar;
long j;
long j2;
if (f82341d == null) {
return;
}
int i = z ? 54 : 62;
if (XWalkEnvironment.XWALK_PLUGIN_NAME_FULL_SCREEN_VIDEO.equals(str)) {
acVar = f82341d;
j = 577;
j2 = 187;
} else {
if (XWalkEnvironment.XWALK_PLUGIN_NAME_PPT.equals(str)) {
acVar = f82341d;
j = 1068;
} else if (XWalkEnvironment.XWALK_PLUGIN_NAME_PDF.equals(str)) {
acVar = f82341d;
j = 1071;
} else if (XWalkEnvironment.XWALK_PLUGIN_NAME_WORD.equals(str)) {
acVar = f82341d;
j = 1069;
} else {
if (!XWalkEnvironment.XWALK_PLUGIN_NAME_EXCEL.equals(str)) {
if (XWalkEnvironment.XWALK_PLUGIN_NAME_OFFICE.equals(str)) {
f82341d.a(1544L, i, 1L);
return;
}
return;
}
acVar = f82341d;
j = 1070;
}
j2 = i;
}
acVar.a(j, j2, 1L);
}
static boolean c() {
return WebView.getCurWebType() == WebView.c.WV_KIND_CW && WebView.getCurWebType() != f82340c;
}
public static void d() {
int i;
String runtimeAbi = XWalkEnvironment.getRuntimeAbi();
String str = XWalkEnvironment.RUNTIME_ABI_ARM32_STR.equals(runtimeAbi) ? XWalkEnvironment.RUNTIME_ABI_ARM64_STR : XWalkEnvironment.RUNTIME_ABI_ARM32_STR;
int installedNewstVersion = XWalkEnvironment.getInstalledNewstVersion(runtimeAbi);
int installedNewstVersion2 = XWalkEnvironment.getInstalledNewstVersion(str);
Log.i("WXWebReporter", "reportCoreInstalled cur abi ver = " + installedNewstVersion + ", predown ver = " + installedNewstVersion2);
StringBuilder sb = new StringBuilder();
sb.append("");
sb.append(installedNewstVersion);
boolean a2 = com.tencent.xweb.internal.c.a("report_core_ver", sb.toString());
if (com.tencent.xweb.internal.c.b("report_core_daily") || a2) {
if (installedNewstVersion <= 0) {
b(1367L, 251L, 1L);
} else {
b(1367L, (installedNewstVersion % 100) + 0, 1L);
}
}
boolean a3 = com.tencent.xweb.internal.c.a("report_core_ver_predown", "" + installedNewstVersion2);
if (com.tencent.xweb.internal.c.b("report_core_daily_predown") || a3) {
if (installedNewstVersion2 <= 0) {
b(1367L, 252L, 1L);
} else {
b(1367L, (installedNewstVersion2 % 100) + 100, 1L);
}
}
if (XWalkEnvironment.RUNTIME_ABI_ARM32_STR.equalsIgnoreCase(runtimeAbi)) {
String deviceAbi = XWalkEnvironment.getDeviceAbi();
if (XWalkEnvironment.RUNTIME_ABI_ARM32_STR.equalsIgnoreCase(deviceAbi)) {
i = 253;
} else if (!XWalkEnvironment.RUNTIME_ABI_ARM64_STR.equalsIgnoreCase(deviceAbi)) {
return;
} else {
i = 254;
}
} else if (!XWalkEnvironment.RUNTIME_ABI_ARM64_STR.equalsIgnoreCase(runtimeAbi)) {
return;
} else {
i = 255;
}
a(1367, i);
}
public static void d(long j) {
ac acVar = f82341d;
if (acVar == null || acVar == null || j <= 0 || j >= 600000) {
return;
}
acVar.a(ag.CTRL_INDEX, ag.CTRL_INDEX, 22, 23, 1, (int) j);
}
public static void d(WebView.c cVar) {
int i;
if (f82341d == null) {
return;
}
int i2 = AnonymousClass1.f82342a[cVar.ordinal()];
if (i2 == 1) {
i = 82;
} else if (i2 == 2) {
i = 81;
} else if (i2 != 3) {
return;
} else {
i = 80;
}
f82341d.a(577L, i, 1L);
}
public static void d(String str) {
ac acVar;
long j;
if (f82341d == null) {
return;
}
if (XWalkEnvironment.XWALK_PLUGIN_NAME_PPT.equals(str)) {
acVar = f82341d;
j = 1068;
} else if (XWalkEnvironment.XWALK_PLUGIN_NAME_PDF.equals(str)) {
acVar = f82341d;
j = 1071;
} else if (XWalkEnvironment.XWALK_PLUGIN_NAME_WORD.equals(str)) {
acVar = f82341d;
j = 1069;
} else {
if (!XWalkEnvironment.XWALK_PLUGIN_NAME_EXCEL.equals(str)) {
if (XWalkEnvironment.XWALK_PLUGIN_NAME_OFFICE.equals(str)) {
f82341d.a(1544L, 57L, 1L);
return;
}
return;
}
acVar = f82341d;
j = 1070;
}
acVar.a(j, 57L, 1L);
}
public static void d(String str, boolean z) {
ac acVar;
long j;
long j2;
if (f82341d == null) {
return;
}
int i = z ? 55 : 63;
if (XWalkEnvironment.XWALK_PLUGIN_NAME_FULL_SCREEN_VIDEO.equals(str)) {
acVar = f82341d;
j = 577;
j2 = 188;
} else {
if (XWalkEnvironment.XWALK_PLUGIN_NAME_PPT.equals(str)) {
acVar = f82341d;
j = 1068;
} else if (XWalkEnvironment.XWALK_PLUGIN_NAME_PDF.equals(str)) {
acVar = f82341d;
j = 1071;
} else if (XWalkEnvironment.XWALK_PLUGIN_NAME_WORD.equals(str)) {
acVar = f82341d;
j = 1069;
} else {
if (!XWalkEnvironment.XWALK_PLUGIN_NAME_EXCEL.equals(str)) {
if (XWalkEnvironment.XWALK_PLUGIN_NAME_OFFICE.equals(str)) {
f82341d.a(1544L, i, 1L);
return;
}
return;
}
acVar = f82341d;
j = 1070;
}
j2 = i;
}
acVar.a(j, j2, 1L);
}
static int e() {
if (f82339b.equals("mm")) {
return 30;
}
if (f82339b.equals("tools")) {
return 36;
}
if (f82339b.equals("toolsmp")) {
return 42;
}
if (f82339b.equals("appbrand")) {
return 48;
}
return f82339b.equals("support") ? 54 : -1;
}
public static void e(long j) {
ac acVar = f82341d;
if (acVar == null || acVar == null || j <= 0 || j >= 600000) {
return;
}
acVar.a(ag.CTRL_INDEX, ag.CTRL_INDEX, 27, 28, 1, (int) j);
}
public static void e(WebView.c cVar) {
int i;
if (f82341d == null) {
return;
}
int i2 = AnonymousClass1.f82342a[cVar.ordinal()];
if (i2 == 1) {
i = 86;
} else if (i2 == 2) {
i = 85;
} else if (i2 != 3) {
return;
} else {
i = 84;
}
f82341d.a(577L, i, 1L);
}
public static void e(String str) {
ac acVar;
long j;
if (f82341d == null) {
return;
}
if (XWalkEnvironment.XWALK_PLUGIN_NAME_PPT.equals(str)) {
acVar = f82341d;
j = 1068;
} else if (XWalkEnvironment.XWALK_PLUGIN_NAME_PDF.equals(str)) {
acVar = f82341d;
j = 1071;
} else if (XWalkEnvironment.XWALK_PLUGIN_NAME_WORD.equals(str)) {
acVar = f82341d;
j = 1069;
} else {
if (!XWalkEnvironment.XWALK_PLUGIN_NAME_EXCEL.equals(str)) {
if (XWalkEnvironment.XWALK_PLUGIN_NAME_OFFICE.equals(str)) {
f82341d.a(1544L, 66L, 1L);
return;
}
return;
}
acVar = f82341d;
j = 1070;
}
acVar.a(j, 66L, 1L);
}
public static void e(String str, boolean z) {
ac acVar;
long j;
if (f82341d == null) {
return;
}
int i = z ? 59 : 65;
if (XWalkEnvironment.XWALK_PLUGIN_NAME_PPT.equals(str)) {
acVar = f82341d;
j = 1068;
} else if (XWalkEnvironment.XWALK_PLUGIN_NAME_PDF.equals(str)) {
acVar = f82341d;
j = 1071;
} else if (XWalkEnvironment.XWALK_PLUGIN_NAME_WORD.equals(str)) {
acVar = f82341d;
j = 1069;
} else {
if (!XWalkEnvironment.XWALK_PLUGIN_NAME_EXCEL.equals(str)) {
if (XWalkEnvironment.XWALK_PLUGIN_NAME_OFFICE.equals(str)) {
f82341d.a(1544L, i, 1L);
return;
}
return;
}
acVar = f82341d;
j = 1070;
}
acVar.a(j, i, 1L);
}
public static void f() {
int i = 75;
int i2 = 0;
if (f82339b.equals("mm")) {
i2 = 74;
i = 79;
} else if (f82339b.equals("tools")) {
i2 = 70;
} else if (f82339b.equals("toolsmp")) {
i2 = 71;
} else if (f82339b.equals("appbrand")) {
i2 = 72;
i = 77;
} else if (f82339b.equals("support")) {
i2 = 73;
i = 78;
} else {
i = 0;
}
if (i2 != 0) {
f82341d.a(903L, i2, 1L);
}
if (i != 0) {
a(903, i);
}
}
public static void f(long j) {
ac acVar = f82341d;
if (acVar == null || acVar == null || j <= 0 || j >= 120000) {
return;
}
acVar.a(ag.CTRL_INDEX, ag.CTRL_INDEX, 16, 17, 1, (int) j);
}
public static void f(String str, boolean z) {
a(1511L, (z ? 0 : 100) + (e.b(str).b() % 100), 1L);
}
public static void g() {
int i;
if (e) {
return;
}
if ("toolsmp".equals(f82339b)) {
if (!b()) {
i = c() ? 108 : 106;
}
a(903, i);
}
int e2 = e();
int ordinal = WebView.getCurWebType().ordinal() - 1;
if (e2 < 30 || ordinal < 0) {
return;
}
e = true;
a(903, e2 + 3 + ordinal);
}
public static void h() {
ac acVar = f82341d;
if (acVar != null) {
acVar.a(577L, 1L, 1L);
}
}
public static void i() {
ac acVar = f82341d;
if (acVar != null) {
acVar.a(577L, 46L, 1L);
}
}
public static void j() {
ac acVar = f82341d;
if (acVar != null) {
acVar.a(577L, 47L, 1L);
}
}
public static void k() {
ac acVar = f82341d;
if (acVar != null) {
acVar.a(577L, 52L, 1L);
}
}
public static void l() {
ac acVar = f82341d;
if (acVar != null) {
acVar.a(577L, 53L, 1L);
}
}
public static void m() {
ac acVar = f82341d;
if (acVar != null) {
acVar.a(577L, 54L, 1L);
}
}
public static void n() {
ac acVar = f82341d;
if (acVar != null) {
acVar.a(577L, 55L, 1L);
}
}
public static void o() {
ac acVar = f82341d;
if (acVar != null) {
acVar.a(577L, 56L, 1L);
}
}
public static void p() {
ac acVar = f82341d;
if (acVar != null) {
acVar.a(577L, 57L, 1L);
}
}
public static void q() {
ac acVar = f82341d;
if (acVar != null) {
acVar.a(577L, 58L, 1L);
}
}
public static void r() {
ac acVar = f82341d;
if (acVar != null) {
acVar.a(577L, 175L, 1L);
}
}
public static void s() {
ac acVar = f82341d;
if (acVar != null) {
acVar.a(577L, 169L, 1L);
}
}
public static void t() {
ac acVar = f82341d;
if (acVar != null) {
acVar.a(577L, 174L, 1L);
}
}
public static void u() {
ac acVar = f82341d;
if (acVar != null) {
acVar.a(577L, 59L, 1L);
}
}
public static void v() {
ac acVar = f82341d;
if (acVar != null) {
acVar.a(577L, 167L, 1L);
}
}
public static String w() {
return UUID.randomUUID().toString().replace(Constants.ACCEPT_TIME_SEPARATOR_SERVER, "");
}
public static void x() {
ac acVar = f82341d;
if (acVar != null) {
acVar.a(577L, 9L, 1L);
}
}
public static void y() {
ac acVar = f82341d;
if (acVar != null) {
acVar.a(577L, 10L, 1L);
}
}
public static void z() {
ac acVar = f82341d;
if (acVar != null) {
acVar.a(577L, 60L, 1L);
}
}
}