TIM v2.3.1版本的 MD5 值为:d6957e3ee7ce901ccc491cefdea0da8c

以下内容为反编译后的 ARMapConfig.java 源代码,内容仅作参考


package com.tencent.mobileqq.armap.config;

import android.os.Parcel;
import android.os.Parcelable;
import android.text.TextUtils;
import android.util.Xml;
import com.tencent.common.app.BaseApplicationImpl;
import com.tencent.mobileqq.service.message.MessageCache;
import com.tencent.open.business.base.Constants;
import com.tencent.qphone.base.util.BaseApplication;
import com.tencent.qphone.base.util.QLog;
import com.tencent.sonic.sdk.SonicSession;
import cooperation.qwallet.plugin.QWalletHelper;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.TimeZone;
import org.xmlpull.v1.XmlPullParser;
public class ARMapConfig implements Parcelable, Serializable {
    public static final int DEFAULT_503_TIMEOUT = 120;
    public static final int DEFAULT_FAIL_TIMEOUT = 20;
    public static final int DEFAULT_MAPUPDATEFLAG = 0;
    private static final int f88279a = 0;
    private static final String f19916a = "armap_config_";
    private static SimpleDateFormat f19917a = null;
    private static final int f88280b = 1;
    private static final String f19919b = "APMapConfig";
    private static final int f88281c = 2;
    private static final int d = 3;
    static SimpleDateFormat sSdf;
    static SimpleDateFormat sSdf1;
    public ResInfo bgMusic;
    public List cheatApps;
    public ResInfo commonRes;
    public long curfewBeginTime;
    public long curfewEndTime;
    public ResInfo mapConfig;
    public ResInfo mapDaySkin;
    public int mapDownloadTimeout;
    public int mapDownloadTimeoutFor503;
    public String mapEngineSoMd5;
    public int mapForceUpdate;
    public int mapLocateFreq;
    public ResInfo mapNightSkin;
    public long mapPreLoadEndTime;
    public int mapPreLoadNetType;
    public long mapPreloadBeginTime;
    public long mapTopRightBeginTime;
    public long mapTopRightEndTime;
    public List mapTopRightRedPointDisplayTimes;
    public String mapTopRightUrl;
    public ResInfo openBoxRes;
    public String pccBid;
    public List poiModels;
    public long preLoadGridMapBeginTime;
    public long preLoadGridMapEndTime;
    public String shopScanTips;
    public ResInfo skySkin;
    public long starEntranceEndTime;
    public long starEntranceStartTime;
    public List starInfos;
    public int starRightButtonShow;
    public String starWebUrl;
    public ResInfo treeSkin;
    public int version;
    public WealthGodConfig wealthGodConfig;
    public List wordingList;
    public static final Parcelable.Creator CREATOR = new ptd();
    private static final String[] f19918a = {"", "http://hbd.url.cn/myapp/qq_desk/lbsredbag/712f1a446d7ab4a7b6576334b9f4720albs_redbag.zip?md5=712f1a446d7ab4a7b6576334b9f4720a", "http://hbd.url.cn/myapp/qq_desk/lbsredbag/5a4b272703cb035a3b38263ba9e979e5lbs_multiredbag.zip?md5=5a4b272703cb035a3b38263ba9e979e5", "http://hbd.url.cn/myapp/qq_desk/lbsredbag/5a4b272703cb035a3b38263ba9e979e5lbs_multiredbag.zip?md5=5a4b272703cb035a3b38263ba9e979e5", "http://hbd.url.cn/myapp/qq_desk/lbsredbag/712f1a446d7ab4a7b6576334b9f4720albs_redbag.zip?md5=712f1a446d7ab4a7b6576334b9f4720a", "http://hbd.url.cn/myapp/qq_desk/lbsredbag/3990a29daca96ecbd063b4088540b104lbs_top.zip?md5=3990a29daca96ecbd063b4088540b104"};

    public ARMapConfig() {
        this.curfewBeginTime = 82800000L;
        this.curfewEndTime = 23400000L;
        this.mapDownloadTimeoutFor503 = 120;
        this.mapDownloadTimeout = 20;
        this.mapForceUpdate = 0;
        this.poiModels = new ArrayList();
        this.wordingList = new ArrayList();
        this.starInfos = new ArrayList();
    }

    public ARMapConfig(Parcel parcel) {
        this.curfewBeginTime = 82800000L;
        this.curfewEndTime = 23400000L;
        this.mapDownloadTimeoutFor503 = 120;
        this.mapDownloadTimeout = 20;
        this.mapForceUpdate = 0;
        this.version = parcel.readInt();
        this.pccBid = parcel.readString();
        this.mapLocateFreq = parcel.readInt();
        this.curfewBeginTime = parcel.readLong();
        this.curfewEndTime = parcel.readLong();
        this.mapTopRightBeginTime = parcel.readLong();
        this.mapTopRightEndTime = parcel.readLong();
        this.mapTopRightUrl = parcel.readString();
        this.mapTopRightRedPointDisplayTimes = parcel.readArrayList(Long.class.getClassLoader());
        this.mapConfig = (ResInfo) parcel.readParcelable(ResInfo.class.getClassLoader());
        this.mapDaySkin = (ResInfo) parcel.readParcelable(ResInfo.class.getClassLoader());
        this.mapNightSkin = (ResInfo) parcel.readParcelable(ResInfo.class.getClassLoader());
        this.skySkin = (ResInfo) parcel.readParcelable(ResInfo.class.getClassLoader());
        this.treeSkin = (ResInfo) parcel.readParcelable(ResInfo.class.getClassLoader());
        this.commonRes = (ResInfo) parcel.readParcelable(ResInfo.class.getClassLoader());
        this.bgMusic = (ResInfo) parcel.readParcelable(ResInfo.class.getClassLoader());
        this.poiModels = parcel.readArrayList(ResInfo.class.getClassLoader());
        this.cheatApps = parcel.readArrayList(String.class.getClassLoader());
        this.wealthGodConfig = (WealthGodConfig) parcel.readParcelable(WealthGodConfig.class.getClassLoader());
        this.wordingList = parcel.readArrayList(ResInfo.class.getClassLoader());
        this.mapDownloadTimeoutFor503 = parcel.readInt();
        this.mapDownloadTimeout = parcel.readInt();
        this.mapForceUpdate = parcel.readInt();
        this.mapPreloadBeginTime = parcel.readLong();
        this.mapPreLoadEndTime = parcel.readLong();
        this.mapPreLoadNetType = parcel.readInt();
        this.preLoadGridMapBeginTime = parcel.readLong();
        this.preLoadGridMapEndTime = parcel.readLong();
        this.starWebUrl = parcel.readString();
        this.starRightButtonShow = parcel.readInt();
        this.starInfos = parcel.readArrayList(StarInfo.class.getClassLoader());
        this.shopScanTips = parcel.readString();
    }

    public static ARMapConfig parse(String str) {
        int eventType;
        String str2;
        int i;
        int i2;
        int i3;
        int i4;
        int i5;
        int i6;
        int i7;
        String str3;
        int i8;
        if (TextUtils.isEmpty(str)) {
            return null;
        }
        XmlPullParser newPullParser = Xml.newPullParser();
        ARMapConfig aRMapConfig = new ARMapConfig();
        String str4 = null;
        String str5 = null;
        String str6 = "";
        ArrayList<ResInfo> arrayList = new ArrayList();
        ArrayList arrayList2 = new ArrayList();
        ArrayList arrayList3 = new ArrayList();
        ArrayList<ResInfo> arrayList4 = new ArrayList();
        try {
            newPullParser.setInput(new ByteArrayInputStream(str.getBytes()), "UTF-8");
            eventType = newPullParser.getEventType();
            str2 = "";
            i = -1;
            i2 = -1;
            i3 = -1;
            i4 = -1;
        } catch (Exception e) {
            if (QLog.isColorLevel()) {
            }
        }
        while (eventType != 1) {
            switch (eventType) {
                case 0:
                    int i9 = i4;
                    i5 = i3;
                    i6 = i2;
                    i7 = i;
                    str3 = str2;
                    i8 = i9;
                    continue;
                    eventType = newPullParser.next();
                    int i10 = i8;
                    str2 = str3;
                    i = i7;
                    i2 = i6;
                    i3 = i5;
                    i4 = i10;
                case 2:
                    String name = newPullParser.getName();
                    if (newPullParser.getDepth() != 2) {
                        if ("map".equalsIgnoreCase(str4)) {
                            if ("pccBid".equalsIgnoreCase(name)) {
                                aRMapConfig.pccBid = newPullParser.nextText();
                                int i11 = i4;
                                i5 = i3;
                                i6 = i2;
                                i7 = i;
                                str3 = str2;
                                i8 = i11;
                                continue;
                            } else if ("mapLocateFreq".equalsIgnoreCase(name)) {
                                aRMapConfig.mapLocateFreq = Integer.valueOf(newPullParser.nextText()).intValue();
                                int i12 = i4;
                                i5 = i3;
                                i6 = i2;
                                i7 = i;
                                str3 = str2;
                                i8 = i12;
                                continue;
                            } else if ("curfewBegin".equalsIgnoreCase(name)) {
                                aRMapConfig.curfewBeginTime = dayTime2Millis(newPullParser.nextText());
                                int i13 = i4;
                                i5 = i3;
                                i6 = i2;
                                i7 = i;
                                str3 = str2;
                                i8 = i13;
                                continue;
                            } else if ("curfewEnd".equalsIgnoreCase(name)) {
                                aRMapConfig.curfewEndTime = dayTime2Millis(newPullParser.nextText());
                                int i14 = i4;
                                i5 = i3;
                                i6 = i2;
                                i7 = i;
                                str3 = str2;
                                i8 = i14;
                                continue;
                            } else if ("mapDownloadTimeoutFor503".equalsIgnoreCase(name)) {
                                aRMapConfig.mapDownloadTimeoutFor503 = Integer.parseInt(newPullParser.nextText());
                                int i15 = i4;
                                i5 = i3;
                                i6 = i2;
                                i7 = i;
                                str3 = str2;
                                i8 = i15;
                                continue;
                            } else if ("mapDownloadTimeout".equalsIgnoreCase(name)) {
                                aRMapConfig.mapDownloadTimeout = Integer.parseInt(newPullParser.nextText());
                                int i16 = i4;
                                i5 = i3;
                                i6 = i2;
                                i7 = i;
                                str3 = str2;
                                i8 = i16;
                                continue;
                            } else if ("mapForceUpdate".equalsIgnoreCase(name)) {
                                aRMapConfig.mapForceUpdate = Integer.parseInt(newPullParser.nextText());
                                int i17 = i4;
                                i5 = i3;
                                i6 = i2;
                                i7 = i;
                                str3 = str2;
                                i8 = i17;
                                continue;
                            } else if ("mapEngineSoMd5".equalsIgnoreCase(name)) {
                                aRMapConfig.mapEngineSoMd5 = newPullParser.nextText();
                                int i18 = i4;
                                i5 = i3;
                                i6 = i2;
                                i7 = i;
                                str3 = str2;
                                i8 = i18;
                                continue;
                            } else if ("mapPreDownloadBeginTime".equals(name)) {
                                aRMapConfig.mapPreloadBeginTime = date2Millis1(newPullParser.nextText());
                                int i19 = i4;
                                i5 = i3;
                                i6 = i2;
                                i7 = i;
                                str3 = str2;
                                i8 = i19;
                                continue;
                            } else if ("mapPreDownloadEndTime".equals(name)) {
                                aRMapConfig.mapPreLoadEndTime = date2Millis1(newPullParser.nextText());
                                int i20 = i4;
                                i5 = i3;
                                i6 = i2;
                                i7 = i;
                                str3 = str2;
                                i8 = i20;
                                continue;
                            } else if ("mapPreDownloadNetType".equals(name)) {
                                aRMapConfig.mapPreLoadNetType = Integer.valueOf(newPullParser.nextText()).intValue();
                                int i21 = i4;
                                i5 = i3;
                                i6 = i2;
                                i7 = i;
                                str3 = str2;
                                i8 = i21;
                                continue;
                            } else if ("preDownGridMapBeginTime".equals(name)) {
                                aRMapConfig.preLoadGridMapBeginTime = data2Millis(newPullParser.nextText());
                                int i22 = i4;
                                i5 = i3;
                                i6 = i2;
                                i7 = i;
                                str3 = str2;
                                i8 = i22;
                                continue;
                            } else if ("preDownGridMapEndTime".equals(name)) {
                                aRMapConfig.preLoadGridMapEndTime = data2Millis(newPullParser.nextText());
                                int i23 = i4;
                                i5 = i3;
                                i6 = i2;
                                i7 = i;
                                str3 = str2;
                                i8 = i23;
                                continue;
                            }
                        } else if ("skin".equalsIgnoreCase(str4)) {
                            if ("skinDayId".equalsIgnoreCase(name)) {
                                int i24 = i4;
                                i5 = i3;
                                i6 = i2;
                                i7 = Integer.valueOf(newPullParser.nextText()).intValue();
                                str3 = str2;
                                i8 = i24;
                                continue;
                            } else if ("skinNightId".equalsIgnoreCase(name)) {
                                int i25 = i4;
                                i5 = i3;
                                i6 = Integer.valueOf(newPullParser.nextText()).intValue();
                                i7 = i;
                                str3 = str2;
                                i8 = i25;
                                continue;
                            } else if ("skinSkyId".equalsIgnoreCase(name)) {
                                int i26 = i4;
                                i5 = Integer.valueOf(newPullParser.nextText()).intValue();
                                i6 = i2;
                                i7 = i;
                                str3 = str2;
                                i8 = i26;
                                continue;
                            } else if ("skinTreeId".equalsIgnoreCase(name)) {
                                i5 = i3;
                                i6 = i2;
                                i7 = i;
                                str3 = str2;
                                i8 = Integer.valueOf(newPullParser.nextText()).intValue();
                                continue;
                            } else if ("mapConfig".equalsIgnoreCase(name)) {
                                str5 = "mapConfig";
                                int i27 = i4;
                                i5 = i3;
                                i6 = i2;
                                i7 = i;
                                str3 = str2;
                                i8 = i27;
                                continue;
                            } else if ("skinFiles".equalsIgnoreCase(name)) {
                                str5 = "skinFiles";
                                int i28 = i4;
                                i5 = i3;
                                i6 = i2;
                                i7 = i;
                                str3 = str2;
                                i8 = i28;
                                continue;
                            } else if ("skinSkyConfig".equalsIgnoreCase(name)) {
                                str5 = "skinSkyConfig";
                                int i29 = i4;
                                i5 = i3;
                                i6 = i2;
                                i7 = i;
                                str3 = str2;
                                i8 = i29;
                                continue;
                            } else if ("skinTreeConfig".equalsIgnoreCase(name)) {
                                str5 = "skinTreeConfig";
                                int i30 = i4;
                                i5 = i3;
                                i6 = i2;
                                i7 = i;
                                str3 = str2;
                                i8 = i30;
                                continue;
                            } else if ("mapConfig".equalsIgnoreCase(str5)) {
                                if ("url".equalsIgnoreCase(name)) {
                                    str6 = newPullParser.nextText();
                                    int i31 = i4;
                                    i5 = i3;
                                    i6 = i2;
                                    i7 = i;
                                    str3 = str2;
                                    i8 = i31;
                                    continue;
                                } else if ("md5".equalsIgnoreCase(name)) {
                                    int i32 = i4;
                                    i5 = i3;
                                    i6 = i2;
                                    i7 = i;
                                    str3 = newPullParser.nextText();
                                    i8 = i32;
                                    continue;
                                }
                            } else if ("skinFiles".equalsIgnoreCase(str5)) {
                                if ("skinFile".equalsIgnoreCase(name)) {
                                    arrayList.add(a(newPullParser, 2));
                                    int i33 = i4;
                                    i5 = i3;
                                    i6 = i2;
                                    i7 = i;
                                    str3 = str2;
                                    i8 = i33;
                                    continue;
                                }
                            } else if ("skinSkyConfig".equalsIgnoreCase(str5)) {
                                if ("skinFile".equals(name)) {
                                    arrayList2.add(a(newPullParser, 2));
                                    int i34 = i4;
                                    i5 = i3;
                                    i6 = i2;
                                    i7 = i;
                                    str3 = str2;
                                    i8 = i34;
                                    continue;
                                }
                            } else if ("skinTreeConfig".equalsIgnoreCase(str5) && "skinFile".equals(name)) {
                                arrayList3.add(a(newPullParser, 2));
                                int i35 = i4;
                                i5 = i3;
                                i6 = i2;
                                i7 = i;
                                str3 = str2;
                                i8 = i35;
                                continue;
                            }
                        } else if ("poi".equalsIgnoreCase(str4)) {
                            if ("model".equalsIgnoreCase(name)) {
                                aRMapConfig.poiModels.add(a(newPullParser, 3));
                                int i36 = i4;
                                i5 = i3;
                                i6 = i2;
                                i7 = i;
                                str3 = str2;
                                i8 = i36;
                                continue;
                            }
                        } else if ("cheatApp".equalsIgnoreCase(str4)) {
                            if ("android".equalsIgnoreCase(name)) {
                                aRMapConfig.cheatApps = a(newPullParser, "android", "app");
                                int i37 = i4;
                                i5 = i3;
                                i6 = i2;
                                i7 = i;
                                str3 = str2;
                                i8 = i37;
                                continue;
                            }
                        } else if ("commonRes".equalsIgnoreCase(str4)) {
                            if ("res".equals(name)) {
                                arrayList4.add(a(newPullParser, 1));
                                int i38 = i4;
                                i5 = i3;
                                i6 = i2;
                                i7 = i;
                                str3 = str2;
                                i8 = i38;
                                continue;
                            }
                        } else if ("qqWealthGod".equalsIgnoreCase(str4)) {
                            aRMapConfig.wealthGodConfig = m5363a(newPullParser);
                            int i39 = i4;
                            i5 = i3;
                            i6 = i2;
                            i7 = i;
                            str3 = str2;
                            i8 = i39;
                            continue;
                        } else if ("mapTopRightEnter".equalsIgnoreCase(str4)) {
                            if ("redirectUrl".equalsIgnoreCase(name)) {
                                aRMapConfig.mapTopRightUrl = newPullParser.nextText();
                                int i40 = i4;
                                i5 = i3;
                                i6 = i2;
                                i7 = i;
                                str3 = str2;
                                i8 = i40;
                                continue;
                            } else if ("beginTime".equalsIgnoreCase(name)) {
                                aRMapConfig.mapTopRightBeginTime = data2Millis(newPullParser.nextText());
                                int i41 = i4;
                                i5 = i3;
                                i6 = i2;
                                i7 = i;
                                str3 = str2;
                                i8 = i41;
                                continue;
                            } else if ("endTime".equalsIgnoreCase(name)) {
                                aRMapConfig.mapTopRightEndTime = data2Millis(newPullParser.nextText());
                                int i42 = i4;
                                i5 = i3;
                                i6 = i2;
                                i7 = i;
                                str3 = str2;
                                i8 = i42;
                                continue;
                            } else if ("redPointDisplayTimes".equalsIgnoreCase(name)) {
                                aRMapConfig.mapTopRightRedPointDisplayTimes = m5364a(newPullParser);
                                int i43 = i4;
                                i5 = i3;
                                i6 = i2;
                                i7 = i;
                                str3 = str2;
                                i8 = i43;
                                continue;
                            }
                        } else if ("wordings".equalsIgnoreCase(str4)) {
                            if ("wording".equalsIgnoreCase(name)) {
                                str5 = "wording";
                                int i44 = i4;
                                i5 = i3;
                                i6 = i2;
                                i7 = i;
                                str3 = str2;
                                i8 = i44;
                                continue;
                            } else if ("wording".equalsIgnoreCase(str5)) {
                                aRMapConfig.wordingList.add(a(newPullParser, 4));
                                int i45 = i4;
                                i5 = i3;
                                i6 = i2;
                                i7 = i;
                                str3 = str2;
                                i8 = i45;
                                continue;
                            }
                        } else if ("mapStarConfig".equalsIgnoreCase(str4)) {
                            if ("starWebUrl".equalsIgnoreCase(name)) {
                                aRMapConfig.starWebUrl = newPullParser.nextText();
                                int i46 = i4;
                                i5 = i3;
                                i6 = i2;
                                i7 = i;
                                str3 = str2;
                                i8 = i46;
                                continue;
                            } else if ("isShow".equalsIgnoreCase(name)) {
                                aRMapConfig.starRightButtonShow = Integer.parseInt(newPullParser.nextText());
                                int i47 = i4;
                                i5 = i3;
                                i6 = i2;
                                i7 = i;
                                str3 = str2;
                                i8 = i47;
                                continue;
                            } else if ("beginTime".equalsIgnoreCase(name)) {
                                aRMapConfig.starEntranceStartTime = data2Millis(newPullParser.nextText());
                                int i48 = i4;
                                i5 = i3;
                                i6 = i2;
                                i7 = i;
                                str3 = str2;
                                i8 = i48;
                                continue;
                            } else if ("endTime".equalsIgnoreCase(name)) {
                                aRMapConfig.starEntranceEndTime = data2Millis(newPullParser.nextText());
                                int i49 = i4;
                                i5 = i3;
                                i6 = i2;
                                i7 = i;
                                str3 = str2;
                                i8 = i49;
                                continue;
                            } else if ("Star".equalsIgnoreCase(name)) {
                                aRMapConfig.starInfos.add(a(newPullParser));
                                int i50 = i4;
                                i5 = i3;
                                i6 = i2;
                                i7 = i;
                                str3 = str2;
                                i8 = i50;
                                continue;
                            }
                        } else if ("ShopScan".equalsIgnoreCase(str4) && "tips".equalsIgnoreCase(name)) {
                            aRMapConfig.shopScanTips = newPullParser.nextText();
                            int i51 = i4;
                            i5 = i3;
                            i6 = i2;
                            i7 = i;
                            str3 = str2;
                            i8 = i51;
                            continue;
                        }
                        if (QLog.isColorLevel()) {
                            return null;
                        }
                        QLog.d(f19919b, 2, "parse exception:" + e.toString());
                        return null;
                    }
                    str4 = name;
                    int i52 = i3;
                    i6 = i2;
                    i7 = i;
                    str3 = str2;
                    i8 = i4;
                    i5 = i52;
                    continue;
                    eventType = newPullParser.next();
                    int i102 = i8;
                    str2 = str3;
                    i = i7;
                    i2 = i6;
                    i3 = i5;
                    i4 = i102;
                    break;
                case 4:
                    int i53 = i4;
                    i5 = i3;
                    i6 = i2;
                    i7 = i;
                    str3 = str2;
                    i8 = i53;
                    continue;
                    eventType = newPullParser.next();
                    int i1022 = i8;
                    str2 = str3;
                    i = i7;
                    i2 = i6;
                    i3 = i5;
                    i4 = i1022;
            }
            int i54 = i4;
            i5 = i3;
            i6 = i2;
            i7 = i;
            str3 = str2;
            i8 = i54;
            continue;
            eventType = newPullParser.next();
            int i10222 = i8;
            str2 = str3;
            i = i7;
            i2 = i6;
            i3 = i5;
            i4 = i10222;
        }
        if (!TextUtils.isEmpty(str2) && !TextUtils.isEmpty(str6)) {
            aRMapConfig.mapConfig = new ResInfo(str6, str2, -1);
        }
        if (arrayList != null) {
            for (ResInfo resInfo : arrayList) {
                if (i == resInfo.extra) {
                    aRMapConfig.mapDaySkin = resInfo;
                }
                if (i2 == resInfo.extra) {
                    aRMapConfig.mapNightSkin = resInfo;
                }
            }
        }
        if (arrayList3 != null) {
            Iterator it = arrayList3.iterator();
            while (true) {
                if (it.hasNext()) {
                    ResInfo resInfo2 = (ResInfo) it.next();
                    if (i4 == resInfo2.extra) {
                        aRMapConfig.treeSkin = resInfo2;
                    }
                }
            }
        }
        if (arrayList2 != null) {
            Iterator it2 = arrayList2.iterator();
            while (true) {
                if (it2.hasNext()) {
                    ResInfo resInfo3 = (ResInfo) it2.next();
                    if (i3 == resInfo3.extra) {
                        aRMapConfig.skySkin = resInfo3;
                    }
                }
            }
        }
        if (arrayList4 != null) {
            for (ResInfo resInfo4 : arrayList4) {
                if (resInfo4.extra == 2) {
                    aRMapConfig.bgMusic = resInfo4;
                }
                if (resInfo4.extra == 1) {
                    aRMapConfig.commonRes = resInfo4;
                }
                if (resInfo4.extra == 3) {
                    aRMapConfig.openBoxRes = resInfo4;
                }
            }
        }
        if (QLog.isColorLevel()) {
            QLog.d(f19919b, 2, "parse:" + aRMapConfig);
        }
        return aRMapConfig;
    }

    private static List m5364a(XmlPullParser xmlPullParser) {
        ArrayList arrayList = new ArrayList();
        for (String str : a(xmlPullParser, "redPointDisplayTimes", "beginTime")) {
            arrayList.add(Long.valueOf(data2Millis(str)));
        }
        return arrayList;
    }

    private static ResInfo a(XmlPullParser xmlPullParser, int i) {
        ResInfo resInfo = new ResInfo();
        boolean z = false;
        try {
            int eventType = xmlPullParser.getEventType();
            while (!z) {
                switch (eventType) {
                    case 2:
                        String name = xmlPullParser.getName();
                        if (i == 2) {
                            if ("skinId".equalsIgnoreCase(name)) {
                                resInfo.extra = Integer.valueOf(xmlPullParser.nextText()).intValue();
                                continue;
                            } else if ("url".equalsIgnoreCase(name)) {
                                resInfo.url = xmlPullParser.nextText();
                                continue;
                            } else if ("md5".equalsIgnoreCase(name)) {
                                resInfo.md5 = xmlPullParser.nextText();
                                continue;
                            } else {
                                continue;
                            }
                        } else if (i == 1) {
                            if ("type".equalsIgnoreCase(name)) {
                                resInfo.extra = Integer.valueOf(xmlPullParser.nextText()).intValue();
                                continue;
                            } else if ("url".equalsIgnoreCase(name)) {
                                resInfo.url = xmlPullParser.nextText();
                                continue;
                            } else if ("md5".equalsIgnoreCase(name)) {
                                resInfo.md5 = xmlPullParser.nextText();
                                continue;
                            } else {
                                continue;
                            }
                        } else if (i == 3) {
                            if ("url".equalsIgnoreCase(name)) {
                                resInfo.url = xmlPullParser.nextText();
                                continue;
                            } else if ("md5".equalsIgnoreCase(name)) {
                                resInfo.md5 = xmlPullParser.nextText();
                                continue;
                            } else if (SonicSession.WEB_RESPONSE_LAST_IS_RED_PRELOAD.equalsIgnoreCase(name)) {
                                resInfo.isPreload = Integer.valueOf(xmlPullParser.nextText()).intValue();
                                continue;
                            } else if ("resType".equalsIgnoreCase(name)) {
                                String nextText = xmlPullParser.nextText();
                                if ("single".equalsIgnoreCase(nextText)) {
                                    resInfo.extra = 1;
                                    continue;
                                } else if ("two".equalsIgnoreCase(nextText)) {
                                    resInfo.extra = 2;
                                    continue;
                                } else if ("multi".equalsIgnoreCase(nextText)) {
                                    resInfo.extra = 3;
                                    continue;
                                } else if ("lbstop".equalsIgnoreCase(nextText)) {
                                    resInfo.extra = 5;
                                    continue;
                                } else if ("disable".equalsIgnoreCase(nextText)) {
                                    resInfo.extra = 4;
                                    continue;
                                } else {
                                    continue;
                                }
                            } else {
                                continue;
                            }
                        } else if (i == 4) {
                            if ("taskStatus".equalsIgnoreCase(name)) {
                                resInfo.extra = Integer.valueOf(xmlPullParser.nextText()).intValue();
                                continue;
                            } else if ("text".equalsIgnoreCase(name)) {
                                resInfo.url = xmlPullParser.nextText();
                                continue;
                            } else {
                                continue;
                            }
                        } else if (i != 5) {
                            continue;
                        } else if ("url".equalsIgnoreCase(name)) {
                            resInfo.url = xmlPullParser.nextText();
                            continue;
                        } else if ("md5".equalsIgnoreCase(name)) {
                            resInfo.md5 = xmlPullParser.nextText();
                            continue;
                        } else {
                            continue;
                        }
                    case 3:
                        String name2 = xmlPullParser.getName();
                        if (i == 2) {
                            if ("skinFile".equalsIgnoreCase(name2)) {
                                z = true;
                                continue;
                            } else {
                                continue;
                            }
                        } else if (i == 1) {
                            if ("res".equalsIgnoreCase(name2)) {
                                z = true;
                                continue;
                            } else {
                                continue;
                            }
                        } else if (i == 3) {
                            if ("model".equalsIgnoreCase(name2)) {
                                z = true;
                                continue;
                            } else {
                                continue;
                            }
                        } else if (i == 4) {
                            if ("wording".equalsIgnoreCase(name2)) {
                                z = true;
                                continue;
                            } else {
                                continue;
                            }
                        } else if (i == 5 && "res".equalsIgnoreCase(name2)) {
                            z = true;
                            continue;
                        }
                        break;
                }
                eventType = xmlPullParser.next();
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
        return resInfo;
    }

    private static List a(XmlPullParser xmlPullParser, String str, String str2) {
        ArrayList arrayList = new ArrayList();
        boolean z = false;
        try {
            int eventType = xmlPullParser.getEventType();
            while (!z) {
                switch (eventType) {
                    case 2:
                        if (xmlPullParser.getName().equalsIgnoreCase(str2)) {
                            arrayList.add(xmlPullParser.nextText());
                            continue;
                        } else {
                            continue;
                        }
                    case 3:
                        if (str.equalsIgnoreCase(xmlPullParser.getName())) {
                            z = true;
                            continue;
                        } else {
                            continue;
                        }
                }
                eventType = xmlPullParser.next();
            }
        } catch (Exception e) {
        }
        return arrayList;
    }

    private static WealthGodConfig m5363a(XmlPullParser xmlPullParser) {
        boolean z;
        String str;
        WealthGodConfig wealthGodConfig = new WealthGodConfig();
        wealthGodConfig.actSchedule = new ArrayList();
        try {
            int eventType = xmlPullParser.getEventType();
            boolean z2 = false;
            String str2 = "";
            while (!z2) {
                switch (eventType) {
                    case 0:
                        String str3 = str2;
                        z = z2;
                        str = str3;
                        continue;
                        eventType = xmlPullParser.next();
                        String str4 = str;
                        z2 = z;
                        str2 = str4;
                    case 2:
                        String name = xmlPullParser.getName();
                        if ("enterStartTime".equalsIgnoreCase(name)) {
                            wealthGodConfig.enterOpenTime = data2Millis(xmlPullParser.nextText());
                            String str5 = str2;
                            z = z2;
                            str = str5;
                            continue;
                        } else if ("enterEndTime".equalsIgnoreCase(name)) {
                            wealthGodConfig.enterCloseTime = data2Millis(xmlPullParser.nextText());
                            String str6 = str2;
                            z = z2;
                            str = str6;
                            continue;
                        } else if ("permanentLedBeginTime".equalsIgnoreCase(name)) {
                            wealthGodConfig.permanentLedBeginTime = dayTime2Ms(xmlPullParser.nextText());
                            String str7 = str2;
                            z = z2;
                            str = str7;
                            continue;
                        } else if ("permanentLedEndTime".equalsIgnoreCase(name)) {
                            wealthGodConfig.permanentLedEndTime = dayTime2Ms(xmlPullParser.nextText());
                            String str8 = str2;
                            z = z2;
                            str = str8;
                            continue;
                        } else if ("splashLight".equalsIgnoreCase(name)) {
                            wealthGodConfig.splashLight = Integer.valueOf(xmlPullParser.nextText()).intValue();
                            String str9 = str2;
                            z = z2;
                            str = str9;
                            continue;
                        } else if ("pendantSwitcher".equalsIgnoreCase(name)) {
                            wealthGodConfig.pendantSwitcher = Integer.valueOf(xmlPullParser.nextText()).intValue();
                            String str10 = str2;
                            z = z2;
                            str = str10;
                            continue;
                        } else if ("showSpecialLoadingPage".equalsIgnoreCase(name)) {
                            wealthGodConfig.showSpecialLoadingPage = Integer.valueOf(xmlPullParser.nextText()).intValue();
                            String str11 = str2;
                            z = z2;
                            str = str11;
                            continue;
                        } else if ("loadingPageInfoExpireDuration".equalsIgnoreCase(name)) {
                            wealthGodConfig.loadingPageInfoExpireDuration = Integer.valueOf(xmlPullParser.nextText()).intValue() * 1000;
                            String str12 = str2;
                            z = z2;
                            str = str12;
                            continue;
                        } else if ("showDailyPendantPercent".equalsIgnoreCase(name)) {
                            wealthGodConfig.showDailyPendantPercent = Integer.valueOf(xmlPullParser.nextText()).intValue();
                            String str13 = str2;
                            z = z2;
                            str = str13;
                            continue;
                        } else if ("pendantDisplayDuration".equalsIgnoreCase(name)) {
                            wealthGodConfig.pendantDisplayDuration = Integer.valueOf(xmlPullParser.nextText()).intValue() * 1000;
                            String str14 = str2;
                            z = z2;
                            str = str14;
                            continue;
                        } else if ("pendantShowTime".equalsIgnoreCase(name)) {
                            wealthGodConfig.pendantPreShowGap = Integer.valueOf(xmlPullParser.nextText()).intValue() * 1000;
                            String str15 = str2;
                            z = z2;
                            str = str15;
                            continue;
                        } else if ("locateCheckTime".equalsIgnoreCase(name)) {
                            wealthGodConfig.locatePreCheckGap = Integer.valueOf(xmlPullParser.nextText()).intValue() * 1000;
                            String str16 = str2;
                            z = z2;
                            str = str16;
                            continue;
                        } else if ("locateFrequency".equalsIgnoreCase(name)) {
                            wealthGodConfig.locateFrequency = Integer.valueOf(xmlPullParser.nextText()).intValue() * 1000;
                            String str17 = str2;
                            z = z2;
                            str = str17;
                            continue;
                        } else if ("pbReqInterval".equalsIgnoreCase(name)) {
                            wealthGodConfig.pbReqInterval = Integer.valueOf(xmlPullParser.nextText()).intValue() * 1000;
                            String str18 = str2;
                            z = z2;
                            str = str18;
                            continue;
                        } else if ("resUrl".equalsIgnoreCase(name)) {
                            wealthGodConfig.resUrl = xmlPullParser.nextText();
                            String str19 = str2;
                            z = z2;
                            str = str19;
                            continue;
                        } else if ("resMd5".equalsIgnoreCase(name)) {
                            wealthGodConfig.resMd5 = xmlPullParser.nextText();
                            String str20 = str2;
                            z = z2;
                            str = str20;
                            continue;
                        } else if ("processTips".equalsIgnoreCase(name)) {
                            wealthGodConfig.processTips = xmlPullParser.nextText();
                            String str21 = str2;
                            z = z2;
                            str = str21;
                            continue;
                        } else if ("countdownTips".equalsIgnoreCase(name)) {
                            wealthGodConfig.countdownTips = xmlPullParser.nextText();
                            String str22 = str2;
                            z = z2;
                            str = str22;
                            continue;
                        } else if ("noBeginTips".equalsIgnoreCase(name)) {
                            wealthGodConfig.noBeginTips = xmlPullParser.nextText();
                            String str23 = str2;
                            z = z2;
                            str = str23;
                            continue;
                        } else if ("endTips".equalsIgnoreCase(name)) {
                            wealthGodConfig.endTips = xmlPullParser.nextText();
                            String str24 = str2;
                            z = z2;
                            str = str24;
                            continue;
                        } else if ("errorTips".equalsIgnoreCase(name)) {
                            wealthGodConfig.errorTips = xmlPullParser.nextText();
                            String str25 = str2;
                            z = z2;
                            str = str25;
                            continue;
                        } else if ("curfewWarning".equalsIgnoreCase(name)) {
                            wealthGodConfig.curfewWarning = xmlPullParser.nextText();
                            String str26 = str2;
                            z = z2;
                            str = str26;
                            continue;
                        } else if ("specialLoadingPageWording".equalsIgnoreCase(name)) {
                            wealthGodConfig.specialLoadingPageWording = xmlPullParser.nextText();
                            String str27 = str2;
                            z = z2;
                            str = str27;
                            continue;
                        } else if ("topBarCloudUrl".equalsIgnoreCase(name)) {
                            wealthGodConfig.topBarCloudUrl = xmlPullParser.nextText();
                            String str28 = str2;
                            z = z2;
                            str = str28;
                            continue;
                        } else if ("dragRefreshAfterBegin".equalsIgnoreCase(name)) {
                            wealthGodConfig.dragRefreshAfterBegin = Long.valueOf(xmlPullParser.nextText()).longValue() * 1000;
                            String str29 = str2;
                            z = z2;
                            str = str29;
                            continue;
                        } else if ("actSchedule".equalsIgnoreCase(name)) {
                            z = z2;
                            str = "actSchedule";
                            continue;
                        } else if ("actSchedule".equalsIgnoreCase(str2) && Constants.f36968t.equalsIgnoreCase(name)) {
                            WealthGodActTime m5362a = m5362a(xmlPullParser);
                            if (m5362a != null) {
                                wealthGodConfig.actSchedule.add(m5362a);
                            }
                            String str30 = str2;
                            z = z2;
                            str = str30;
                            continue;
                        }
                        eventType = xmlPullParser.next();
                        String str42 = str;
                        z2 = z;
                        str2 = str42;
                        break;
                    case 3:
                        String name2 = xmlPullParser.getName();
                        if ("qqWealthGod".equalsIgnoreCase(name2)) {
                            z2 = true;
                        }
                        if ("actSchedule".equalsIgnoreCase(name2)) {
                            z = z2;
                            str = "";
                            continue;
                            eventType = xmlPullParser.next();
                            String str422 = str;
                            z2 = z;
                            str2 = str422;
                        }
                        break;
                    case 4:
                        String str31 = str2;
                        z = z2;
                        str = str31;
                        continue;
                        eventType = xmlPullParser.next();
                        String str4222 = str;
                        z2 = z;
                        str2 = str4222;
                }
                String str32 = str2;
                z = z2;
                str = str32;
                continue;
                eventType = xmlPullParser.next();
                String str42222 = str;
                z2 = z;
                str2 = str42222;
            }
        } catch (Exception e) {
            if (QLog.isColorLevel()) {
                QLog.d(f19919b, 2, "parseWealthGodConfig exception:" + e.getMessage());
            }
        }
        return wealthGodConfig;
    }

    private static WealthGodActTime m5362a(XmlPullParser xmlPullParser) {
        Exception e;
        String str;
        String str2;
        String str3;
        String nextText;
        boolean z;
        try {
            boolean z2 = false;
            int eventType = xmlPullParser.getEventType();
            str2 = null;
            str = null;
            while (!z2) {
                switch (eventType) {
                    case 0:
                        boolean z3 = z2;
                        str3 = str;
                        nextText = str2;
                        z = z3;
                        break;
                    case 1:
                    default:
                        boolean z4 = z2;
                        str3 = str;
                        nextText = str2;
                        z = z4;
                        break;
                    case 2:
                        try {
                            String name = xmlPullParser.getName();
                            if ("startTime".equalsIgnoreCase(name)) {
                                boolean z5 = z2;
                                str3 = xmlPullParser.nextText();
                                nextText = str2;
                                z = z5;
                                break;
                            } else {
                                if ("endTime".equalsIgnoreCase(name)) {
                                    boolean z6 = z2;
                                    str3 = str;
                                    nextText = xmlPullParser.nextText();
                                    z = z6;
                                    break;
                                }
                                boolean z42 = z2;
                                str3 = str;
                                nextText = str2;
                                z = z42;
                                break;
                            }
                        } catch (Exception e2) {
                            e = e2;
                            if (QLog.isColorLevel()) {
                                QLog.d(f19919b, 2, "parseActTime exception:" + e.getMessage());
                            }
                            if (TextUtils.isEmpty(str)) {
                                break;
                            }
                            return null;
                        }
                    case 3:
                        if (Constants.f36968t.equalsIgnoreCase(xmlPullParser.getName())) {
                            str3 = str;
                            nextText = str2;
                            z = true;
                            break;
                        }
                        boolean z422 = z2;
                        str3 = str;
                        nextText = str2;
                        z = z422;
                        break;
                    case 4:
                        boolean z7 = z2;
                        str3 = str;
                        nextText = str2;
                        z = z7;
                        break;
                }
                try {
                    eventType = xmlPullParser.next();
                    boolean z8 = z;
                    str2 = nextText;
                    str = str3;
                    z2 = z8;
                } catch (Exception e3) {
                    str2 = nextText;
                    str = str3;
                    e = e3;
                    if (QLog.isColorLevel()) {
                    }
                    if (TextUtils.isEmpty(str)) {
                    }
                    return null;
                }
            }
        } catch (Exception e4) {
            e = e4;
            str = null;
            str2 = null;
        }
        if (!TextUtils.isEmpty(str) || TextUtils.isEmpty(str2)) {
            return null;
        }
        WealthGodActTime wealthGodActTime = new WealthGodActTime();
        wealthGodActTime.beginTime = data2Millis(str);
        wealthGodActTime.endTime = data2Millis(str2);
        return wealthGodActTime;
    }

    private static StarInfo a(XmlPullParser xmlPullParser) {
        StarInfo starInfo = new StarInfo();
        boolean z = false;
        try {
            int eventType = xmlPullParser.getEventType();
            while (!z) {
                switch (eventType) {
                    case 2:
                        String name = xmlPullParser.getName();
                        if ("StarName".equalsIgnoreCase(name)) {
                            starInfo.StarName = xmlPullParser.nextText();
                            continue;
                        } else if ("starID".equalsIgnoreCase(name)) {
                            starInfo.starId = Integer.parseInt(xmlPullParser.nextText());
                            continue;
                        } else if ("ShareTitle".equalsIgnoreCase(name)) {
                            starInfo.ShareTitle = xmlPullParser.nextText();
                            continue;
                        } else if ("ShareSummary".equalsIgnoreCase(name)) {
                            starInfo.ShareSummary = xmlPullParser.nextText();
                            continue;
                        } else if ("ShareStructText".equalsIgnoreCase(name)) {
                            starInfo.ShareContent = xmlPullParser.nextText();
                            continue;
                        } else if ("res".equalsIgnoreCase(name)) {
                            starInfo.starResInfo = a(xmlPullParser, 5);
                            continue;
                        } else {
                            continue;
                        }
                    case 3:
                        if ("Star".equalsIgnoreCase(xmlPullParser.getName())) {
                            z = true;
                            continue;
                        } else {
                            continue;
                        }
                }
                eventType = xmlPullParser.next();
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
        return starInfo;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeInt(this.version);
        parcel.writeString(this.pccBid);
        parcel.writeInt(this.mapLocateFreq);
        parcel.writeLong(this.curfewBeginTime);
        parcel.writeLong(this.curfewEndTime);
        parcel.writeLong(this.mapTopRightBeginTime);
        parcel.writeLong(this.mapTopRightEndTime);
        parcel.writeString(this.mapTopRightUrl);
        parcel.writeList(this.mapTopRightRedPointDisplayTimes);
        parcel.writeParcelable(this.mapConfig, i);
        parcel.writeParcelable(this.mapDaySkin, i);
        parcel.writeParcelable(this.mapNightSkin, i);
        parcel.writeParcelable(this.skySkin, i);
        parcel.writeParcelable(this.treeSkin, i);
        parcel.writeParcelable(this.commonRes, i);
        parcel.writeParcelable(this.bgMusic, i);
        parcel.writeList(this.poiModels);
        parcel.writeList(this.cheatApps);
        parcel.writeParcelable(this.commonRes, i);
        parcel.writeParcelable(this.wealthGodConfig, i);
        parcel.writeList(this.wordingList);
        parcel.writeInt(this.mapDownloadTimeoutFor503);
        parcel.writeInt(this.mapDownloadTimeout);
        parcel.writeInt(this.mapForceUpdate);
        parcel.writeLong(this.mapPreloadBeginTime);
        parcel.writeLong(this.mapTopRightEndTime);
        parcel.writeInt(this.mapPreLoadNetType);
        parcel.writeLong(this.preLoadGridMapBeginTime);
        parcel.writeLong(this.preLoadGridMapEndTime);
        parcel.writeString(this.starWebUrl);
        parcel.writeInt(this.starRightButtonShow);
        parcel.writeList(this.starInfos);
        parcel.writeString(this.shopScanTips);
    }

    public class ResInfo implements Parcelable, Serializable {
        public static final Parcelable.Creator CREATOR = new pte();
        public static final int POI_TYPE_LBS_DISABLE = 4;
        public static final int POI_TYPE_LBS_DOUBLE = 2;
        public static final int POI_TYPE_LBS_MULTY = 3;
        public static final int POI_TYPE_LBS_SINGLE = 1;
        public static final int POI_TYPE_LBS_TOP = 5;
        public static final int POI_TYPE_NONE = 0;
        public static final int TYPE_RES_COMMON = 1;
        public static final int TYPE_RES_POI = 3;
        public static final int TYPE_RES_SKIN = 2;
        public static final int TYPE_RES_STAR = 5;
        public static final int TYPE_RES_WORDING = 4;
        public int extra;
        public int isPreload;
        public String md5;
        public String url;

        public ResInfo() {
            this.extra = -1;
            this.isPreload = 1;
        }

        public ResInfo(String str, String str2, int i) {
            this.extra = -1;
            this.isPreload = 1;
            this.url = str;
            this.md5 = str2;
            this.extra = i;
        }

        public ResInfo(Parcel parcel) {
            this.extra = -1;
            this.isPreload = 1;
            this.url = parcel.readString();
            this.md5 = parcel.readString();
            this.extra = parcel.readInt();
            this.isPreload = parcel.readInt();
        }

        public String toString() {
            StringBuilder sb = new StringBuilder("ResInfo::");
            sb.append("extra:").append(this.extra).append(",url:").append(this.url).append(" md5:").append(this.md5).append(" isPreload:").append(this.isPreload).append("\n");
            return sb.toString();
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel parcel, int i) {
            parcel.writeString(this.url);
            parcel.writeString(this.md5);
            parcel.writeInt(this.extra);
        }
    }

    public class WealthGodConfig implements Parcelable, Serializable {
        public static final Parcelable.Creator CREATOR = new pth();
        public List actSchedule;
        public String countdownTips;
        public String curfewWarning;
        public long dragRefreshAfterBegin;
        public String endTips;
        public long enterCloseTime;
        public long enterOpenTime;
        public String errorTips;
        public int loadingPageInfoExpireDuration;
        public int locateFrequency;
        public int locatePreCheckGap;
        public String noBeginTips;
        public int pbReqInterval;
        public int pendantDisplayDuration;
        public int pendantPreShowGap;
        public int pendantSwitcher;
        public long permanentLedBeginTime;
        public long permanentLedEndTime;
        public String processTips;
        public String resMd5;
        public String resUrl;
        public int showDailyPendantPercent;
        public int showSpecialLoadingPage;
        public String specialLoadingPageWording;
        public int splashLight;
        public String topBarCloudUrl;

        public WealthGodConfig() {
            this.splashLight = 1;
            this.pendantSwitcher = 1;
            this.dragRefreshAfterBegin = QWalletHelper.f98272a;
        }

        public WealthGodConfig(Parcel parcel) {
            this.splashLight = 1;
            this.pendantSwitcher = 1;
            this.dragRefreshAfterBegin = QWalletHelper.f98272a;
            this.enterOpenTime = parcel.readLong();
            this.enterCloseTime = parcel.readLong();
            this.permanentLedBeginTime = parcel.readLong();
            this.permanentLedEndTime = parcel.readLong();
            this.splashLight = parcel.readInt();
            this.pendantSwitcher = parcel.readInt();
            this.showSpecialLoadingPage = parcel.readInt();
            this.loadingPageInfoExpireDuration = parcel.readInt();
            this.showDailyPendantPercent = parcel.readInt();
            this.pendantDisplayDuration = parcel.readInt();
            this.pendantPreShowGap = parcel.readInt();
            this.locatePreCheckGap = parcel.readInt();
            this.locateFrequency = parcel.readInt();
            this.pbReqInterval = parcel.readInt();
            this.resUrl = parcel.readString();
            this.resMd5 = parcel.readString();
            this.processTips = parcel.readString();
            this.countdownTips = parcel.readString();
            this.noBeginTips = parcel.readString();
            this.endTips = parcel.readString();
            this.errorTips = parcel.readString();
            this.curfewWarning = parcel.readString();
            this.specialLoadingPageWording = parcel.readString();
            this.actSchedule = parcel.readArrayList(WealthGodActTime.class.getClassLoader());
            this.topBarCloudUrl = parcel.readString();
            this.dragRefreshAfterBegin = parcel.readLong();
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel parcel, int i) {
            parcel.writeLong(this.enterOpenTime);
            parcel.writeLong(this.enterCloseTime);
            parcel.writeLong(this.permanentLedBeginTime);
            parcel.writeLong(this.permanentLedEndTime);
            parcel.writeInt(this.splashLight);
            parcel.writeInt(this.pendantSwitcher);
            parcel.writeInt(this.showSpecialLoadingPage);
            parcel.writeInt(this.loadingPageInfoExpireDuration);
            parcel.writeInt(this.showDailyPendantPercent);
            parcel.writeInt(this.pendantDisplayDuration);
            parcel.writeInt(this.pendantPreShowGap);
            parcel.writeInt(this.locatePreCheckGap);
            parcel.writeInt(this.locateFrequency);
            parcel.writeInt(this.pbReqInterval);
            parcel.writeString(this.resUrl);
            parcel.writeString(this.resMd5);
            parcel.writeString(this.processTips);
            parcel.writeString(this.countdownTips);
            parcel.writeString(this.noBeginTips);
            parcel.writeString(this.endTips);
            parcel.writeString(this.errorTips);
            parcel.writeString(this.curfewWarning);
            parcel.writeString(this.specialLoadingPageWording);
            parcel.writeList(this.actSchedule);
            parcel.writeString(this.topBarCloudUrl);
            parcel.writeLong(this.dragRefreshAfterBegin);
        }

        public String toString() {
            StringBuilder sb = new StringBuilder("WealthGodConfig::");
            sb.append("enterOpenTime:").append(this.enterOpenTime).append(",enterCloseTime:").append(this.enterCloseTime).append("splashLight:").append(this.splashLight).append(",pendantSwitcher:").append(this.pendantSwitcher).append(",showSpecialLoadingPage:").append(this.showSpecialLoadingPage).append(",loadingPageInfoExpireDuration:").append(this.loadingPageInfoExpireDuration).append(",showDailyPendantPercent:").append(this.showDailyPendantPercent).append(",pendantDisplayDuration:").append(this.pendantDisplayDuration).append(",pendantPreShowGap:").append(this.pendantPreShowGap).append(",locatePreCheckGap:").append(this.locatePreCheckGap).append(",locateFrequency:").append(this.locateFrequency).append(",pbReqInterval:").append(this.pbReqInterval).append(",enterOpenTime").append(this.enterOpenTime).append(",enterCloseTime").append(this.enterCloseTime).append(",permanentLedBeginTime").append(this.permanentLedBeginTime).append(",permanentLedEndTime").append(this.permanentLedEndTime).append(",resUrl:").append(this.resUrl).append(",resMd5:").append(this.resMd5).append(",processTips:").append(this.processTips).append(",countdownTips:").append(this.countdownTips).append(",noBeginTips:").append(this.noBeginTips).append(",endTips:").append(this.endTips).append(",errorTips:").append(this.errorTips).append(",curfewWarning:").append(this.curfewWarning).append(",specialLoadingPageWording:").append(this.specialLoadingPageWording).append(",actSchedule:").append(this.actSchedule).append(",topBarCloudUrl:").append(this.topBarCloudUrl).append(",dragRefreshAfterBegin:").append(this.dragRefreshAfterBegin);
            return sb.toString();
        }
    }

    public class WealthGodActTime implements Parcelable, Serializable, Comparable {
        public static final Parcelable.Creator CREATOR = new ptg();
        public static final int STATUS_END = 0;
        public static final int STATUS_ING = 2;
        public static final int STATUS_NO_BEGIN = 1;
        long beginTime;
        long endTime;

        public String toString() {
            StringBuilder sb = new StringBuilder("WealthGodActTime::");
            sb.append(",beginTime:").append(this.beginTime).append(",endTime:").append(this.endTime).append(",status:").append(getStatus());
            return sb.toString();
        }

        public WealthGodActTime() {
        }

        public WealthGodActTime(Parcel parcel) {
            this.beginTime = parcel.readLong();
            this.endTime = parcel.readLong();
        }

        public int getStatus() {
            long a2 = MessageCache.a() * 1000;
            if (a2 > this.endTime) {
                return 0;
            }
            if (a2 > this.beginTime && a2 < this.endTime) {
                return 2;
            }
            return 1;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel parcel, int i) {
            parcel.writeLong(this.beginTime);
            parcel.writeLong(this.endTime);
        }

        @Override
        public int compareTo(WealthGodActTime wealthGodActTime) {
            int status = getStatus();
            int status2 = wealthGodActTime.getStatus();
            if (status == status2) {
                if (status == 0) {
                    return (int) (this.endTime - wealthGodActTime.endTime);
                }
                if (status == 2) {
                    return (int) (this.endTime - wealthGodActTime.endTime);
                }
                return (int) (wealthGodActTime.beginTime - this.beginTime);
            }
            return status - status2;
        }
    }

    public class StarInfo implements Parcelable, Serializable {
        public static final Parcelable.Creator CREATOR = new ptf();
        public String ShareContent;
        public String ShareSummary;
        public String ShareTitle;
        public String StarName;
        public int starId;
        public ResInfo starResInfo;

        public StarInfo() {
        }

        public StarInfo(Parcel parcel) {
            this.starId = parcel.readInt();
            this.StarName = parcel.readString();
            this.ShareTitle = parcel.readString();
            this.ShareSummary = parcel.readString();
            this.ShareContent = parcel.readString();
            this.ShareTitle = parcel.readString();
            this.starResInfo = (ResInfo) parcel.readParcelable(ResInfo.class.getClassLoader());
        }

        public String toString() {
            StringBuilder sb = new StringBuilder("StarInfo::");
            sb.append("starId = ").append(this.starId).append(", StarName = ").append(this.StarName).append(", ShareTitle = ").append(this.ShareTitle).append(", ShareSummary = ").append(this.ShareSummary).append(", ShareContent = ").append(this.ShareContent).append(", starResInfo = ").append(this.starResInfo);
            return sb.toString();
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel parcel, int i) {
            parcel.writeInt(this.starId);
            parcel.writeString(this.StarName);
            parcel.writeString(this.ShareTitle);
            parcel.writeString(this.ShareSummary);
            parcel.writeString(this.ShareContent);
            parcel.writeString(this.ShareTitle);
            parcel.writeParcelable(this.starResInfo, i);
        }
    }

    public static ARMapConfig readFromFile(String str) {
        ObjectInputStream objectInputStream;
        ARMapConfig aRMapConfig;
        byte[] bArr;
        if (QLog.isColorLevel()) {
            QLog.d(f19919b, 2, "start loadFromLocal");
        }
        if (TextUtils.isEmpty(str)) {
            if (QLog.isColorLevel()) {
                QLog.d(f19919b, 2, "loadFromLocal app is null");
                return null;
            }
            return null;
        }
        BaseApplication context = BaseApplicationImpl.getContext();
        StringBuilder sb = new StringBuilder();
        ?? r3 = f19916a;
        File fileStreamPath = context.getFileStreamPath(sb.append(f19916a).append(str).toString());
        if (!fileStreamPath.exists()) {
            if (QLog.isColorLevel()) {
                QLog.d(f19919b, 2, "loadFromLocal file is not exist");
                return null;
            }
            return null;
        }
        ?? r2 = 32768;
        try {
            try {
                bArr = new byte[32768];
                r3 = new FileInputStream(fileStreamPath);
            } catch (Throwable th) {
                th = th;
            }
        } catch (Exception e) {
            e = e;
            objectInputStream = null;
            r3 = 0;
        } catch (Throwable th2) {
            th = th2;
            r2 = 0;
            r3 = 0;
        }
        try {
            r3.read(bArr);
            objectInputStream = new ObjectInputStream(new ByteArrayInputStream(bArr));
            try {
                aRMapConfig = (ARMapConfig) objectInputStream.readObject();
                if (r3 != 0) {
                    try {
                        r3.close();
                    } catch (IOException e2) {
                        if (QLog.isColorLevel()) {
                            e2.printStackTrace();
                        }
                    }
                }
                if (objectInputStream != null) {
                    try {
                        objectInputStream.close();
                    } catch (IOException e3) {
                        if (QLog.isColorLevel()) {
                            e3.printStackTrace();
                        }
                    }
                }
            } catch (Exception e4) {
                e = e4;
                if (QLog.isColorLevel()) {
                    QLog.d(f19919b, 2, "loadFromLocal exception:" + e.toString());
                }
                if (r3 != 0) {
                    try {
                        r3.close();
                    } catch (IOException e5) {
                        if (QLog.isColorLevel()) {
                            e5.printStackTrace();
                        }
                    }
                }
                if (objectInputStream != null) {
                    try {
                        objectInputStream.close();
                        aRMapConfig = null;
                    } catch (IOException e6) {
                        if (QLog.isColorLevel()) {
                            e6.printStackTrace();
                        }
                        aRMapConfig = null;
                    }
                } else {
                    aRMapConfig = null;
                }
                return aRMapConfig;
            }
        } catch (Exception e7) {
            e = e7;
            objectInputStream = null;
        } catch (Throwable th3) {
            th = th3;
            r2 = 0;
            if (r3 != 0) {
                try {
                    r3.close();
                } catch (IOException e8) {
                    if (QLog.isColorLevel()) {
                        e8.printStackTrace();
                    }
                }
            }
            if (r2 != 0) {
                try {
                    r2.close();
                } catch (IOException e9) {
                    if (QLog.isColorLevel()) {
                        e9.printStackTrace();
                    }
                }
            }
            throw th;
        }
        return aRMapConfig;
    }

    public static void deleteLocalConfig(String str) {
        File fileStreamPath = BaseApplicationImpl.getContext().getFileStreamPath(f19916a + str);
        if (fileStreamPath.exists()) {
            fileStreamPath.delete();
        }
        if (QLog.isColorLevel()) {
            QLog.d(f19919b, 2, "deleteLocalConfig path:" + fileStreamPath.getAbsolutePath());
        }
    }

    public void saveToFile(String str) {
        ObjectOutputStream objectOutputStream;
        ObjectOutputStream objectOutputStream2;
        ByteArrayOutputStream byteArrayOutputStream = null;
        if (TextUtils.isEmpty(str)) {
            if (QLog.isColorLevel()) {
                QLog.d(f19919b, 2, "saveToFile uin is empty");
                return;
            }
            return;
        }
        File fileStreamPath = BaseApplicationImpl.getContext().getFileStreamPath(f19916a + str);
        String str2 = f19916a + str + ".tmp";
        File fileStreamPath2 = BaseApplicationImpl.getContext().getFileStreamPath(str2);
        ByteArrayOutputStream byteArrayOutputStream2 = str2;
        ObjectOutputStream objectOutputStream3 = ".tmp";
        if (QLog.isColorLevel()) {
            StringBuilder append = new StringBuilder().append("saveToFile path:");
            String absolutePath = fileStreamPath.getAbsolutePath();
            String sb = append.append(absolutePath).toString();
            QLog.d(f19919b, 2, sb);
            byteArrayOutputStream2 = sb;
            objectOutputStream3 = absolutePath;
        }
        ?? exists = fileStreamPath2.exists();
        if (exists != 0) {
            fileStreamPath2.delete();
        }
        try {
            try {
                fileStreamPath2.createNewFile();
                exists = new FileOutputStream(fileStreamPath2);
                try {
                    byteArrayOutputStream2 = new ByteArrayOutputStream(8192);
                } catch (IOException e) {
                    e = e;
                    objectOutputStream2 = null;
                    exists = exists;
                } catch (OutOfMemoryError e2) {
                    e = e2;
                    byteArrayOutputStream2 = null;
                    objectOutputStream = null;
                } catch (Throwable th) {
                    th = th;
                    byteArrayOutputStream2 = null;
                    objectOutputStream3 = null;
                }
            } catch (Throwable th2) {
                th = th2;
            }
        } catch (IOException e3) {
            e = e3;
            exists = 0;
            objectOutputStream2 = null;
        } catch (OutOfMemoryError e4) {
            e = e4;
            exists = 0;
            byteArrayOutputStream2 = null;
            objectOutputStream = null;
        } catch (Throwable th3) {
            th = th3;
            exists = 0;
            byteArrayOutputStream2 = null;
            objectOutputStream3 = null;
        }
        try {
            objectOutputStream = new ObjectOutputStream(byteArrayOutputStream2);
            try {
                objectOutputStream.writeObject(this);
                objectOutputStream.flush();
                byteArrayOutputStream2.writeTo(exists);
                byteArrayOutputStream2.flush();
                exists.flush();
                if (fileStreamPath.exists()) {
                    fileStreamPath.delete();
                }
                fileStreamPath2.renameTo(fileStreamPath);
                if (QLog.isColorLevel()) {
                    QLog.d(f19919b, 2, "save successful");
                }
                if (exists != 0) {
                    try {
                        exists.close();
                    } catch (IOException e5) {
                        if (QLog.isColorLevel()) {
                            e5.printStackTrace();
                        }
                    }
                }
                if (objectOutputStream != null) {
                    try {
                        objectOutputStream.close();
                    } catch (IOException e6) {
                        if (QLog.isColorLevel()) {
                            e6.printStackTrace();
                        }
                    }
                }
                if (byteArrayOutputStream2 != 0) {
                    try {
                        byteArrayOutputStream2.close();
                    } catch (IOException e7) {
                        e7.printStackTrace();
                    }
                }
            } catch (IOException e8) {
                e = e8;
                byteArrayOutputStream = byteArrayOutputStream2;
                objectOutputStream2 = objectOutputStream;
                exists = exists;
                try {
                    e.printStackTrace();
                    if (QLog.isColorLevel()) {
                        QLog.d(f19919b, 2, "saveToFile Exception:" + e.toString());
                    }
                    if (exists != 0) {
                        try {
                            exists.close();
                        } catch (IOException e9) {
                            if (QLog.isColorLevel()) {
                                e9.printStackTrace();
                            }
                        }
                    }
                    if (objectOutputStream2 != null) {
                        try {
                            objectOutputStream2.close();
                        } catch (IOException e10) {
                            if (QLog.isColorLevel()) {
                                e10.printStackTrace();
                            }
                        }
                    }
                    if (byteArrayOutputStream != null) {
                        try {
                            byteArrayOutputStream.close();
                        } catch (IOException e11) {
                            e11.printStackTrace();
                        }
                    }
                } catch (Throwable th4) {
                    th = th4;
                    objectOutputStream3 = objectOutputStream2;
                    byteArrayOutputStream2 = byteArrayOutputStream;
                    if (exists != 0) {
                        try {
                            exists.close();
                        } catch (IOException e12) {
                            if (QLog.isColorLevel()) {
                                e12.printStackTrace();
                            }
                        }
                    }
                    if (objectOutputStream3 != null) {
                        try {
                            objectOutputStream3.close();
                        } catch (IOException e13) {
                            if (QLog.isColorLevel()) {
                                e13.printStackTrace();
                            }
                        }
                    }
                    if (byteArrayOutputStream2 != null) {
                        try {
                            byteArrayOutputStream2.close();
                        } catch (IOException e14) {
                            e14.printStackTrace();
                        }
                    }
                    throw th;
                }
            } catch (OutOfMemoryError e15) {
                e = e15;
                QLog.d(f19919b, 2, "saveToFile " + e.getMessage());
                if (exists != 0) {
                    try {
                        exists.close();
                    } catch (IOException e16) {
                        if (QLog.isColorLevel()) {
                            e16.printStackTrace();
                        }
                    }
                }
                if (objectOutputStream != null) {
                    try {
                        objectOutputStream.close();
                    } catch (IOException e17) {
                        if (QLog.isColorLevel()) {
                            e17.printStackTrace();
                        }
                    }
                }
                if (byteArrayOutputStream2 != null) {
                    try {
                        byteArrayOutputStream2.close();
                    } catch (IOException e18) {
                        e18.printStackTrace();
                    }
                }
            }
        } catch (IOException e19) {
            e = e19;
            objectOutputStream2 = null;
            byteArrayOutputStream = byteArrayOutputStream2;
            exists = exists;
        } catch (OutOfMemoryError e20) {
            e = e20;
            objectOutputStream = null;
        } catch (Throwable th5) {
            th = th5;
            objectOutputStream3 = null;
            if (exists != 0) {
            }
            if (objectOutputStream3 != null) {
            }
            if (byteArrayOutputStream2 != null) {
            }
            throw th;
        }
    }

    public String toString() {
        StringBuilder sb = new StringBuilder("");
        sb.append("version:").append(this.version).append("\npccBid:").append(this.pccBid).append("\nmapEngineSoMd5:").append(this.mapEngineSoMd5).append("\nmapLocateFreq:").append(this.mapLocateFreq).append("\nmapTopRightBeginTime:").append(this.mapTopRightBeginTime).append("\nmapTopRightEndTime:").append(this.mapTopRightEndTime).append("\nmapTopRightUrl:").append(this.mapTopRightUrl).append("\nmapConfig:").append(this.mapConfig).append("\nmapDaySkin:").append(this.mapDaySkin).append("\nmapNightSkin:").append(this.mapNightSkin).append("\nskySkin:").append(this.skySkin).append("\ntreeSkin:").append(this.treeSkin).append("\ncommonRes:").append(this.commonRes).append("\nbgMusic:").append(this.bgMusic).append("\npoiModels:").append(this.poiModels).append("\ncheatApps:").append(this.cheatApps).append("\nwealthGodConfig:").append(this.wealthGodConfig).append("\nWordingConfig:").append(this.wordingList).append("\nmapPreloadBeginTime:").append(this.mapPreloadBeginTime).append("\nmapPreLoadEndTime:").append(this.mapPreLoadEndTime).append("\nmapPreLoadNetType:").append(this.mapPreLoadNetType).append("\npreLoadGridMapBeginTime:").append(this.preLoadGridMapBeginTime).append("\npreLoadGridMapEndTime:").append(this.preLoadGridMapEndTime);
        return sb.toString();
    }

    public boolean isWealthGodEnterOpen() {
        boolean z = true;
        if (this.wealthGodConfig == null || this.wealthGodConfig.actSchedule == null) {
            QLog.d(f19919b, 1, "isWealthGodEnterOpen wealthGodConfig is null or actScheduled is null");
            return false;
        }
        long a2 = MessageCache.a() * 1000;
        if (a2 <= this.wealthGodConfig.enterOpenTime || a2 >= this.wealthGodConfig.enterCloseTime) {
            z = false;
        }
        if (QLog.isColorLevel()) {
            QLog.d(f19919b, 2, "isWealthGodEnterOpen, isEnterOpen:" + z);
            return z;
        }
        return z;
    }

    public WealthGodActTime getRecentActTime() {
        WealthGodActTime wealthGodActTime = null;
        if (this.wealthGodConfig == null || this.wealthGodConfig.actSchedule == null) {
            QLog.d(f19919b, 1, "getRecentActTime wealthGodConfig is null or actScheduled is null");
        } else {
            if (this.wealthGodConfig.actSchedule != null && this.wealthGodConfig.actSchedule.size() > 0) {
                Collections.sort(this.wealthGodConfig.actSchedule);
                wealthGodActTime = (WealthGodActTime) this.wealthGodConfig.actSchedule.get(this.wealthGodConfig.actSchedule.size() - 1);
            }
            if (QLog.isColorLevel()) {
                QLog.d(f19919b, 2, "getRecentActTime recentActTime:" + wealthGodActTime + ",wealthGodConfig.actSchedule:" + this.wealthGodConfig.actSchedule);
            }
        }
        return wealthGodActTime;
    }

    public String getWording(int i) {
        int i2 = 0;
        while (true) {
            int i3 = i2;
            if (i3 < this.wordingList.size()) {
                if (((ResInfo) this.wordingList.get(i3)).extra != i) {
                    i2 = i3 + 1;
                } else {
                    return ((ResInfo) this.wordingList.get(i3)).url;
                }
            } else {
                return null;
            }
        }
    }

    public static String getLbsPoi(ARMapConfig aRMapConfig, int i) {
        String str;
        int i2 = 0;
        int size = (aRMapConfig == null || aRMapConfig.poiModels == null) ? 0 : aRMapConfig.poiModels.size();
        while (true) {
            if (i2 >= size) {
                str = null;
                break;
            }
            ResInfo resInfo = (ResInfo) aRMapConfig.poiModels.get(i2);
            if (resInfo == null || resInfo.extra != i || TextUtils.isEmpty(resInfo.url) || TextUtils.isEmpty(resInfo.md5)) {
                i2++;
            } else {
                str = resInfo.url + "?md5=" + resInfo.md5;
                break;
            }
        }
        if (TextUtils.isEmpty(str)) {
            return f19918a[i];
        }
        return str;
    }

    public static long dayTime2Millis(String str) {
        try {
            SimpleDateFormat simpleDateFormat = new SimpleDateFormat("HH:mm", Locale.getDefault());
            simpleDateFormat.setTimeZone(TimeZone.getTimeZone("GMT+8"));
            return simpleDateFormat.parse(str).getTime() - simpleDateFormat.parse("0:00").getTime();
        } catch (Exception e) {
            return Long.MIN_VALUE;
        }
    }

    public static long data2Millis(String str) {
        if (sSdf == null) {
            sSdf = new SimpleDateFormat("yyyy-MM-dd HH:mm", Locale.getDefault());
            sSdf.setTimeZone(TimeZone.getTimeZone("GMT+8"));
        }
        long j = -1;
        try {
            j = sSdf.parse(str).getTime();
        } catch (Exception e) {
            if (QLog.isColorLevel()) {
                QLog.d(f19919b, 2, "", e);
            }
        }
        if (QLog.isColorLevel()) {
            QLog.d(f19919b, 2, "data2Millis, date = " + str + ",millis = " + j);
        }
        return j;
    }

    public static long dayTime2Ms(String str) {
        long j = Long.MIN_VALUE;
        if (f19917a == null) {
            f19917a = new SimpleDateFormat("HH:mm", Locale.getDefault());
            f19917a.setTimeZone(TimeZone.getTimeZone("GMT+8"));
        }
        try {
            j = f19917a.parse(str).getTime();
        } catch (Exception e) {
        }
        if (QLog.isColorLevel()) {
            QLog.d(f19919b, 2, "dayTime2Ms ,dateTime = " + str + ",millionSeconds = " + j);
        }
        return j;
    }

    public static long date2Millis1(String str) {
        if (sSdf1 == null) {
            sSdf1 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.getDefault());
            sSdf1.setTimeZone(TimeZone.getTimeZone("GMT+8"));
        }
        long j = -1;
        try {
            j = sSdf1.parse(str).getTime();
        } catch (Exception e) {
            if (QLog.isColorLevel()) {
                QLog.d(f19919b, 2, "", e);
            }
        }
        if (QLog.isColorLevel()) {
            QLog.d(f19919b, 2, "data2Millis1, date = " + str + ",millis = " + j);
        }
        return j;
    }
}