.class public Lcom/alipay/sdk/app/statistic/StatisticRecord;
.super Ljava/lang/Object;
.source "SourceFile"


# static fields
.field public static final EC_BIND_EXCEPTION:Ljava/lang/String; = "ClientBindException"

.field public static final EC_BIND_FAILED:Ljava/lang/String; = "ClientBindFailed"

.field public static final EC_BIND_SERVICE_FAILED:Ljava/lang/String; = "ClientBindServiceFailed"

.field public static final EC_BIND_WAIT_TIMEOUT_EX:Ljava/lang/String; = "BindWaitTimeoutEx"

.field public static final EC_CHECK_CLIENT_EXIST_EX:Ljava/lang/String; = "CheckClientExistEx"

.field public static final EC_CHECK_CLIENT_SIGN_EX:Ljava/lang/String; = "CheckClientSignEx"

.field public static final EC_FORMAT_RESULT_EX:Ljava/lang/String; = "FormatResultEx"

.field public static final EC_GET_APDID_EX:Ljava/lang/String; = "GetApdidEx"

.field public static final EC_GET_APDID_NULL:Ljava/lang/String; = "GetApdidNull"

.field public static final EC_GET_APDID_TIMEOUT:Ljava/lang/String; = "GetApdidTimeout"

.field public static final EC_GET_INSTALLED_APP_EX:Ljava/lang/String; = "GetInstalledAppEx"

.field public static final EC_GET_INSTALLED_PACKAGES:Ljava/lang/String; = "GetInstalledPackagesEx"

.field public static final EC_GET_PACKAGE_INFO:Ljava/lang/String; = "GetPackageInfoEx"

.field public static final EC_GET_PUBLIC_KEY_FROM_SIGN_EX:Ljava/lang/String; = "GetPublicKeyFromSignEx"

.field public static final EC_GET_UTDID_EX:Ljava/lang/String; = "GetUtdidEx"

.field public static final EC_H5AUTH_DATA_ANALYSIS:Ljava/lang/String; = "H5AuthDataAnalysisError"

.field public static final EC_H5AUTH_NET_ERROR:Ljava/lang/String; = "H5AuthNetworkError"

.field public static final EC_H5PAY_DATA_ANALYSIS:Ljava/lang/String; = "H5PayDataAnalysisError"

.field public static final EC_H5PAY_NET_ERROR:Ljava/lang/String; = "H5PayNetworkError"

.field public static final EC_NOT_INCLUDE_SIGNATURES:Ljava/lang/String; = "NotIncludeSignatures"

.field public static final EC_PUBLIC_KEY_UNMATCH:Ljava/lang/String; = "PublicKeyUnmatch"

.field public static final EC_SAVE_TRADE_TOKE_EX:Ljava/lang/String; = "SaveTradeTokenError"

.field public static final EC_SSL_PAY:Ljava/lang/String; = "SSLError"

.field public static final EC_TRIDES_DECRYPT:Ljava/lang/String; = "TriDesDecryptError"

.field public static final EC_TRIDES_ENCRYPT:Ljava/lang/String; = "TriDesEncryptError"

.field public static final EC_WEBVEW_INIT_EX:Ljava/lang/String; = "GetInstalledAppEx"

.field public static final ET_AUTH:Ljava/lang/String; = "auth"

.field public static final ET_BIZ:Ljava/lang/String; = "biz"

.field public static final ET_CP:Ljava/lang/String; = "cp"

.field public static final ET_NET:Ljava/lang/String; = "net"

.field public static final ET_THIRD:Ljava/lang/String; = "third"

.field public static final KEY_TRADE_NO:Ljava/lang/String; = "trade_no"

.field public static final KEY_TRADE_OUT_TRADE_NO:Ljava/lang/String; = "out_trade_no"

.field public static final KEY_TRADE_PARTNER:Ljava/lang/String; = "partner"


# instance fields
.field private mApp:Ljava/lang/String;

.field private mBehavior:Ljava/lang/String;

.field private mDevice:Ljava/lang/String;

.field private mException:Ljava/lang/String;

.field private mIds:Ljava/lang/String;

.field private mResult:Ljava/lang/String;

.field private mSDK:Ljava/lang/String;

.field private mTemplate:Ljava/lang/String;

.field private mTime:Ljava/lang/String;

.field private mTrade:Ljava/lang/String;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    .line 85
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const-string v0, ""

    .line 81
    iput-object v0, p0, Lcom/alipay/sdk/app/statistic/StatisticRecord;->mException:Ljava/lang/String;

    .line 86
    invoke-direct {p0}, Lcom/alipay/sdk/app/statistic/StatisticRecord;->buildTime()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/alipay/sdk/app/statistic/StatisticRecord;->mTime:Ljava/lang/String;

    .line 87
    invoke-direct {p0, p1}, Lcom/alipay/sdk/app/statistic/StatisticRecord;->buildApp(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/alipay/sdk/app/statistic/StatisticRecord;->mApp:Ljava/lang/String;

    .line 88
    invoke-direct {p0}, Lcom/alipay/sdk/app/statistic/StatisticRecord;->buildSDK()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/alipay/sdk/app/statistic/StatisticRecord;->mSDK:Ljava/lang/String;

    .line 89
    invoke-direct {p0}, Lcom/alipay/sdk/app/statistic/StatisticRecord;->buildIds()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/alipay/sdk/app/statistic/StatisticRecord;->mIds:Ljava/lang/String;

    .line 90
    invoke-direct {p0, p1}, Lcom/alipay/sdk/app/statistic/StatisticRecord;->buildDevice(Landroid/content/Context;)Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Lcom/alipay/sdk/app/statistic/StatisticRecord;->mDevice:Ljava/lang/String;

    const-string p1, "-"

    .line 91
    iput-object p1, p0, Lcom/alipay/sdk/app/statistic/StatisticRecord;->mResult:Ljava/lang/String;

    const-string p1, "-"

    .line 92
    iput-object p1, p0, Lcom/alipay/sdk/app/statistic/StatisticRecord;->mBehavior:Ljava/lang/String;

    const-string p1, "-"

    .line 93
    iput-object p1, p0, Lcom/alipay/sdk/app/statistic/StatisticRecord;->mTemplate:Ljava/lang/String;

    return-void
.end method

.method private buildApp(Landroid/content/Context;)Ljava/lang/String;
    .locals 4

    const-string v0, "-"

    const-string v1, "-"

    const/4 v2, 0x0

    if-eqz p1, :cond_0

    .line 204
    :try_start_0
    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object p1

    .line 205
    invoke-virtual {p1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v3
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_1

    .line 206
    :try_start_1
    invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object p1

    .line 207
    invoke-virtual {p1, v3, v2}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;

    move-result-object p1

    .line 208
    iget-object p1, p1, Landroid/content/pm/PackageInfo;->versionName:Ljava/lang/String;
    :try_end_1
    .catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_1} :catch_0

    move-object v1, p1

    :catch_0
    move-object v0, v3

    :catch_1
    :cond_0
    const-string p1, "%s,%s,-,-,-"

    const/4 v3, 0x2

    .line 212
    new-array v3, v3, [Ljava/lang/Object;

    aput-object v0, v3, v2

    const/4 v0, 0x1

    aput-object v1, v3, v0

    invoke-static {p1, v3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method private buildDevice(Landroid/content/Context;)Ljava/lang/String;
    .locals 11

    .line 234
    invoke-static {p1}, Lcom/alipay/sdk/util/DeviceInfo;->getLocal(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/alipay/sdk/app/statistic/StatisticRecord;->filter(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "android"

    .line 236
    sget-object v2, Landroid/os/Build$VERSION;->RELEASE:Ljava/lang/String;

    invoke-direct {p0, v2}, Lcom/alipay/sdk/app/statistic/StatisticRecord;->filter(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 237
    sget-object v3, Landroid/os/Build;->MODEL:Ljava/lang/String;

    invoke-direct {p0, v3}, Lcom/alipay/sdk/app/statistic/StatisticRecord;->filter(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    const-string v4, "-"

    .line 239
    invoke-static {p1}, Lcom/alipay/sdk/util/DeviceInfo;->getInstance(Landroid/content/Context;)Lcom/alipay/sdk/util/DeviceInfo;

    move-result-object v5

    invoke-virtual {v5}, Lcom/alipay/sdk/util/DeviceInfo;->getIMSI()Ljava/lang/String;

    move-result-object v5

    invoke-direct {p0, v5}, Lcom/alipay/sdk/app/statistic/StatisticRecord;->filter(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    .line 240
    invoke-static {p1}, Lcom/alipay/sdk/util/DeviceInfo;->getNetConnectionType(Landroid/content/Context;)Lcom/alipay/sdk/util/NetConnectionType;

    move-result-object v6

    invoke-virtual {v6}, Lcom/alipay/sdk/util/NetConnectionType;->getName()Ljava/lang/String;

    move-result-object v6

    invoke-direct {p0, v6}, Lcom/alipay/sdk/app/statistic/StatisticRecord;->filter(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    const-string v7, "gw"

    .line 242
    invoke-static {p1}, Lcom/alipay/sdk/util/DeviceInfo;->getInstance(Landroid/content/Context;)Lcom/alipay/sdk/util/DeviceInfo;

    move-result-object p1

    invoke-virtual {p1}, Lcom/alipay/sdk/util/DeviceInfo;->getIMEI()Ljava/lang/String;

    move-result-object p1

    invoke-direct {p0, p1}, Lcom/alipay/sdk/app/statistic/StatisticRecord;->filter(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    const-string v8, "%s,%s,%s,%s,%s,%s,%s,%s,%s,-"

    const/16 v9, 0x9

    .line 243
    new-array v9, v9, [Ljava/lang/Object;

    const/4 v10, 0x0

    aput-object v0, v9, v10

    const/4 v0, 0x1

    aput-object v1, v9, v0

    const/4 v0, 0x2

    aput-object v2, v9, v0

    const/4 v0, 0x3

    aput-object v3, v9, v0

    const/4 v0, 0x4

    aput-object v4, v9, v0

    const/4 v0, 0x5

    aput-object v5, v9, v0

    const/4 v0, 0x6

    aput-object v6, v9, v0

    const/4 v0, 0x7

    aput-object v7, v9, v0

    const/16 v0, 0x8

    aput-object p1, v9, v0

    invoke-static {v8, v9}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method private buildIds()Ljava/lang/String;
    .locals 5

    .line 227
    invoke-static {}, Lcom/alipay/sdk/tid/TidInfo;->getTidInfo()Lcom/alipay/sdk/tid/TidInfo;

    move-result-object v0

    invoke-virtual {v0}, Lcom/alipay/sdk/tid/TidInfo;->getTid()Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/alipay/sdk/app/statistic/StatisticRecord;->filter(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 228
    invoke-static {}, Lcom/alipay/sdk/sys/GlobalContext;->getInstance()Lcom/alipay/sdk/sys/GlobalContext;

    move-result-object v1

    invoke-virtual {v1}, Lcom/alipay/sdk/sys/GlobalContext;->getUtdid()Ljava/lang/String;

    move-result-object v1

    invoke-direct {p0, v1}, Lcom/alipay/sdk/app/statistic/StatisticRecord;->filter(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    const-string v2, "%s,%s,-,-,-"

    const/4 v3, 0x2

    .line 229
    new-array v3, v3, [Ljava/lang/Object;

    const/4 v4, 0x0

    aput-object v0, v3, v4

    const/4 v0, 0x1

    aput-object v1, v3, v0

    invoke-static {v2, v3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method private buildSDK()Ljava/lang/String;
    .locals 5

    const-string v0, "15.4.0"

    .line 217
    invoke-direct {p0, v0}, Lcom/alipay/sdk/app/statistic/StatisticRecord;->filter(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "h.a.3.4.0"

    .line 218
    invoke-direct {p0, v1}, Lcom/alipay/sdk/app/statistic/StatisticRecord;->filter(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    const-string v2, "android,3,%s,%s,com.alipay.mcpay,5.0,-,-,-"

    const/4 v3, 0x2

    .line 221
    new-array v3, v3, [Ljava/lang/Object;

    const/4 v4, 0x0

    aput-object v0, v3, v4

    const/4 v0, 0x1

    aput-object v1, v3, v0

    invoke-static {v2, v3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method private buildTime()Ljava/lang/String;
    .locals 4
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "SimpleDateFormat"
        }
    .end annotation

    .line 165
    new-instance v0, Ljava/text/SimpleDateFormat;

    const-string v1, "yyyy-MM-dd-HH:mm:ss"

    invoke-direct {v0, v1}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    .line 166
    new-instance v1, Ljava/util/Date;

    invoke-direct {v1}, Ljava/util/Date;-><init>()V

    invoke-virtual {v0, v1}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "123456789,%s"

    const/4 v2, 0x1

    .line 167
    new-array v2, v2, [Ljava/lang/Object;

    const/4 v3, 0x0

    aput-object v0, v2, v3

    invoke-static {v1, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method private buildTrade(Ljava/lang/String;)Ljava/lang/String;
    .locals 10

    const-string v0, "&"

    .line 176
    invoke-virtual {p1, v0}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object p1

    const/4 v0, 0x2

    const/4 v1, 0x0

    const/4 v2, 0x1

    const/4 v3, 0x0

    if-eqz p1, :cond_4

    .line 178
    array-length v4, p1

    move-object v5, v1

    move-object v6, v5

    const/4 v1, 0x0

    :goto_0
    if-ge v1, v4, :cond_3

    aget-object v7, p1, v1

    const-string v8, "="

    .line 179
    invoke-virtual {v7, v8}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v7

    if-eqz v7, :cond_2

    .line 180
    array-length v8, v7

    if-ne v8, v0, :cond_2

    .line 181
    aget-object v8, v7, v3

    const-string v9, "partner"

    invoke-virtual {v8, v9}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_0

    .line 182
    aget-object v7, v7, v2

    const-string v8, "\""

    const-string v9, ""

    invoke-virtual {v7, v8, v9}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    goto :goto_1

    .line 183
    :cond_0
    aget-object v8, v7, v3

    const-string v9, "out_trade_no"

    invoke-virtual {v8, v9}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_1

    .line 184
    aget-object v5, v7, v2

    const-string v7, "\""

    const-string v8, ""

    invoke-virtual {v5, v7, v8}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v5

    goto :goto_1

    .line 185
    :cond_1
    aget-object v8, v7, v3

    const-string v9, "trade_no"

    invoke-virtual {v8, v9}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_2

    .line 186
    aget-object v6, v7, v2

    const-string v7, "\""

    const-string v8, ""

    invoke-virtual {v6, v7, v8}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v6

    :cond_2
    :goto_1
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_3
    move-object v1, v6

    goto :goto_2

    :cond_4
    move-object v5, v1

    .line 191
    :goto_2
    invoke-direct {p0, v1}, Lcom/alipay/sdk/app/statistic/StatisticRecord;->filter(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 192
    invoke-direct {p0, v5}, Lcom/alipay/sdk/app/statistic/StatisticRecord;->filter(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 193
    invoke-direct {p0, v1}, Lcom/alipay/sdk/app/statistic/StatisticRecord;->filter(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    const-string v5, "%s,%s,-,%s,-,-,-"

    const/4 v6, 0x3

    .line 194
    new-array v6, v6, [Ljava/lang/Object;

    aput-object p1, v6, v3

    aput-object v1, v6, v2

    aput-object v4, v6, v0

    invoke-static {v5, v6}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method private filter(Ljava/lang/String;)Ljava/lang/String;
    .locals 2

    .line 124
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    const-string p1, ""

    return-object p1

    :cond_0
    const-string v0, "["

    const-string v1, "\u3010"

    .line 128
    invoke-virtual {p1, v0, v1}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object p1

    const-string v0, "]"

    const-string v1, "\u3011"

    invoke-virtual {p1, v0, v1}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object p1

    const-string v0, "("

    const-string v1, "\uff08"

    invoke-virtual {p1, v0, v1}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object p1

    const-string v0, ")"

    const-string v1, "\uff09"

    invoke-virtual {p1, v0, v1}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object p1

    const-string v0, ","

    const-string v1, "\uff0c"

    .line 129
    invoke-virtual {p1, v0, v1}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object p1

    const-string v0, "-"

    const-string v1, "="

    invoke-virtual {p1, v0, v1}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object p1

    const-string v0, "^"

    const-string v1, "~"

    invoke-virtual {p1, v0, v1}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method private getStackTraceMessage(Ljava/lang/Throwable;)Ljava/lang/String;
    .locals 4

    if-nez p1, :cond_0

    const-string p1, ""

    return-object p1

    .line 137
    :cond_0
    new-instance v0, Ljava/lang/StringBuffer;

    invoke-direct {v0}, Ljava/lang/StringBuffer;-><init>()V

    .line 139
    :try_start_0
    invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string v1, ":"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 140
    invoke-virtual {p1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string v1, " \u300b "

    .line 141
    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 142
    invoke-virtual {p1}, Ljava/lang/Throwable;->getStackTrace()[Ljava/lang/StackTraceElement;

    move-result-object p1

    if-eqz p1, :cond_1

    const/4 v1, 0x0

    .line 144
    :goto_0
    array-length v2, p1

    if-ge v1, v2, :cond_1

    .line 145
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    aget-object v3, p1, v1

    invoke-virtual {v3}, Ljava/lang/StackTraceElement;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v3, " \u300b "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 150
    :catch_0
    :cond_1
    invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method


# virtual methods
.method public format(Ljava/lang/String;)Ljava/lang/String;
    .locals 3

    .line 154
    invoke-virtual {p0}, Lcom/alipay/sdk/app/statistic/StatisticRecord;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_0

    const-string p1, ""

    return-object p1

    .line 157
    :cond_0
    invoke-direct {p0, p1}, Lcom/alipay/sdk/app/statistic/StatisticRecord;->buildTrade(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Lcom/alipay/sdk/app/statistic/StatisticRecord;->mTrade:Ljava/lang/String;

    const-string p1, "[(%s),(%s),(%s),(%s),(%s),(%s),(%s),(%s),(%s),(%s)]"

    const/16 v0, 0xa

    .line 158
    new-array v0, v0, [Ljava/lang/Object;

    const/4 v1, 0x0

    iget-object v2, p0, Lcom/alipay/sdk/app/statistic/StatisticRecord;->mTime:Ljava/lang/String;

    aput-object v2, v0, v1

    const/4 v1, 0x1

    iget-object v2, p0, Lcom/alipay/sdk/app/statistic/StatisticRecord;->mTrade:Ljava/lang/String;

    aput-object v2, v0, v1

    const/4 v1, 0x2

    iget-object v2, p0, Lcom/alipay/sdk/app/statistic/StatisticRecord;->mApp:Ljava/lang/String;

    aput-object v2, v0, v1

    const/4 v1, 0x3

    iget-object v2, p0, Lcom/alipay/sdk/app/statistic/StatisticRecord;->mSDK:Ljava/lang/String;

    aput-object v2, v0, v1

    const/4 v1, 0x4

    iget-object v2, p0, Lcom/alipay/sdk/app/statistic/StatisticRecord;->mIds:Ljava/lang/String;

    aput-object v2, v0, v1

    const/4 v1, 0x5

    iget-object v2, p0, Lcom/alipay/sdk/app/statistic/StatisticRecord;->mDevice:Ljava/lang/String;

    aput-object v2, v0, v1

    const/4 v1, 0x6

    iget-object v2, p0, Lcom/alipay/sdk/app/statistic/StatisticRecord;->mResult:Ljava/lang/String;

    aput-object v2, v0, v1

    const/4 v1, 0x7

    iget-object v2, p0, Lcom/alipay/sdk/app/statistic/StatisticRecord;->mBehavior:Ljava/lang/String;

    aput-object v2, v0, v1

    const/16 v1, 0x8

    iget-object v2, p0, Lcom/alipay/sdk/app/statistic/StatisticRecord;->mException:Ljava/lang/String;

    aput-object v2, v0, v1

    const/16 v1, 0x9

    iget-object v2, p0, Lcom/alipay/sdk/app/statistic/StatisticRecord;->mTemplate:Ljava/lang/String;

    aput-object v2, v0, v1

    invoke-static {p1, v0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method public isEmpty()Z
    .locals 1

    .line 97
    iget-object v0, p0, Lcom/alipay/sdk/app/statistic/StatisticRecord;->mException:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    return v0
.end method

.method public putError(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 1

    const-string v0, "-"

    .line 120
    invoke-virtual {p0, p1, p2, p3, v0}, Lcom/alipay/sdk/app/statistic/StatisticRecord;->putError(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method public putError(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 4

    const-string v0, ""

    .line 112
    iget-object v1, p0, Lcom/alipay/sdk/app/statistic/StatisticRecord;->mException:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_0

    .line 113
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v0, "^"

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 115
    :cond_0
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v0, "%s,%s,%s,%s"

    const/4 v2, 0x4

    new-array v2, v2, [Ljava/lang/Object;

    const/4 v3, 0x0

    aput-object p1, v2, v3

    const/4 p1, 0x1

    aput-object p2, v2, p1

    const/4 p1, 0x2

    invoke-direct {p0, p3}, Lcom/alipay/sdk/app/statistic/StatisticRecord;->filter(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    aput-object p2, v2, p1

    const/4 p1, 0x3

    aput-object p4, v2, p1

    invoke-static {v0, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 116
    new-instance p2, Ljava/lang/StringBuilder;

    invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V

    iget-object p3, p0, Lcom/alipay/sdk/app/statistic/StatisticRecord;->mException:Ljava/lang/String;

    invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Lcom/alipay/sdk/app/statistic/StatisticRecord;->mException:Ljava/lang/String;

    return-void
.end method

.method public putError(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
    .locals 0

    .line 101
    invoke-direct {p0, p3}, Lcom/alipay/sdk/app/statistic/StatisticRecord;->getStackTraceMessage(Ljava/lang/Throwable;)Ljava/lang/String;

    move-result-object p3

    .line 102
    invoke-virtual {p0, p1, p2, p3}, Lcom/alipay/sdk/app/statistic/StatisticRecord;->putError(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method public putError(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;Ljava/lang/String;)V
    .locals 0

    .line 106
    invoke-direct {p0, p3}, Lcom/alipay/sdk/app/statistic/StatisticRecord;->getStackTraceMessage(Ljava/lang/Throwable;)Ljava/lang/String;

    move-result-object p3

    .line 107
    invoke-virtual {p0, p1, p2, p3, p4}, Lcom/alipay/sdk/app/statistic/StatisticRecord;->putError(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method
