Info Call to SQLite query API

Description

Improper SQL query construction could lead to SQL injection. An SQL injection attack consists of injecting of an SQL query via the input data from the client to the application

Recommendation

This entry is informative, no recommendations applicable.

Technical details

Method com.inmobi.commons.core.d.b.b() calling method android.database.sqlite.SQLiteDatabase.updateWithOnConflict()


    public final declared_synchronized int b(String p7, android.content.ContentValues p8, String p9, String[] p10)
    {
        try {
            return this.f.updateWithOnConflict(p7, p8, p9, p10, 4);
        } catch (int v7_3) {
            throw v7_3;
        } catch (int v7_5) {
            new StringBuilder("SDK encountered an unexpected error in DbStore.delete() method; ").append(v7_5.getMessage());
            return -1;
        }
    }

Method com.helpshift.support.h.d.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public void a(com.helpshift.support.Faq p6)
    {
        Exception v0_0 = ark>com.helpshift.support.h.dark>.b(p6);
        String v2_3 = new String[1];
        v2_3[0] = p6.a();
        try {
            android.database.sqlite.SQLiteDatabase v3_1 = this.a.getWritableDatabase();
        } catch (Exception v0_2) {
            throw v0_2;
        } catch (Exception v0_1) {
            com.helpshift.util.l.c("HelpShiftDebug", "Error in addFaq", v0_1);
            return;
        }
        if (com.helpshift.util.f.a(v3_1, "faqs", "question_id=?", v2_3)) {
            v3_1.update("faqs", v0_0, "question_id=?", v2_3);
            return;
        } else {
            v3_1.insert("faqs", 0, v0_0);
            return;
        }
    }

Method com.helpshift.support.h.d.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public int a(String p7, Boolean p8)
    {
        if (!android.text.TextUtils.isEmpty(p7)) {
            com.helpshift.support.h.c v8_1;
            String v0_3 = new android.content.ContentValues();
            if (!p8.booleanValue()) {
                v8_1 = -1;
            } else {
                v8_1 = 1;
            }
            v0_3.put("helpful", Integer.valueOf(v8_1));
            try {
                String v2_1 = this.a.getWritableDatabase();
                String[] v3_0 = new String[1];
                v3_0[0] = p7;
                int v7_1 = v2_1.update("faqs", v0_3, "question_id = ?", v3_0);
            } catch (int v7_3) {
                throw v7_3;
            } catch (int v7_2) {
                com.helpshift.util.l.c("HelpShiftDebug", "Error in setIsHelpful", v7_2);
                v7_1 = 0;
            }
            return v7_1;
        } else {
            return 0;
        }
    }

Method com.helpshift.q.b.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public boolean a(String p8, java.io.Serializable p9)
    {
        if ((!android.text.TextUtils.isEmpty(p8)) && (p9 != null)) {
            long v0_4 = this.a.getWritableDatabase();
            String[] v4 = new String[1];
            v4[0] = p8;
            android.content.ContentValues v5_1 = new android.content.ContentValues();
            v5_1.put("key", p8);
            try {
                v5_1.put("value", com.helpshift.util.c.a(p9));
            } catch (android.database.sqlite.SQLiteException v8_4) {
                com.helpshift.util.l.c("HS_KeyValueDB", "Error in serializing value", v8_4);
                return 0;
            }
            if (!com.helpshift.util.f.a(v0_4, "key_value_store", "key=?", v4)) {
                if (v0_4.insert("key_value_store", 0, v5_1) == -1) {
                    throw new android.database.sqlite.SQLiteException("DB insert failed and return -1");
                }
            } else {
                v0_4.update("key_value_store", v5_1, "key=?", v4);
            }
            return 1;
        } else {
            return 0;
        }
    }

Method com.helpshift.campaigns.l.j.b() calling method android.database.sqlite.SQLiteDatabase.update()


    public void b(com.helpshift.campaigns.models.f p12)
    {
        if (p12 != null) {
            try {
                String v2_1 = new String[1];
                v2_1[0] = p12.a;
                android.database.sqlite.SQLiteDatabase v3_0 = this.a.getWritableDatabase();
            } catch (String v12_6) {
                throw v12_6;
            } catch (String v12_4) {
                com.helpshift.util.l.c("Helpshift_SessionDB", "Error updating session", v12_4);
                return;
            }
            if (!com.helpshift.util.f.a(v3_0, "sessions", "identifier=?", v2_1)) {
                return;
            } else {
                android.content.ContentValues v4_3 = new android.content.ContentValues();
                v4_3.put("start_time", Long.valueOf(p12.d));
                long v8 = 0;
                if (p12.e > 0) {
                    v8 = p12.e;
                }
                v4_3.put("end_time", Long.valueOf(v8));
                v4_3.put("durations", com.helpshift.util.c.a(p12.f));
                v3_0.update("sessions", v4_3, "identifier=?", v2_1);
                return;
            }
        } else {
            return;
        }
    }

Method com.helpshift.campaigns.l.j.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public void a(Integer p6, String[] p7)
    {
        if (p7 != null) {
            String v1_0 = 0;
            try {
                String v2_1 = new android.content.ContentValues();
                v2_1.put("sync_status", p6);
                Exception v6_1 = com.helpshift.util.f.a(900, java.util.Arrays.asList(p7));
                String v7_2 = this.a.getWritableDatabase();
                try {
                    v7_2.beginTransaction();
                    Exception v6_3 = v6_1.iterator();
                } catch (Exception v6_6) {
                    if (v7_2 != null) {
                        try {
                            if (v7_2.inTransaction()) {
                                v7_2.endTransaction();
                            }
                        } catch (String v7_5) {
                            com.helpshift.util.l.c("Helpshift_SessionDB", "Error in setting sync status inside finally block, ", v7_5);
                        }
                    }
                    throw v6_6;
                } catch (Exception v6_2) {
                    v1_0 = v7_2;
                    com.helpshift.util.l.c("Helpshift_SessionDB", "Error in setting sync status", v6_2);
                    if (v1_0 == null) {
                        return;
                    } else {
                        try {
                            if (!v1_0.inTransaction()) {
                                return;
                            } else {
                                v1_0.endTransaction();
                                return;
                            }
                        } catch (Exception v6_5) {
                            String v7_3 = "Helpshift_SessionDB";
                            String v1_2 = "Error in setting sync status inside finally block, ";
                            com.helpshift.util.l.c(v7_3, v1_2, v6_5);
                            return;
                        }
                    }
                }
                while (v6_3.hasNext()) {
                    String v1_4 = ((java.util.List) v6_3.next());
                    String v3_1 = new String[v1_4.size()];
                    String v1_6 = ((String[]) v1_4.toArray(v3_1));
                    String v3_3 = new StringBuilder();
                    v3_3.append("identifier in (");
                    v3_3.append(com.helpshift.util.f.a(v1_6.length));
                    v3_3.append(")");
                    v7_2.update("sessions", v2_1, v3_3.toString(), v1_6);
                }
                v7_2.setTransactionSuccessful();
                try {
                    if ((v7_2 == null) || (!v7_2.inTransaction())) {
                        return;
                    } else {
                        v7_2.endTransaction();
                        return;
                    }
                } catch (Exception v6_5) {
                    v7_3 = "Helpshift_SessionDB";
                    v1_2 = "Error in setting sync status inside finally block, ";
                }
            } catch (Exception v6_6) {
                v7_2 = v1_0;
            } catch (Exception v6_2) {
            } catch (Exception v6_9) {
                throw v6_9;
            }
        } else {
            return;
        }
    }

Method com.helpshift.campaigns.l.j.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public void a(com.helpshift.campaigns.models.f p6)
    {
        if (p6 != null) {
            try {
                String v2_3 = new String[1];
                v2_3[0] = p6.a;
                android.database.sqlite.SQLiteDatabase v3_0 = this.a.getWritableDatabase();
            } catch (android.content.ContentValues v6_4) {
                throw v6_4;
            } catch (android.content.ContentValues v6_3) {
                com.helpshift.util.l.c("Helpshift_SessionDB", "Error storing sessions", v6_3);
                return;
            }
            if (!com.helpshift.util.f.a(v3_0, "sessions", "identifier=?", v2_3)) {
                v3_0.insert("sessions", 0, this.c(p6));
                return;
            } else {
                v3_0.update("sessions", this.c(p6), "identifier=?", v2_3);
                return;
            }
        } else {
            return;
        }
    }

Method com.helpshift.campaigns.l.h.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public void a(String p6, com.helpshift.campaigns.models.PropertyValue p7, String p8)
    {
        if ((!android.text.TextUtils.isEmpty(p6)) && ((p7 != null) && (!android.text.TextUtils.isEmpty(p8)))) {
            Exception v8_3 = this.f(p8);
            try {
                String v1_1 = this.a.getWritableDatabase();
                Exception v8_1 = this.a.a(v8_3);
                String v3_1 = new String[1];
                v3_1[0] = p6;
            } catch (String v6_3) {
                throw v6_3;
            } catch (Exception v8_2) {
                StringBuilder v2_4 = new StringBuilder();
                v2_4.append("Error setProperty key: ");
                v2_4.append(p6);
                v2_4.append(", value : ");
                v2_4.append(p7);
                com.helpshift.util.l.c("Helpshift_PropertyDB", v2_4.toString(), v8_2);
                return;
            }
            if (!com.helpshift.util.f.a(v1_1, v8_1, "key=?", v3_1)) {
                v1_1.insert(v8_1, 0, this.a(p6, p7));
                return;
            } else {
                v1_1.update(v8_1, this.a(p6, p7), "key=?", v3_1);
                return;
            }
        } else {
            return;
        }
    }

Method com.helpshift.campaigns.l.h.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public void a(Integer p6, String[] p7, String p8)
    {
        if ((p7 != null) && ((p7.length != 0) && (!android.text.TextUtils.isEmpty(p8)))) {
            String v8_4 = this.f(p8);
            String v1_3 = 0;
            try {
                int v2_1 = this.a.getWritableDatabase();
                try {
                    v2_1.beginTransaction();
                    String v1_1 = new StringBuilder();
                    v1_1.append("key in (");
                    v1_1.append(com.helpshift.util.f.a(p7.length));
                    v1_1.append(")");
                    String v1_2 = v1_1.toString();
                    android.content.ContentValues v3_5 = new android.content.ContentValues();
                    v3_5.put("sync_status", p6);
                    v2_1.update(this.a.a(v8_4), v3_5, v1_2, p7);
                    v2_1.setTransactionSuccessful();
                    try {
                        if ((v2_1 == 0) || (!v2_1.inTransaction())) {
                            return;
                        } else {
                            v2_1.endTransaction();
                            return;
                        }
                    } catch (Exception v6_6) {
                        String v7_2 = "Helpshift_PropertyDB";
                        String v8_2 = "Error setSyncStatus for multiple keys inside finally block";
                        com.helpshift.util.l.c(v7_2, v8_2, v6_6);
                        return;
                    }
                } catch (Exception v6_4) {
                    if (v2_1 != 0) {
                        try {
                            if (v2_1.inTransaction()) {
                                v2_1.endTransaction();
                            }
                        } catch (String v7_4) {
                            com.helpshift.util.l.c("Helpshift_PropertyDB", "Error setSyncStatus for multiple keys inside finally block", v7_4);
                        }
                    }
                    throw v6_4;
                } catch (Exception v6_1) {
                    v1_3 = v2_1;
                    com.helpshift.util.l.c("Helpshift_PropertyDB", "Error setSyncStatus for multiple keys", v6_1);
                    if (v1_3 == null) {
                        return;
                    } else {
                        try {
                            if (!v1_3.inTransaction()) {
                                return;
                            } else {
                                v1_3.endTransaction();
                                return;
                            }
                        } catch (Exception v6_6) {
                            v7_2 = "Helpshift_PropertyDB";
                            v8_2 = "Error setSyncStatus for multiple keys inside finally block";
                        }
                    }
                }
            } catch (Exception v6_4) {
                v2_1 = v1_3;
            } catch (Exception v6_1) {
            } catch (Exception v6_8) {
                throw v6_8;
            }
        } else {
            return;
        }
    }

Method com.helpshift.campaigns.l.a.b() calling method android.database.sqlite.SQLiteDatabase.update()


    public void b(String p9, String p10)
    {
        if (!android.text.TextUtils.isEmpty(p9)) {
            com.helpshift.campaigns.i.f v1_1 = 1;
            try {
                String v3_4 = this.a.getWritableDatabase();
                String[] v5 = new String[1];
                v5[0] = p9;
            } catch (Throwable v9_1) {
                throw v9_1;
            } catch (java.util.Iterator v10_1) {
                String v3_1 = new StringBuilder();
                v3_1.append("Exception in updating cover image path for ");
                v3_1.append(p9);
                com.helpshift.util.l.c("Helpshift_CampDBStore", v3_1.toString(), v10_1);
                v1_1 = 0;
                if (v1_1 != null) {
                    java.util.Iterator v10_4 = this.b.iterator();
                    while (v10_4.hasNext()) {
                        ((com.helpshift.campaigns.i.f) v10_4.next()).b(p9);
                    }
                }
                return;
            }
            if (!com.helpshift.util.f.a(v3_4, "campaigns", "identifier=?", v5)) {
            } else {
                android.content.ContentValues v6_3 = new android.content.ContentValues();
                v6_3.put("cover_image_file_path", p10);
                v3_4.update("campaigns", v6_3, "identifier=?", v5);
            }
        } else {
            return;
        }
    }

Method com.helpshift.campaigns.l.a.b() calling method android.database.sqlite.SQLiteDatabase.update()


    public void b(String p10)
    {
        if (!android.text.TextUtils.isEmpty(p10)) {
            java.util.Iterator v1_0 = 0;
            try {
                String v3_2 = this.a.getWritableDatabase();
                String v5_0 = new String[1];
                v5_0[0] = p10;
            } catch (Throwable v10_1) {
                throw v10_1;
            } catch (com.helpshift.campaigns.i.f v2_0) {
                String v4_1 = new StringBuilder();
                v4_1.append("Exception in marking campaign as read for id : ");
                v4_1.append(p10);
                com.helpshift.util.l.c("Helpshift_CampDBStore", v4_1.toString(), v2_0);
                if (v1_0 != null) {
                    java.util.Iterator v1_2 = this.b.iterator();
                    while (v1_2.hasNext()) {
                        ((com.helpshift.campaigns.i.f) v1_2.next()).e(p10);
                    }
                }
                return;
            }
            if (com.helpshift.util.f.a(v3_2, "campaigns", "identifier=?", v5_0)) {
                android.content.ContentValues v6_3 = new android.content.ContentValues();
                v6_3.put("seen_status", Integer.valueOf(1));
                v6_3.put("read_status", Integer.valueOf(1));
                v3_2.update("campaigns", v6_3, "identifier=?", v5_0);
            }
            v1_0 = 1;
        } else {
            return;
        }
    }

Method com.helpshift.campaigns.l.a.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public void a(String p9, String p10)
    {
        if (!android.text.TextUtils.isEmpty(p9)) {
            com.helpshift.campaigns.i.f v1_1 = 1;
            try {
                String v3_4 = this.a.getWritableDatabase();
                String[] v5 = new String[1];
                v5[0] = p9;
            } catch (Throwable v9_1) {
                throw v9_1;
            } catch (java.util.Iterator v10_1) {
                String v3_1 = new StringBuilder();
                v3_1.append("Exception in updating icon image path for ");
                v3_1.append(p9);
                com.helpshift.util.l.c("Helpshift_CampDBStore", v3_1.toString(), v10_1);
                v1_1 = 0;
                if (v1_1 != null) {
                    java.util.Iterator v10_4 = this.b.iterator();
                    while (v10_4.hasNext()) {
                        ((com.helpshift.campaigns.i.f) v10_4.next()).a(p9);
                    }
                }
                return;
            }
            if (!com.helpshift.util.f.a(v3_4, "campaigns", "identifier=?", v5)) {
            } else {
                android.content.ContentValues v6_3 = new android.content.ContentValues();
                v6_3.put("icon_image_file_path", p10);
                v3_4.update("campaigns", v6_3, "identifier=?", v5);
            }
        } else {
            return;
        }
    }

Method com.helpshift.campaigns.l.a.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public void a(String p10)
    {
        if (!android.text.TextUtils.isEmpty(p10)) {
            java.util.Iterator v1_0 = 0;
            try {
                String v3_2 = this.a.getWritableDatabase();
                String v5_0 = new String[1];
                v5_0[0] = p10;
            } catch (Throwable v10_1) {
                throw v10_1;
            } catch (com.helpshift.campaigns.i.f v2_0) {
                String v4_1 = new StringBuilder();
                v4_1.append("Exception in marking campaign as read for id : ");
                v4_1.append(p10);
                com.helpshift.util.l.c("Helpshift_CampDBStore", v4_1.toString(), v2_0);
                if (v1_0 != null) {
                    java.util.Iterator v1_2 = this.b.iterator();
                    while (v1_2.hasNext()) {
                        ((com.helpshift.campaigns.i.f) v1_2.next()).d(p10);
                    }
                }
                return;
            }
            if (com.helpshift.util.f.a(v3_2, "campaigns", "identifier=?", v5_0)) {
                android.content.ContentValues v6_3 = new android.content.ContentValues();
                v6_3.put("read_status", Integer.valueOf(1));
                v3_2.update("campaigns", v6_3, "identifier=?", v5_0);
            }
            v1_0 = 1;
        } else {
            return;
        }
    }

Method com.moe.pushlibrary.providers.MoEProvider.update() calling method android.database.sqlite.SQLiteDatabase.update()


    public int update(android.net.Uri p6, android.content.ContentValues p7, String p8, String[] p9)
    {
        int v7_1;
        android.database.sqlite.SQLiteDatabase v0_1 = this.mOpenHelper.getWritableDatabase();
        this.updateIfRequired(v0_1);
        switch (com.moe.pushlibrary.providers.MoEProvider.sUriMatcher.match(p6)) {
            case 1:
                v7_1 = v0_1.update("MESSAGES", p7, p8, p9);
                break;
            case 2:
                String v8_5;
                StringBuilder v1_19 = ((String) p6.getPathSegments().get(1));
                StringBuilder v3_7 = new StringBuilder();
                v3_7.append("_id=");
                v3_7.append(v1_19);
                if (android.text.TextUtils.isEmpty(p8)) {
                    v8_5 = "";
                } else {
                    StringBuilder v1_22 = new StringBuilder();
                    v1_22.append(" AND ");
                    v1_22.append(p8);
                    v8_5 = v1_22.toString();
                }
                v3_7.append(v8_5);
                v7_1 = v0_1.update("MESSAGES", p7, v3_7.toString(), p9);
                break;
            case 3:
                v7_1 = v0_1.update("DATAPOINTS", p7, p8, p9);
                break;
            case 4:
                String v8_3;
                StringBuilder v1_12 = ((String) p6.getPathSegments().get(1));
                StringBuilder v3_3 = new StringBuilder();
                v3_3.append("_id=");
                v3_3.append(v1_12);
                if (android.text.TextUtils.isEmpty(p8)) {
                    v8_3 = "";
                } else {
                    StringBuilder v1_15 = new StringBuilder();
                    v1_15.append(" AND ");
                    v1_15.append(p8);
                    v8_3 = v1_15.toString();
                }
                v3_3.append(v8_3);
                v7_1 = v0_1.update("DATAPOINTS", p7, v3_3.toString(), p9);
                break;
            case 5:
                v7_1 = v0_1.update("INAPPMSG", p7, p8, p9);
                break;
            case 6:
                String v8_1;
                StringBuilder v1_3 = ((String) p6.getPathSegments().get(1));
                StringBuilder v3_1 = new StringBuilder();
                v3_1.append("_id=");
                v3_1.append(v1_3);
                if (android.text.TextUtils.isEmpty(p8)) {
                    v8_1 = "";
                } else {
                    StringBuilder v1_6 = new StringBuilder();
                    v1_6.append(" AND ");
                    v1_6.append(p8);
                    v8_1 = v1_6.toString();
                }
                v3_1.append(v8_1);
                v7_1 = v0_1.update("INAPPMSG", p7, v3_1.toString(), p9);
                break;
            case 7:
            case 8:
            default:
                int v7_3 = new StringBuilder();
                v7_3.append("Unknown URI ");
                v7_3.append(p6);
                com.moengage.core.Logger.f(v7_3.toString());
                v7_1 = 0;
                break;
            case 9:
                v7_1 = v0_1.update("USERATTRIBUTES", p7, p8, p9);
                break;
            case 10:
                String v8_16;
                StringBuilder v1_39 = ((String) p6.getPathSegments().get(1));
                StringBuilder v3_11 = new StringBuilder();
                v3_11.append("_id=");
                v3_11.append(v1_39);
                if (android.text.TextUtils.isEmpty(p8)) {
                    v8_16 = "";
                } else {
                    StringBuilder v1_42 = new StringBuilder();
                    v1_42.append(" AND ");
                    v1_42.append(p8);
                    v8_16 = v1_42.toString();
                }
                v3_11.append(v8_16);
                v7_1 = v0_1.update("USERATTRIBUTES", p7, v3_11.toString(), p9);
                break;
            case 11:
                v7_1 = v0_1.update("CAMPAIGNLIST", p7, p8, p9);
                break;
            case 12:
                String v8_14;
                StringBuilder v1_31 = ((String) p6.getPathSegments().get(1));
                StringBuilder v3_9 = new StringBuilder();
                v3_9.append("_id=");
                v3_9.append(v1_31);
                if (android.text.TextUtils.isEmpty(p8)) {
                    v8_14 = "";
                } else {
                    StringBuilder v1_34 = new StringBuilder();
                    v1_34.append(" AND ");
                    v1_34.append(p8);
                    v8_14 = v1_34.toString();
                }
                v3_9.append(v8_14);
                v7_1 = v0_1.update("CAMPAIGNLIST", p7, v3_9.toString(), p9);
                break;
            case 13:
                v7_1 = v0_1.update("BATCH_DATA", p7, p8, p9);
                break;
            case 14:
                String v8_12;
                StringBuilder v1_9 = ((String) p6.getPathSegments().get(1));
                StringBuilder v3_5 = new StringBuilder();
                v3_5.append("_id=");
                v3_5.append(v1_9);
                if (android.text.TextUtils.isEmpty(p8)) {
                    v8_12 = "";
                } else {
                    StringBuilder v1_26 = new StringBuilder();
                    v1_26.append(" AND ");
                    v1_26.append(p8);
                    v8_12 = v1_26.toString();
                }
                v3_5.append(v8_12);
                v7_1 = v0_1.update("BATCH_DATA", p7, v3_5.toString(), p9);
                break;
        }
        this.getContext().getContentResolver().notifyChange(p6, 0);
        String v6_2 = new StringBuilder();
        v6_2.append("MoEProvider: Updated ");
        v6_2.append(v7_1);
        v6_2.append(" record(s)");
        com.moengage.core.Logger.v(v6_2.toString());
        return v7_1;
    }

Method com.helpshift.support.h.g.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public declared_synchronized void a(com.helpshift.account.dao.ProfileDTO p5)
    {
        try {
            String v1_2 = new String[1];
            v1_2[0] = p5.c;
            android.database.sqlite.SQLiteDatabase v2_2 = this.a.getWritableDatabase();
            String v5_1 = this.b(p5);
            try {
                if (com.helpshift.util.f.a(v2_2, "profiles", "IDENTIFIER=?", v1_2)) {
                    v2_2.update("profiles", v5_1, "IDENTIFIER=?", v1_2);
                } else {
                    v2_2.insert("profiles", 0, v5_1);
                }
            } catch (String v5_2) {
                com.helpshift.util.l.c("Helpshift_ProfileDB", "Error in addProfile", v5_2);
            }
            com.helpshift.util.e.a("__hs__db_profiles");
            return;
        } catch (String v5_3) {
            throw v5_3;
        }
    }

Method com.helpshift.common.a.a.d() calling method android.database.sqlite.SQLiteDatabase.update()


    public declared_synchronized void d(java.util.List p9)
    {
        try {
            if (p9.size() != 0) {
                String v0_3 = new java.util.ArrayList();
                String v1_3 = new java.util.ArrayList();
                String v2_4 = p9.iterator();
                while(true) {
                    int v4 = 0;
                    if (!v2_4.hasNext()) {
                        break;
                    }
                    String v3_5 = ((com.helpshift.conversation.activeconversation.message.j) v2_4.next());
                    v0_3.add(this.c(v3_5));
                    int v5_7 = new String[1];
                    v5_7[0] = String.valueOf(v3_5.n);
                    v1_3.add(v5_7);
                }
                String v2_0 = 0;
                String v3_2 = new StringBuilder();
                this.y.getClass();
                v3_2.append("_id");
                v3_2.append(" = ?");
                String v3_3 = v3_2.toString();
                try {
                    int v5_4 = this.z.getWritableDatabase();
                    try {
                        v5_4.beginTransaction();
                    } catch (Exception v9_3) {
                        if (v5_4 != 0) {
                            try {
                                v5_4.endTransaction();
                            } catch (String v0_5) {
                                com.helpshift.util.l.c("Helpshift_ConverDB", "Error in update messages", v0_5);
                            }
                        }
                        throw v9_3;
                    } catch (Exception v9_1) {
                        v2_0 = v5_4;
                        com.helpshift.util.l.c("Helpshift_ConverDB", "Error in update messages", v9_1);
                        if (v2_0 == null) {
                            return;
                        } else {
                            try {
                                v2_0.endTransaction();
                            } catch (Exception v9_2) {
                                String v0_2 = "Helpshift_ConverDB";
                                String v1_0 = "Error in update messages";
                                com.helpshift.util.l.c(v0_2, v1_0, v9_2);
                            }
                            return;
                        }
                    }
                    while (v4 < p9.size()) {
                        v5_4.update("messages", ((android.content.ContentValues) v0_3.get(v4)), v3_3, ((String[]) v1_3.get(v4)));
                        v4++;
                    }
                    v5_4.setTransactionSuccessful();
                    if (v5_4 == 0) {
                        return;
                    } else {
                        try {
                            v5_4.endTransaction();
                        } catch (Exception v9_2) {
                            v0_2 = "Helpshift_ConverDB";
                            v1_0 = "Error in update messages";
                        }
                        return;
                    }
                } catch (Exception v9_3) {
                    v5_4 = v2_0;
                } catch (Exception v9_1) {
                }
            } else {
                return;
            }
        } catch (Exception v9_4) {
            throw v9_4;
        }
    }

Method com.helpshift.common.a.a.b() calling method android.database.sqlite.SQLiteDatabase.update()


    public declared_synchronized void b(java.util.List p9)
    {
        try {
            if (p9.size() != 0) {
                String v0_3 = new java.util.ArrayList();
                String v1_3 = new java.util.ArrayList();
                String v2_5 = p9.iterator();
                while(true) {
                    int v4 = 0;
                    if (!v2_5.hasNext()) {
                        break;
                    }
                    String v3_5 = ((com.helpshift.conversation.activeconversation.a) v2_5.next());
                    v0_3.add(this.c(v3_5));
                    int v5_7 = new String[1];
                    v5_7[0] = String.valueOf(v3_5.a);
                    v1_3.add(v5_7);
                }
                String v2_0 = 0;
                String v3_2 = new StringBuilder();
                this.y.getClass();
                v3_2.append("_id");
                v3_2.append(" = ?");
                String v3_3 = v3_2.toString();
                try {
                    int v5_4 = this.z.getWritableDatabase();
                    try {
                        v5_4.beginTransaction();
                    } catch (Exception v9_3) {
                        if (v5_4 != 0) {
                            try {
                                v5_4.endTransaction();
                            } catch (String v0_5) {
                                com.helpshift.util.l.c("Helpshift_ConverDB", "Error in update conversations inside finally block", v0_5);
                            }
                        }
                        throw v9_3;
                    } catch (Exception v9_1) {
                        v2_0 = v5_4;
                        com.helpshift.util.l.c("Helpshift_ConverDB", "Error in update conversations", v9_1);
                        if (v2_0 == null) {
                            return;
                        } else {
                            try {
                                v2_0.endTransaction();
                            } catch (Exception v9_2) {
                                String v0_2 = "Helpshift_ConverDB";
                                String v1_0 = "Error in update conversations inside finally block";
                                com.helpshift.util.l.c(v0_2, v1_0, v9_2);
                            }
                            return;
                        }
                    }
                    while (v4 < p9.size()) {
                        this.y.getClass();
                        v5_4.update("issues", ((android.content.ContentValues) v0_3.get(v4)), v3_3, ((String[]) v1_3.get(v4)));
                        v4++;
                    }
                    v5_4.setTransactionSuccessful();
                    if (v5_4 == 0) {
                        return;
                    } else {
                        try {
                            v5_4.endTransaction();
                        } catch (Exception v9_2) {
                            v0_2 = "Helpshift_ConverDB";
                            v1_0 = "Error in update conversations inside finally block";
                        }
                        return;
                    }
                } catch (Exception v9_3) {
                    v5_4 = v2_0;
                } catch (Exception v9_1) {
                }
            } else {
                return;
            }
        } catch (Exception v9_4) {
            throw v9_4;
        }
    }

Method com.helpshift.common.a.a.b() calling method android.database.sqlite.SQLiteDatabase.update()


    public declared_synchronized void b(com.helpshift.conversation.activeconversation.message.j p5)
    {
        try {
            String v0_0 = this.c(p5);
            String v1_3 = new StringBuilder();
            this.y.getClass();
            v1_3.append("_id");
            v1_3.append(" = ?");
            String v1_0 = v1_3.toString();
            String[] v2_1 = new String[1];
            v2_1[0] = String.valueOf(p5.n);
            try {
                this.z.getWritableDatabase().update("messages", v0_0, v1_0, v2_1);
            } catch (Exception v5_5) {
                com.helpshift.util.l.c("Helpshift_ConverDB", "Error in update message", v5_5);
            }
            return;
        } catch (Exception v5_6) {
            throw v5_6;
        }
    }

Method com.helpshift.common.a.a.b() calling method android.database.sqlite.SQLiteDatabase.update()


    public declared_synchronized void b(com.helpshift.conversation.activeconversation.a p5)
    {
        try {
            String v0_0 = this.c(p5);
            String v1_3 = new StringBuilder();
            this.y.getClass();
            v1_3.append("_id");
            v1_3.append(" = ?");
            String v1_0 = v1_3.toString();
            String[] v2_1 = new String[1];
            v2_1[0] = String.valueOf(p5.a);
            try {
                Exception v5_4 = this.z.getWritableDatabase();
                this.y.getClass();
                v5_4.update("issues", v0_0, v1_0, v2_1);
            } catch (Exception v5_5) {
                com.helpshift.util.l.c("Helpshift_ConverDB", "Error in update conversation", v5_5);
            }
            return;
        } catch (Exception v5_6) {
            throw v5_6;
        }
    }

Method com.helpshift.common.a.a.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public declared_synchronized com.helpshift.conversation.dto.a.a a(com.helpshift.conversation.dto.a.a p6)
    {
        try {
            String v0_1 = new StringBuilder();
            this.y.getClass();
            v0_1.append("profile_id");
            v0_1.append(" = ?");
            String v0_5 = v0_1.toString();
            String v1_1 = new String[1];
            v1_1[0] = String.valueOf(p6.a);
            String v2_1 = this.b(p6);
            try {
                android.database.sqlite.SQLiteDatabase v3_3 = this.z.getWritableDatabase();
                this.y.getClass();
            } catch (String v0_4) {
                com.helpshift.util.l.c("Helpshift_ConverDB", "Error in store conversation inbox record", v0_4);
                return p6;
            }
            if (!this.a(v3_3, "conversation_inbox", v0_5, v1_1)) {
                this.y.getClass();
                v3_3.insert("conversation_inbox", 0, v2_1);
                return p6;
            } else {
                this.y.getClass();
                v3_3.update("conversation_inbox", v2_1, v0_5, v1_1);
                return p6;
            }
        } catch (Throwable v6_1) {
            throw v6_1;
        }
    }

Method com.google.android.gms.tagmanager.zzeb.zze() calling method android.database.sqlite.SQLiteDatabase.update()


    private final void zze(long p6, long p8)
    {
        android.database.sqlite.SQLiteDatabase v0_1 = this.zzdl("Error opening database for getNumStoredHits.");
        if (v0_1 != null) {
            android.content.ContentValues v1_1 = new android.content.ContentValues();
            v1_1.put("hit_first_send_time", Long.valueOf(p8));
            try {
                String[] v2_1 = new String[1];
                v2_1[0] = String.valueOf(p6);
                v0_1.update("gtm_hits", v1_1, "hit_id=?", v2_1);
                return;
            } catch (android.database.sqlite.SQLiteException) {
                StringBuilder v9_2 = new StringBuilder(69);
                v9_2.append("Error setting HIT_FIRST_DISPATCH_TIME for hitId: ");
                v9_2.append(p6);
                com.google.android.gms.tagmanager.zzdi.zzab(v9_2.toString());
                this.zze(p6);
                return;
            }
        } else {
            return;
        }
    }

Method com.e.a.h.w() calling method android.database.sqlite.SQLiteDatabase.update()


    public void w()
    {
        com.services.d v0_0 = this.getDB();
        int v4 = 0;
        int v3_7 = 0;
        try {
            do {
                v0_0.beginTransaction();
                String v7_0 = this.getDB();
                android.content.ContentValues v8_1 = new StringBuilder();
                v8_1.append("SELECT track_id , track_metadata FROM ");
                v8_1.append(com.e.a.e$l.a);
                v8_1.append(" where album_name IS NULL  OR track_artwork IS NULL LIMIT 40");
                int v6_1 = v7_0.rawQuery(v8_1.toString(), 0);
            } while(v4 == 0);
            com.services.d.a().a("PREFERENCE_DOWNLOADED_TRACKS_META_UPDATED", 1, 0);
            return;
        } catch (Throwable v1_1) {
            v6_1 = v3_7;
            if (v6_1 != 0) {
                v6_1.close();
            }
            v0_0.endTransaction();
            throw v1_1;
        } catch (int v6_2) {
            v6_1 = v3_7;
            int v3_0 = v6_2;
            com.google.devtools.build.android.desugar.runtime.ThrowableExtension.printStackTrace(v3_0);
            if (v6_1 == 0) {
                v0_0.endTransaction();
                v3_7 = v6_1;
                if (v4 != 0) {
                }
                com.services.d.a().a("PREFERENCE_DOWNLOADED_TRACKS_META_UPDATED", 1, 0);
                return;
            } else {
                v6_1.close();
            }
            v0_0.setTransactionSuccessful();
            if (v6_1 == 0) {
            }
            com.services.d.a().a("PREFERENCE_DOWNLOADED_TRACKS_META_UPDATED", 1, 0);
            return;
        } catch (Throwable v1_1) {
        }
        if (!v6_1.moveToFirst()) {
            v4 = 1;
        } else {
            do {
                int v3_4 = v6_1.getString(v6_1.getColumnIndex("track_metadata"));
                String v7_3 = v6_1.getString(v6_1.getColumnIndex("track_id"));
                int v3_6 = ((com.gaana.models.Tracks$Track) com.library.util.Serializer.deserialize(v3_4));
                android.content.ContentValues v8_3 = new android.content.ContentValues();
                v8_3.put("album_name", v3_6.getRawAlbumTitle());
                v8_3.put("track_artwork", v3_6.getArtwork());
                int v3_9 = this.getDB();
                StringBuilder v10_2 = new StringBuilder();
                v10_2.append("track_id=");
                v10_2.append(v7_3);
                v3_9.update(com.e.a.e$l.a, v8_3, v10_2.toString(), 0);
            } while(v6_1.moveToNext());
        }
    }

Method com.e.a.h.u() calling method android.database.sqlite.SQLiteDatabase.update()


    public void u()
    {
        android.database.sqlite.SQLiteDatabase v0_0 = this.p();
        if (v0_0 != -100) {
            if (v0_0 != -100) {
                this.d(v0_0, -1);
            }
        } else {
            this.D();
        }
        android.database.sqlite.SQLiteDatabase v0_1 = this.getDB();
        android.content.ContentValues v2_1 = new java.util.ArrayList();
        try {
            int v3_1 = this.getDB().rawQuery("select playlist_id from playlist_details where download_status=1", 0);
            try {
                v0_1.beginTransaction();
            } catch (boolean v1_1) {
                if (v3_1 != 0) {
                    if (!v3_1.isClosed()) {
                        v3_1.close();
                    }
                }
                v0_1.endTransaction();
                throw v1_1;
            }
            if (v3_1.moveToFirst()) {
                do {
                    int v4_5 = v3_1.getInt(v3_1.getColumnIndex("playlist_id"));
                    if (this.i(v4_5) == 0) {
                        v2_1.add(Integer.valueOf(v4_5));
                    }
                } while(v3_1.moveToNext());
            }
            v3_1.close();
            android.content.ContentValues v2_4 = v2_1.iterator();
            while (v2_4.hasNext()) {
                int v4_17 = ((Integer) v2_4.next());
                String v5_0 = this.f(v4_17.intValue()).iterator();
                while (v5_0.hasNext()) {
                    this.e(v4_17.intValue(), ((Integer) v5_0.next()).intValue());
                }
                this.q(v4_17.intValue());
            }
            android.content.ContentValues v2_6 = new android.content.ContentValues();
            v2_6.put("download_status", Integer.valueOf(-1));
            int v4_10 = new String[1];
            v4_10[0] = String.valueOf(1);
            v0_1.update(com.e.a.e$h.a, v2_6, "download_status=?", v4_10);
            android.content.ContentValues v2_8 = new android.content.ContentValues();
            v2_8.put("has_downloaded", Integer.valueOf(-2));
            int v4_12 = new String[1];
            v4_12[0] = String.valueOf(0);
            v0_1.update(com.e.a.e$k.a, v2_8, "has_downloaded=?", v4_12);
            android.content.ContentValues v2_10 = new android.content.ContentValues();
            v2_10.put("has_downloaded", Integer.valueOf(-2));
            boolean v1_5 = new String[1];
            v1_5[0] = String.valueOf(0);
            v0_1.update(com.e.a.e$l.a, v2_10, "has_downloaded=?", v1_5);
            v0_1.setTransactionSuccessful();
            if ((v3_1 == 0) || (v3_1.isClosed())) {
                v0_1.endTransaction();
                return;
            } else {
                v3_1.close();
                v0_1.endTransaction();
                return;
            }
        } catch (boolean v1_1) {
            v3_1 = 0;
        } catch (android.database.SQLException) {
            v3_1 = 0;
        }
    }

Method com.e.a.h.q() calling method android.database.sqlite.SQLiteDatabase.update()


    public void q()
    {
        android.content.ContentValues v0_1 = new android.content.ContentValues();
        v0_1.put("has_downloaded", Integer.valueOf(0));
        this.getDB().update(com.e.a.e$k.a, v0_1, "has_downloaded=-1", 0);
        android.content.ContentValues v0_3 = new android.content.ContentValues();
        v0_3.put("has_downloaded", Integer.valueOf(0));
        this.getDB().update(com.e.a.e$l.a, v0_3, "has_downloaded=-1", 0);
        return;
    }

Method com.e.a.h.n() calling method android.database.sqlite.SQLiteDatabase.update()


    public int n(int p8)
    {
        android.database.sqlite.SQLiteDatabase v0_0 = -1;
        int v1 = 0;
        try {
            android.database.sqlite.SQLiteDatabase v3_3;
            android.content.ContentValues v2_1 = this.getDB();
            android.database.sqlite.SQLiteDatabase v3_7 = new StringBuilder();
            v3_7.append("SELECT offline_play_count FROM ");
            v3_7.append(com.e.a.e$l.a);
            v3_7.append(" where track_id=");
            v3_7.append(p8);
            android.content.ContentValues v2_0 = v2_1.rawQuery(v3_7.toString(), 0);
            try {
                if (!v2_0.moveToFirst()) {
                    v3_3 = -1;
                } else {
                    v3_3 = v2_0.getInt(v2_0.getColumnIndex("offline_play_count"));
                }
            } catch (android.database.sqlite.SQLiteDatabase v8_1) {
                v1 = v2_0;
                if (v1 != 0) {
                    if (!v1.isClosed()) {
                        v1.close();
                    }
                }
                throw v8_1;
            }
            if ((v2_0 == null) || (v2_0.isClosed())) {
                if (v3_3 >= null) {
                    android.content.ContentValues v2_3 = new android.content.ContentValues();
                    v2_3.put("offline_play_time", Long.valueOf(System.currentTimeMillis()));
                    if (v3_3 < 2147483647) {
                        v2_3.put("offline_play_count", Integer.valueOf((v3_3 + 1)));
                    }
                    try {
                        this.getDB().beginTransaction();
                        android.database.sqlite.SQLiteDatabase v3_11 = this.getDB();
                        StringBuilder v5_3 = new StringBuilder();
                        v5_3.append("track_id = ");
                        v5_3.append(p8);
                        android.database.sqlite.SQLiteDatabase v8_3 = v3_11.update(com.e.a.e$l.a, v2_3, v5_3.toString(), 0);
                        try {
                            this.getDB().setTransactionSuccessful();
                            this.getDB().endTransaction();
                            v0_0 = v8_3;
                        } catch (android.database.SQLException) {
                            v0_0 = v8_3;
                            this.getDB().endTransaction();
                        }
                    } catch (android.database.sqlite.SQLiteDatabase v8_5) {
                        this.getDB().endTransaction();
                        throw v8_5;
                    } catch (android.database.SQLException) {
                    }
                }
                return v0_0;
            } else {
                v2_0.close();
            }
        } catch (android.database.sqlite.SQLiteDatabase v8_1) {
        } catch (android.database.SQLException) {
            v2_0 = 0;
        }
    }

Method com.e.a.h.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public void a(int p5, com.gaana.models.Playlists$Playlist p6)
    {
        try {
            this.getDB().beginTransaction();
            android.content.ContentValues v0_2 = new android.content.ContentValues();
            v0_2.put("playlist_id", p6.getBusinessObjId());
            v0_2.put("playlist_content", com.library.util.Serializer.serialize(p6));
            android.database.sqlite.SQLiteDatabase v6_2 = this.getDB();
            int v2_1 = new StringBuilder();
            v2_1.append("playlist_id=");
            v2_1.append(p5);
            v6_2.update(com.e.a.e$h.a, v0_2, v2_1.toString(), 0);
            this.getDB().setTransactionSuccessful();
        } catch (android.database.sqlite.SQLiteDatabase v5_3) {
            this.getDB().endTransaction();
            throw v5_3;
        } catch (Exception) {
        }
        this.getDB().endTransaction();
        return;
    }

Method com.e.a.h.j() calling method android.database.sqlite.SQLiteDatabase.update()

Couldn't retrieve source code

Method com.e.a.h.i() calling method android.database.sqlite.SQLiteDatabase.update()


    private int i(int p5, int p6)
    {
        com.managers.DownloadManager v0_1 = new android.content.ContentValues();
        v0_1.put("has_downloaded", Integer.valueOf(p6));
        try {
            int v6_3 = this.getDB();
            String v2_0 = new StringBuilder();
            v2_0.append("track_id = ");
            v2_0.append(p5);
            int v6_1 = v6_3.update("track_details", v0_1, v2_0.toString(), 0);
        } catch (android.database.SQLException) {
            v6_1 = -1;
        }
        com.managers.DownloadManager.c().e(String.valueOf(p5));
        return v6_1;
    }

Method com.e.a.h.h() calling method android.database.sqlite.SQLiteDatabase.update()

Couldn't retrieve source code

Method com.e.a.h.f() calling method android.database.sqlite.SQLiteDatabase.update()


    private void f(int p9, int p10)
    {
        com.managers.u v1_2;
        String v0_0 = this.getDB();
        int v2_0 = 0;
        if (p10 != 1) {
            v1_2 = 0;
            android.database.Cursor v3_0 = this.getDB().rawQuery("select * from playlist_details where download_status =0", 0);
            try {
                if ((!v3_0.moveToFirst()) && ((com.managers.DownloadManager.c().v()) && (p10 == null))) {
                    if (v1_2 == null) {
                        v1_2 = new android.content.ContentValues();
                    }
                    v1_2.put("download_time", Long.valueOf(System.currentTimeMillis()));
                }
            } catch (boolean v9_2) {
                if (v3_0 != null) {
                    if (!v3_0.isClosed()) {
                        v3_0.close();
                    }
                }
                throw v9_2;
            } catch (boolean v9_1) {
                v2_0 = v3_0;
                com.google.devtools.build.android.desugar.runtime.ThrowableExtension.printStackTrace(v9_1);
                if (v2_0 == 0) {
                    return;
                } else {
                    if (v2_0.isClosed()) {
                        return;
                    } else {
                        v2_0.close();
                        return;
                    }
                }
                if ((v3_0 != null) && (!v3_0.isClosed())) {
                    v3_0.close();
                }
            }
            v3_0.close();
            if (v1_2 != null) {
                String v5_3 = new StringBuilder();
                v5_3.append("playlist_id = ");
                v5_3.append(p9);
                v0_0.update(com.e.a.e$h.a, v1_2, v5_3.toString(), 0);
            }
            if ((this.h(p9, p10) > 0) && ((p10 == -1) || ((p10 == null) || (p10 == -2)))) {
                int v2_1 = this.d(p9);
                String v4_8 = "downloaded";
                if (p10 != null) {
                    if (p10 != -2) {
                        if (p10 == -1) {
                            String v10_4;
                            if (v2_1 != com.e.a.e$c.a) {
                                if (v2_1 != com.e.a.e$c.b) {
                                    v10_4 = "Track";
                                } else {
                                    v10_4 = "Playlist";
                                }
                            } else {
                                v10_4 = "Album";
                            }
                            String v0_3 = "";
                            if (!android.text.TextUtils.isEmpty(String.valueOf(p9))) {
                                v0_3 = this.e(String.valueOf(p9));
                            }
                            if (!android.text.TextUtils.isEmpty(v0_3)) {
                                com.managers.u v1_8 = com.managers.u.a();
                                StringBuilder v7_1 = new StringBuilder();
                                v7_1.append(v10_4);
                                v7_1.append(" - ");
                                v7_1.append(v0_3);
                                v1_8.a("Download", "Download Successful", v7_1.toString());
                            }
                        }
                    } else {
                        v4_8 = "pause";
                    }
                } else {
                    v4_8 = "downloading";
                }
                com.managers.l.a().a(p9, v2_1, v4_8);
            }
        } else {
            v1_2 = new android.content.ContentValues();
            v1_2.put("download_time", Long.valueOf(System.currentTimeMillis()));
        }
        return;
    }

Method com.e.a.h.a() calling method android.database.sqlite.SQLiteDatabase.update()

Couldn't retrieve source code

Method com.e.a.h.a() calling method android.database.sqlite.SQLiteDatabase.update()


    private void a(com.gaana.models.Tracks$Track p9, int p10)
    {
        try {
            int v1_3 = this.getDB();
            com.managers.DownloadManager v2_9 = new StringBuilder();
            v2_9.append("select track_id from ");
            v2_9.append(com.e.a.e$l.a);
            v2_9.append(" where track_id=");
            v2_9.append(p9.getBusinessObjId());
            int v1_0 = v1_3.rawQuery(v2_9.toString(), 0);
            try {
                if (v1_0.moveToFirst()) {
                    String v3_20 = new String[1];
                    v3_20[0] = String.valueOf(p9.getBusinessObjId());
                    String v4_20 = new android.content.ContentValues();
                    v4_20.put("track_metadata", com.library.util.Serializer.serialize(p9));
                    v4_20.put("track_name", p9.getRawName());
                    if (android.text.TextUtils.isEmpty(p9.getLanguage())) {
                        v4_20.put("track_language", "English");
                    } else {
                        v4_20.put("track_language", p9.getLanguage());
                    }
                    v4_20.put("has_downloaded", Integer.valueOf(p10));
                    if (p10 == null) {
                        v4_20.put("download_time", Long.valueOf(System.currentTimeMillis()));
                    }
                    v4_20.put("artist_name", p9.getArtistRawNames());
                    v4_20.put("album_name", p9.getRawAlbumTitle());
                    v4_20.put("track_artwork", p9.getArtwork());
                    v4_20.put("smart_download", Integer.valueOf(p9.getSmartDownload()));
                    v4_20.put("parental_warn", Integer.valueOf(p9.isParentalWarningEnabled()));
                    v4_20.put("free_download", Boolean.valueOf(p9.isFreeDownloadEnabled()));
                    this.getDB().update(com.e.a.e$l.a, v4_20, "track_id=?", v3_20);
                    ark>com.e.a.hark>.a.put(p9.getBusinessObjId(), p9);
                } else {
                    com.managers.DownloadManager v2_1 = new android.content.ContentValues();
                    v2_1.put("track_id", p9.getBusinessObjId());
                    v2_1.put("has_downloaded", Integer.valueOf(p10));
                    if (p10 == null) {
                        v2_1.put("download_time", Long.valueOf(System.currentTimeMillis()));
                    }
                    v2_1.put("track_metadata", com.library.util.Serializer.serialize(p9));
                    v2_1.put("track_name", p9.getRawName());
                    if (android.text.TextUtils.isEmpty(p9.getLanguage())) {
                        v2_1.put("track_language", "English");
                    } else {
                        v2_1.put("track_language", p9.getLanguage());
                    }
                    v2_1.put("artist_name", p9.getArtistRawNames());
                    v2_1.put("album_name", p9.getRawAlbumTitle());
                    v2_1.put("track_artwork", p9.getArtwork());
                    v2_1.put("parental_warn", Integer.valueOf(p9.isParentalWarningEnabled()));
                    v2_1.put("smart_download", Integer.valueOf(p9.getSmartDownload()));
                    v2_1.put("free_download", Boolean.valueOf(p9.isFreeDownloadEnabled()));
                    this.getDB().insert(com.e.a.e$l.a, 0, v2_1);
                    ark>com.e.a.hark>.a.put(p9.getBusinessObjId(), p9);
                }
            } catch (boolean v9_1) {
                if (v1_0 != 0) {
                    if (!v1_0.isClosed()) {
                        v1_0.close();
                    }
                }
                throw v9_1;
            }
            if ((v1_0 != 0) && (!v1_0.isClosed())) {
                v1_0.close();
            }
            int v1_2 = Integer.parseInt(p9.getBusinessObjId());
            com.managers.DownloadManager.c().a(v1_2, p10, 0);
            com.managers.DownloadManager.c().a(v1_2, p9.isFreeDownloadEnabled());
            return;
        } catch (boolean v9_1) {
            v1_0 = 0;
        }
    }

Method com.e.a.h.B() calling method android.database.sqlite.SQLiteDatabase.update()


    private int B()
    {
        android.database.sqlite.SQLiteDatabase v1_7;
        android.database.sqlite.SQLiteDatabase v0_3 = this.getDB().rawQuery("select playlist_id, playlist_content from playlist_details where download_status=1", 0);
        if (!v0_3.moveToFirst()) {
            v1_7 = -1;
        } else {
            do {
                android.database.sqlite.SQLiteDatabase v1_4 = ((com.gaana.models.BusinessObject) com.library.util.Serializer.deserialize(v0_3.getString(v0_3.getColumnIndex("playlist_content"))));
                if (!com.managers.ap.a().a(v1_4, 0)) {
                } else {
                    v1_7 = Integer.parseInt(v1_4.getBusinessObjId());
                }
            } while(v0_3.moveToNext());
        }
        v0_3.close();
        try {
            this.getDB().beginTransaction();
        } catch (android.database.sqlite.SQLiteDatabase v0_6) {
            this.getDB().endTransaction();
            throw v0_6;
        } catch (Exception) {
            this.getDB().endTransaction();
            return v1_7;
        }
        if (v1_7 == -1) {
            if (!com.managers.DownloadManager.c().D()) {
                com.managers.DownloadManager.c().d(1);
                String v3_4 = new android.content.ContentValues();
                v3_4.put("has_downloaded", Integer.valueOf(0));
                this.getDB().update(com.e.a.e$k.a, v3_4, "has_downloaded=-1", 0);
                android.content.ContentValues v4_6 = new android.content.ContentValues();
                v3_4.put("has_downloaded", Integer.valueOf(0));
                this.getDB().update(com.e.a.e$l.a, v4_6, "has_downloaded=-1", 0);
            }
        } else {
            this.f(v1_7, 0);
        }
        this.getDB().setTransactionSuccessful();
        this.getDB().endTransaction();
        return v1_7;
    }

Method com.e.a.f.i() calling method android.database.sqlite.SQLiteDatabase.update()


    public void i(String p7)
    {
        if (this.h(p7) > 0) {
            android.database.sqlite.SQLiteDatabase v0_2 = "";
            android.database.Cursor v1 = 0;
            try {
                android.content.ContentValues v2_7 = new StringBuilder();
                v2_7.append("SELECT id FROM ");
                v2_7.append(com.e.a.e$g.a);
                v2_7.append(" WHERE ");
                v2_7.append("track_id");
                v2_7.append("=");
                v2_7.append(p7);
                Throwable v7_2 = this.k().rawQuery(v2_7.toString(), 0);
                try {
                    if (v7_2.moveToFirst()) {
                        do {
                            android.database.sqlite.SQLiteDatabase v0_5 = v7_2.getString(v7_2.getColumnIndex("id"));
                            android.content.ContentValues v2_3 = new StringBuilder();
                            v2_3.append(",");
                            v2_3.append(v0_5);
                            v0_2 = v2_3.toString();
                        } while(v7_2.moveToNext());
                    }
                } catch (android.database.sqlite.SQLiteDatabase v0_1) {
                    v1 = v7_2;
                    if (v1 != null) {
                        v1.close();
                    }
                    throw v0_1;
                }
                if (v7_2 != null) {
                    v7_2.close();
                }
                if (!android.text.TextUtils.isEmpty(v0_2)) {
                    Throwable v7_5 = v0_2.replaceFirst(",", "");
                    android.database.sqlite.SQLiteDatabase v0_6 = this.k();
                    try {
                        v0_6.beginTransaction();
                        android.content.ContentValues v2_9 = new android.content.ContentValues();
                        v2_9.put("has_synced", Integer.valueOf(-1));
                        StringBuilder v4_3 = new StringBuilder();
                        v4_3.append("id IN (");
                        v4_3.append(v7_5);
                        v4_3.append(")");
                        v0_6.update(com.e.a.e$f.a, v2_9, v4_3.toString(), 0);
                        v0_6.setTransactionSuccessful();
                    } catch (Throwable v7_8) {
                        v0_6.endTransaction();
                        throw v7_8;
                    } catch (Exception) {
                    }
                    v0_6.endTransaction();
                }
            } catch (android.database.sqlite.SQLiteDatabase v0_1) {
            }
        }
        return;
    }

Method com.e.a.f.h() calling method android.database.sqlite.SQLiteDatabase.update()


    public int h(String p7)
    {
        Throwable v1 = 0;
        if (!android.text.TextUtils.isEmpty(p7)) {
            android.database.sqlite.SQLiteDatabase v0_1 = this.k();
            try {
                v0_1.beginTransaction();
                android.content.ContentValues v2_1 = new android.content.ContentValues();
                v2_1.put("has_synced", Integer.valueOf(-2));
                int v4_3 = new StringBuilder();
                v4_3.append("track_id=");
                v4_3.append(p7);
                Throwable v7_2 = v0_1.update(com.e.a.e$g.a, v2_1, v4_3.toString(), 0);
                try {
                    v0_1.setTransactionSuccessful();
                    v0_1.endTransaction();
                    v1 = v7_2;
                } catch (Exception) {
                    v1 = v7_2;
                    v0_1.endTransaction();
                }
            } catch (Throwable v7_3) {
                v0_1.endTransaction();
                throw v7_3;
            } catch (Exception) {
            }
        }
        return v1;
    }

Method com.e.a.f.c() calling method android.database.sqlite.SQLiteDatabase.update()


    public void c(com.gaana.models.Playlists$Playlist p20, java.util.ArrayList p21)
    {
        if ((p21 != null) && (p21.size() > 0)) {
            long v2_1 = p20.getOfflinePlaylistId();
            long v4_1 = 0;
            if (v2_1 <= 0) {
                v2_1 = this.a(p20.getBusinessObjId());
            }
            android.database.sqlite.SQLiteDatabase v7 = this.k();
            long v8_0 = System.currentTimeMillis();
            try {
                v7.beginTransaction();
                int v11_0 = 1;
                int v10_1 = (p21.size() - 1);
            } catch (Throwable v0) {
                Throwable v1_1 = v0;
                v7.endTransaction();
                throw v1_1;
            } catch (Exception) {
                v7.endTransaction();
                return;
            }
            while (v10_1 >= 0) {
                long v16;
                String v12_1 = ((com.gaana.models.Tracks$Track) p21.get(v10_1));
                if (v12_1.isMarkedForDeletionFromPlaylist()) {
                    v16 = v4_1;
                } else {
                    Long v13_2 = new android.content.ContentValues();
                    long v4_0 = (v8_0 + 1);
                    v13_2.put("added_on", Long.valueOf(v8_0));
                    String[] v9_0 = new String[2];
                    v9_0[0] = String.valueOf(v12_1.getBusinessObjId());
                    v9_0[v11_0] = String.valueOf(v2_1);
                    v16 = 0;
                    if (((long) v7.update(com.e.a.e$g.a, v13_2, "track_id= ? AND id= ?", v9_0)) != 0) {
                        v11_0 = 1;
                    } else {
                        String[] v9_4 = new String[2];
                        v9_4[0] = com.utilities.Util.a(v12_1.getName(), v12_1.getDuration(), v12_1.getArtistNames());
                        v11_0 = 1;
                        v9_4[1] = String.valueOf(v2_1);
                        long v8_8 = new android.content.ContentValues();
                        v8_8.put("added_on", Long.valueOf(v4_0));
                        v7.update(com.e.a.e$g.a, v8_8, "track_id= ? AND id= ?", v9_4);
                    }
                    v8_0 = v4_0;
                }
                v10_1--;
                v4_1 = v16;
            }
            v7.setTransactionSuccessful();
            v7.endTransaction();
            return;
        } else {
            return;
        }
    }

Method com.e.a.f.b() calling method android.database.sqlite.SQLiteDatabase.update()


    public void b(com.gaana.models.Playlists$Playlist p6, int p7)
    {
        String v0_0 = p6.getOfflinePlaylistId();
        if (v0_0 <= 0) {
            v0_0 = this.a(p6.getBusinessObjId());
        }
        if (v0_0 > 0) {
            android.database.sqlite.SQLiteDatabase v6_1 = this.k();
            try {
                v6_1.beginTransaction();
                android.content.ContentValues v2_1 = new android.content.ContentValues();
                v2_1.put("has_synced", Integer.valueOf(p7));
                StringBuilder v3_2 = new StringBuilder();
                v3_2.append("id=");
                v3_2.append(v0_0);
                v6_1.update(com.e.a.e$f.a, v2_1, v3_2.toString(), 0);
                v6_1.setTransactionSuccessful();
            } catch (Throwable v7_3) {
                v6_1.endTransaction();
                throw v7_3;
            } catch (Exception) {
            }
            v6_1.endTransaction();
        }
        return;
    }

Method com.e.a.f.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public void a(String p5, com.gaana.models.Playlists$Playlist p6)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.k();
        try {
            v0.beginTransaction();
            android.content.ContentValues v1_1 = new android.content.ContentValues();
            v1_1.put("playlist_metadata", com.services.n.a(p6));
            int v2_1 = new StringBuilder();
            v2_1.append("playlist_id=");
            v2_1.append(p5);
            v0.update(com.e.a.e$f.a, v1_1, v2_1.toString(), 0);
            v0.setTransactionSuccessful();
        } catch (Throwable v5_2) {
            v0.endTransaction();
            throw v5_2;
        } catch (Exception) {
        }
        v0.endTransaction();
        return;
    }

Method com.e.a.f.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public void a(com.gaana.models.Playlists$Playlist p9, java.util.ArrayList p10)
    {
        String v0_0 = p9.getOfflinePlaylistId();
        if (v0_0 <= 0) {
            v0_0 = this.a(p9.getBusinessObjId());
        }
        if (v0_0 > 0) {
            android.database.sqlite.SQLiteDatabase v9_1 = this.k();
            try {
                v9_1.beginTransaction();
                String[] v2_1 = (p10.size() - 1);
            } catch (android.content.ContentValues v10_4) {
                v9_1.endTransaction();
                throw v10_4;
            } catch (android.content.ContentValues v10_3) {
                com.google.devtools.build.android.desugar.runtime.ThrowableExtension.printStackTrace(v10_3);
                v9_1.endTransaction();
            }
            while (v2_1 >= null) {
                Integer v4_4 = ((com.gaana.models.Tracks$Track) p10.get(v2_1));
                android.content.ContentValues v5_1 = new android.content.ContentValues();
                v5_1.put("id", Long.valueOf(v0_0));
                v5_1.put("track_id", v4_4.getBusinessObjId());
                v5_1.put("track_metadata", com.services.n.a(v4_4));
                v5_1.put("added_on", Long.valueOf(System.currentTimeMillis()));
                v9_1.insert(com.e.a.e$g.a, "id", v5_1);
                v2_1--;
            }
            android.content.ContentValues v10_2 = new android.content.ContentValues();
            v10_2.put("has_synced", Integer.valueOf(-1));
            String[] v2_4 = new String[1];
            v2_4[0] = String.valueOf(v0_0);
            v10_2.put("time_stamp", new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new java.util.Date(System.currentTimeMillis())));
            v9_1.update(com.e.a.e$f.a, v10_2, "id=? AND has_synced!=0", v2_4);
            v9_1.setTransactionSuccessful();
        }
        return;
    }

Method com.e.a.f.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public void a(com.gaana.models.Playlists$Playlist p4, long p5, String p7, int p8)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.k();
        try {
            v0.beginTransaction();
            android.content.ContentValues v1_1 = new android.content.ContentValues();
            v1_1.put("has_synced", Integer.valueOf(p8));
            v1_1.put("playlist_id", p7);
            v1_1.put("name", p4.getName());
            v1_1.put("language", p4.getLanguage());
            v1_1.put("last_sync_time", Long.valueOf(System.currentTimeMillis()));
            Throwable v4_4 = new String[1];
            v4_4[0] = String.valueOf(p5);
            v0.update(com.e.a.e$f.a, v1_1, "id=?", v4_4);
            v0.setTransactionSuccessful();
        } catch (Throwable v4_5) {
            v0.endTransaction();
            throw v4_5;
        } catch (Exception) {
        }
        v0.endTransaction();
        return;
    }

Method com.e.a.f.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public void a(long p13, java.util.ArrayList p15)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.k();
        try {
            v0.beginTransaction();
            java.util.Iterator v15_1 = p15.iterator();
        } catch (Throwable v13_1) {
            v0.endTransaction();
            throw v13_1;
        } catch (Exception) {
            v0.endTransaction();
            return;
        }
        while (v15_1.hasNext()) {
            String v1_1 = ((com.gaana.models.Tracks$Track) v15_1.next());
            String[] v2_0 = v1_1.getBusinessObjId();
            android.content.ContentValues v3_1 = new android.content.ContentValues();
            v3_1.put("has_synced", Integer.valueOf(-2));
            String v5_2 = new String[2];
            v5_2[0] = String.valueOf(v2_0);
            v5_2[1] = String.valueOf(p13);
            if (((long) v0.update(com.e.a.e$g.a, v3_1, "track_id= ? AND id= ?", v5_2)) == 0) {
                String[] v2_7 = new String[2];
                v2_7[0] = String.valueOf(com.utilities.Util.a(v1_1.getName(), v1_1.getDuration(), v1_1.getArtistNames()));
                v2_7[1] = String.valueOf(p13);
                v0.update(com.e.a.e$g.a, v3_1, "track_id= ? AND id= ?", v2_7);
            }
        }
        v0.setTransactionSuccessful();
        v0.endTransaction();
        return;
    }

Method com.e.a.f.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public void a(long p6, String p8, int p9)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.k();
        try {
            v0.beginTransaction();
            android.content.ContentValues v1_1 = new android.content.ContentValues();
            v1_1.put("has_synced", Integer.valueOf(p9));
        } catch (String v6_1) {
            v0.endTransaction();
            throw v6_1;
        } catch (Exception) {
            v0.endTransaction();
            return;
        }
        if (p9 == 1) {
            v1_1.put("last_sync_time", Integer.valueOf(0));
        }
        v1_1.put("playlist_id", p8);
        String[] v8_1 = new String[1];
        v8_1[0] = String.valueOf(p6);
        v0.update(com.e.a.e$f.a, v1_1, "id=?", v8_1);
        v0.setTransactionSuccessful();
        v0.endTransaction();
        return;
    }

Method com.e.a.f.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public void a(long p5, String p7)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.k();
        try {
            v0.beginTransaction();
            android.content.ContentValues v1_1 = new android.content.ContentValues();
            v1_1.put("local_playlist_id", p7);
            StringBuilder v2_2 = new StringBuilder();
            v2_2.append("id=");
            v2_2.append(p5);
            v0.update(com.e.a.e$f.a, v1_1, v2_2.toString(), 0);
            v0.setTransactionSuccessful();
        } catch (Throwable v5_2) {
            v0.endTransaction();
            throw v5_2;
        } catch (Exception) {
        }
        v0.endTransaction();
        return;
    }

Method com.e.a.f.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public void a(long p5, int p7)
    {
        if (p5 > 0) {
            android.database.sqlite.SQLiteDatabase v0_1 = this.k();
            try {
                v0_1.beginTransaction();
                android.content.ContentValues v1_1 = new android.content.ContentValues();
                v1_1.put("has_synced", Integer.valueOf(p7));
                StringBuilder v2_2 = new StringBuilder();
                v2_2.append("id=");
                v2_2.append(p5);
                v0_1.update(com.e.a.e$g.a, v1_1, v2_2.toString(), 0);
                v0_1.setTransactionSuccessful();
            } catch (Throwable v5_2) {
                v0_1.endTransaction();
                throw v5_2;
            } catch (Exception) {
            }
            v0_1.endTransaction();
        }
        return;
    }

Method com.e.a.c.a() calling method android.database.sqlite.SQLiteDatabase.update()


    public void a(String p5, String p6, int p7)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.k();
        try {
            v0.beginTransaction();
            android.content.ContentValues v1_1 = new android.content.ContentValues();
            v1_1.put("has_synced", Integer.valueOf(p7));
            String[] v2_1 = new String[2];
            v2_1[0] = p5;
            v2_1[1] = p6;
            v0.update("local_favorite_table", v1_1, "id=? AND type=?", v2_1);
            v0.setTransactionSuccessful();
        } catch (Throwable v5_3) {
            v0.endTransaction();
            throw v5_3;
        } catch (Exception) {
        }
        v0.endTransaction();
        return;
    }

Method com.e.a.b.a() calling method android.database.sqlite.SQLiteDatabase.update()


    private void a(int p8, int p9, int p10, int p11)
    {
        String v3_2;
        int v4_1;
        android.database.sqlite.SQLiteDatabase v0 = this.getDB();
        android.content.ContentValues v1_3 = new StringBuilder();
        v1_3.append("SELECT * FROM ");
        v1_3.append(com.e.a.e$a.a);
        v1_3.append(" WHERE ");
        v1_3.append("business_id");
        v1_3.append("=?");
        android.content.ContentValues v1_0 = v1_3.toString();
        String v3_0 = new String[1];
        v3_0[0] = String.valueOf(p8);
        android.content.ContentValues v1_2 = v0.rawQuery(v1_0, v3_0);
        if (!v1_2.moveToFirst()) {
            v3_2 = 0;
            v4_1 = 0;
        } else {
            v3_2 = v1_2.getInt(v1_2.getColumnIndex("sync_status"));
            v4_1 = 1;
        }
        v1_2.close();
        try {
            if ((v3_2 != 1) || (p11 != 0)) {
                android.content.ContentValues v1_5 = new android.content.ContentValues();
                v1_5.put("business_id", Integer.valueOf(p8));
                v1_5.put("entity_type", Integer.valueOf(p9));
                v1_5.put("sync_type", Integer.valueOf(p10));
                v1_5.put("sync_status", Integer.valueOf(p11));
                if (v4_1 == 0) {
                    v0.insert(com.e.a.e$a.a, 0, v1_5);
                } else {
                    int v9_5 = new String[1];
                    v9_5[0] = String.valueOf(p8);
                    v0.update(com.e.a.e$a.a, v1_5, "business_id=?", v9_5);
                }
            } else {
                int v9_6 = new String[1];
                v9_6[0] = String.valueOf(p8);
                v0.delete(com.e.a.e$a.a, "business_id=?", v9_6);
                return;
            }
        } catch (String v8_6) {
            throw v8_6;
        } catch (Exception) {
        }
        return;
    }

Method com.e.a.b.a() calling method android.database.sqlite.SQLiteDatabase.update()


    private void a(int p4, int p5)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.getDB();
        try {
            v0.beginTransaction();
            String[] v1_1 = new String[1];
            v1_1[0] = String.valueOf(p4);
            Throwable v4_1 = new android.content.ContentValues();
            v4_1.put("sync_status", Integer.valueOf(p5));
            v0.update(com.e.a.e$a.a, v4_1, "sync_status=?", v1_1);
            v0.setTransactionSuccessful();
        } catch (Throwable v4_2) {
            v0.endTransaction();
            throw v4_2;
        } catch (Exception) {
        }
        v0.endTransaction();
        return;
    }

Method android.arch.persistence.a.a.a.a() calling method android.database.sqlite.SQLiteDatabase.rawQueryWithFactory()


    public android.database.Cursor a(android.arch.persistence.a.e p5)
    {
        return this.c.rawQueryWithFactory(new ark>android.arch.persistence.a.a.aark>$1(this, p5), p5.a(), ark>android.arch.persistence.a.a.aark>.b, 0);
    }

Method com.playercache.d.b() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public java.util.HashMap b()
    {
        Throwable v0_1 = new java.util.HashMap();
        this.getDB();
        android.database.Cursor v1_3 = new StringBuilder();
        v1_3.append("select * from ");
        v1_3.append(com.e.a.e$j.a);
        android.database.Cursor v1_1 = this.getDB().rawQuery(v1_3.toString(), 0);
        try {
            if (v1_1.moveToFirst()) {
                do {
                    boolean v2_4 = v1_1.getString(v1_1.getColumnIndex("track_id"));
                    v1_1.getInt(v1_1.getColumnIndex("track_cache_behaviour"));
                    v0_1.put(v2_4, new com.models.PlayerTrack(((com.gaana.models.Tracks$Track) this.a.fromJson(v1_1.getString(v1_1.getColumnIndex("track_metadata")), com.gaana.models.Tracks$Track)), 0, -1, 0));
                } while(v1_1.moveToNext());
            }
        } catch (Throwable v0_2) {
            v1_1.close();
            throw v0_2;
        } catch (android.database.SQLException) {
        }
        v1_1.close();
        return v0_1;
    }

Method com.helpshift.j.b.a.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public void a(com.helpshift.j.d.a p10)
    {
        String v1_0 = 0;
        try {
            String v2_1 = this.a.getWritableDatabase();
            try {
                v2_1.beginTransaction();
                try {
                    int v3_0 = v2_1.rawQuery("SELECT rowid FROM LOG_MESSAGES", 0);
                    try {
                        if ((v3_0 == 0) || (v3_0.getCount() < 100)) {
                            v2_1.insert("LOG_MESSAGES", 0, com.helpshift.j.a.a.a(p10));
                            v2_1.setTransactionSuccessful();
                            if (v2_1 != null) {
                                try {
                                    v2_1.endTransaction();
                                } catch (Exception v10_5) {
                                    android.util.Log.e("LogSqliteStorage", "Error inserting log inside finally block: ", v10_5);
                                }
                            }
                            if (v3_0 == 0) {
                                return;
                            } else {
                                v3_0.close();
                                return;
                            }
                        } else {
                            v3_0.moveToFirst();
                            String[] v8_1 = new String[1];
                            v8_1[0] = String.valueOf(v3_0.getInt(0));
                            v2_1.delete("LOG_MESSAGES", "rowid = ?", v8_1);
                        }
                    } catch (String v4_0) {
                        try {
                            String v6_1 = new StringBuilder();
                            v6_1.append("Error in rotation of logs + ");
                            v6_1.append(v4_0.getMessage());
                            android.util.Log.w("LogSqliteStorage", v6_1.toString());
                            v2_1.delete("LOG_MESSAGES", 0, 0);
                        } catch (Exception v10_1) {
                            v1_0 = v2_1;
                            try {
                                android.util.Log.e("LogSqliteStorage", "Error inserting log : ", v10_1);
                            } catch (Exception v10_2) {
                                v2_1 = v1_0;
                                if (v2_1 != null) {
                                    try {
                                        v2_1.endTransaction();
                                    } catch (String v1_2) {
                                        android.util.Log.e("LogSqliteStorage", "Error inserting log inside finally block: ", v1_2);
                                    }
                                }
                                if (v3_0 != 0) {
                                    v3_0.close();
                                }
                                throw v10_2;
                            }
                            if (v1_0 != null) {
                                try {
                                    v1_0.endTransaction();
                                } catch (Exception v10_3) {
                                    android.util.Log.e("LogSqliteStorage", "Error inserting log inside finally block: ", v10_3);
                                }
                            }
                            if (v3_0 == 0) {
                                return;
                            } else {
                            }
                        }
                    }
                } catch (String v4_0) {
                    v3_0 = 0;
                } catch (Exception v10_2) {
                }
            } catch (Exception v10_2) {
                v3_0 = 0;
            } catch (Exception v10_1) {
                v3_0 = 0;
            }
        } catch (Exception v10_2) {
            v2_1 = 0;
            v3_0 = 0;
        } catch (Exception v10_1) {
            v3_0 = 0;
        } catch (Exception v10_6) {
            throw v10_6;
        }
    }

Method com.helpshift.j.b.a.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public java.util.List a()
    {
        Throwable v1_0 = 0;
        try {
            Throwable v2_1 = this.a.getReadableDatabase().rawQuery("SELECT * FROM LOG_MESSAGES", 0);
            try {
                Exception v3_0 = com.helpshift.j.a.a.a(v2_1);
            } catch (Exception v3_1) {
                android.util.Log.e("LogSqliteStorage", "Error getting all log messages : ", v3_1);
                if (v2_1 == null) {
                    return v1_0;
                } else {
                    v2_1.close();
                    return v1_0;
                }
            }
            if (v2_1 != null) {
                v2_1.close();
            }
            v1_0 = v3_0;
            return v1_0;
        } catch (Throwable v2_0) {
            v2_1 = 0;
            Throwable v1_1 = v2_0;
            if (v2_1 != null) {
                v2_1.close();
            }
            throw v1_1;
        } catch (Exception v3_1) {
            v2_1 = 0;
        }
    }

Method com.helpshift.j.b.a.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public int a(java.util.List p7)
    {
        int v0_0 = 0;
        if ((p7 != null) && (!p7.isEmpty())) {
            int v1_8 = this.a(p7.size());
            String v2 = 0;
            try {
                StringBuilder v3_1 = this.a.getReadableDatabase();
                String v4_1 = new StringBuilder();
                v4_1.append("SELECT COUNT(*) FROM LOG_MESSAGES WHERE LEVEL IN ");
                v4_1.append(v1_8);
                String v4_2 = new String[0];
                String v7_3 = v3_1.rawQuery(v4_1.toString(), ((String[]) p7.toArray(v4_2)));
                try {
                    if ((v7_3 != null) && (v7_3.moveToFirst())) {
                        v0_0 = v7_3.getInt(0);
                    }
                } catch (int v0_1) {
                    v2 = v7_3;
                    if (v2 != null) {
                        v2.close();
                    }
                    throw v0_1;
                } catch (int v1_1) {
                    v2 = v7_3;
                    StringBuilder v3_3 = new StringBuilder();
                    v3_3.append("Error getting logs count : ");
                    v3_3.append(v1_1.getMessage());
                    android.util.Log.e("LogSqliteStorage", v3_3.toString());
                    if (v2 == null) {
                        return v0_0;
                    } else {
                        v2.close();
                        return v0_0;
                    }
                }
                if (v7_3 == null) {
                    return v0_0;
                } else {
                    v7_3.close();
                    return v0_0;
                }
            } catch (int v0_1) {
            } catch (int v1_1) {
            }
        } else {
            return 0;
        }
    }

Method com.moe.pushlibrary.providers.MoEProvider.isTableExists() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public boolean isTableExists(android.database.sqlite.SQLiteDatabase p6, String p7)
    {
        int v0 = 0;
        if ((p7 != 0) && (p6 != null)) {
            try {
                if (p6.isOpen()) {
                    String v3_2 = new String[2];
                    v3_2[0] = "table";
                    v3_2[1] = p7;
                    Exception v6_1 = p6.rawQuery("SELECT COUNT(*) FROM sqlite_master WHERE type = ? AND name = ?", v3_2);
                    if (v6_1.moveToFirst()) {
                        int v7_2 = v6_1.getInt(0);
                        try {
                            v6_1.close();
                        } catch (Exception v6_2) {
                            StringBuilder v2_1 = new StringBuilder();
                            v2_1.append("MoEProvider: isTableExists Exception ");
                            v2_1.append(v6_2.toString());
                            com.moengage.core.Logger.f(v2_1.toString());
                        }
                    } else {
                        return 0;
                    }
                } else {
                    return 0;
                }
            } catch (Exception v6_2) {
                v7_2 = 0;
            }
            if (v7_2 > 0) {
                v0 = 1;
            }
            return v0;
        }
        return 0;
    }

Method com.moe.pushlibrary.providers.MoEProvider.isFieldExist() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public boolean isFieldExist(String p3, String p4, android.database.sqlite.SQLiteDatabase p5)
    {
        boolean v0_1 = new StringBuilder();
        v0_1.append("PRAGMA table_info(");
        v0_1.append(p3);
        v0_1.append(")");
        boolean v3_1 = p5.rawQuery(v0_1.toString(), 0);
        java.util.ArrayList v5_2 = new java.util.ArrayList();
        try {
            if ((v3_1) && (v3_1.moveToFirst())) {
                do {
                    v5_2.add(v3_1.getString(v3_1.getColumnIndex("name")));
                } while(v3_1.moveToNext());
            }
        } catch (Throwable v4_1) {
            if (!v3_1) {
                throw v4_1;
            } else {
                v3_1.close();
            }
        }
        if (v3_1) {
            v3_1.close();
        }
        return v5_2.contains(p4);
    }

Method com.moe.pushlibrary.providers.MoEProvider.portDataFromv2() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private void portDataFromv2(android.database.sqlite.SQLiteDatabase p7)
    {
        try {
            p7.beginTransaction();
            Exception v0_1 = p7.rawQuery("SELECT * FROM moemsgs", 0);
        } catch (Exception v0_3) {
            if (p7 != null) {
                p7.endTransaction();
            }
            throw v0_3;
        } catch (Exception v0_2) {
            com.moengage.core.Logger.f("MoEProvider: portDatafromv2", v0_2);
            if (p7 == null) {
                return;
            } else {
                p7.endTransaction();
                return;
            }
            p7.setTransactionSuccessful();
            if (p7 == null) {
                return;
            } else {
            }
        }
        if ((v0_1 != null) && (v0_1.moveToFirst())) {
            do {
                boolean v2_0 = new android.content.ContentValues();
                v2_0.put("msg", v0_1.getString(1));
                v2_0.put("msgclicked", Integer.valueOf(v0_1.getInt(2)));
                v2_0.put("msgttl", Long.valueOf(Long.parseLong(v0_1.getString(3))));
                v2_0.put("gtime", Long.valueOf(Long.parseLong(v0_1.getString(4))));
                boolean v2_1 = p7.insert("MESSAGES", 0, v2_0);
                StringBuilder v4_14 = new StringBuilder();
                v4_14.append("MoEProvider:onUpgrade: Porting message data: ");
                v4_14.append(v2_1);
                com.moengage.core.Logger.v(v4_14.toString());
            } while(v0_1.moveToNext());
            v0_1.close();
        }
    }

Method com.moe.pushlibrary.providers.MoEProvider.populateDatapoints() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private void populateDatapoints(android.database.sqlite.SQLiteDatabase p9)
    {
        if (p9 != null) {
            try {
                com.moengage.core.Logger.d("Started porting DATA - FOR DATAPOINTS");
                p9.beginTransaction();
                Exception v0_4 = p9.rawQuery("SELECT _id, action, attrs, gtime, ltime FROM EVENTS", 0);
            } catch (Exception v0_3) {
                p9.endTransaction();
                throw v0_3;
            } catch (Exception v0_2) {
                com.moengage.core.Logger.f("MoEProvider: populateDatapoints", v0_2);
                p9.endTransaction();
                return;
            }
            if ((v0_4 != null) && (v0_4.moveToFirst())) {
                do {
                    boolean v2_2 = new android.content.ContentValues();
                    String v3_2 = com.moe.pushlibrary.utils.MoEHelperUtils.getDatapointJSON(v0_4.getString(1), new org.json.JSONObject(v0_4.getString(2)), Long.toString(v0_4.getLong(3)), v0_4.getString(4));
                    if (v3_2 != null) {
                        v2_2.put("details", v3_2.toString());
                        v2_2.put("gtime", Long.valueOf(v0_4.getLong(3)));
                        boolean v2_3 = p9.insert("DATAPOINTS", 0, v2_2);
                        StringBuilder v4_6 = new StringBuilder();
                        v4_6.append("MoEProvider:onUpgrade: Porting event data: ");
                        v4_6.append(v2_3);
                        com.moengage.core.Logger.v(v4_6.toString());
                    }
                } while(v0_4.moveToNext());
                v0_4.close();
            }
            p9.setTransactionSuccessful();
            p9.endTransaction();
            return;
        } else {
            return;
        }
    }

Method com.moe.pushlibrary.providers.MoEProvider$DatabaseHelper.tableExists() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private boolean tableExists(android.database.sqlite.SQLiteDatabase p4, String p5)
    {
        android.database.Cursor v0 = 0;
        try {
            int v5_3;
            StringBuilder v1_1 = new StringBuilder();
            v1_1.append("select DISTINCT tbl_name from sqlite_master where tbl_name = \'");
            v1_1.append(p5);
            v1_1.append("\'");
            android.database.Cursor v4_1 = p4.rawQuery(v1_1.toString(), 0);
            try {
                if ((v4_1 == null) || (v4_1.getCount() <= 0)) {
                    v5_3 = 0;
                } else {
                    v5_3 = 1;
                }
            } catch (int v5_1) {
                v0 = v4_1;
                if (v0 != null) {
                    v0.close();
                }
                throw v5_1;
            }
            if (v4_1 != null) {
                v4_1.close();
            }
            return v5_3;
        } catch (int v5_1) {
        }
    }

Method com.inmobi.commons.core.d.b.b() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public final declared_synchronized int b(String p3, String p4, String[] p5)
    {
        try {
            StringBuilder v0_1 = new StringBuilder("SELECT COUNT(*) FROM ");
            v0_1.append(p3);
            v0_1.append(" WHERE ");
            v0_1.append(p4);
            v0_1.append(" ; ");
            int v3_2 = this.f.rawQuery(v0_1.toString(), p5);
            v3_2.moveToFirst();
            StringBuilder v4_3 = v3_2.getInt(0);
            v3_2.close();
            return v4_3;
        } catch (int v3_6) {
            throw v3_6;
        } catch (int v3_3) {
            new StringBuilder("SDK encountered unexpected error in DbStore.getCount() method; ").append(v3_3.getMessage());
            return -1;
        }
    }

Method com.inmobi.commons.core.d.b.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public final declared_synchronized int a(String p3)
    {
        try {
            StringBuilder v0_4 = new StringBuilder("SELECT COUNT(*) FROM ");
            v0_4.append(p3);
            v0_4.append(" ; ");
            int v3_1 = this.f.rawQuery(v0_4.toString(), 0);
            v3_1.moveToFirst();
            StringBuilder v0_2 = v3_1.getInt(0);
            v3_1.close();
            return v0_2;
        } catch (int v3_5) {
            throw v3_5;
        } catch (int v3_2) {
            new StringBuilder("SDK encountered unexpected error in DbStore.getCount() method; ").append(v3_2.getMessage());
            return -1;
        }
    }

Method com.google.android.gms.internal.measurement.zzbf.zza() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private final long zza(String p1, String[] p2, long p3)
    {
        String v4 = 0;
        try {
            String v2_2 = this.getWritableDatabase().rawQuery(p1, p2);
            try {
                if (!v2_2.moveToFirst()) {
                    if (v2_2 != null) {
                        v2_2.close();
                    }
                    return 0;
                } else {
                    long v3_2 = v2_2.getLong(0);
                    if (v2_2 != null) {
                        v2_2.close();
                    }
                    return v3_2;
                }
            } catch (long v1_1) {
                v4 = v2_2;
                if (v4 != null) {
                    v4.close();
                }
                throw v1_1;
            } catch (long v3_3) {
                v4 = v2_2;
                this.zzd("Database error", p1, v3_3);
                throw v3_3;
            }
        } catch (long v1_1) {
        } catch (long v3_3) {
        }
    }

Method com.google.android.gms.internal.measurement.zzbf.zza() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private final long zza(String p4, String[] p5)
    {
        try {
            int v5_1 = this.getWritableDatabase().rawQuery(p4, 0);
            try {
                if (!v5_1.moveToFirst()) {
                    throw new android.database.sqlite.SQLiteException("Database returned empty set");
                } else {
                    android.database.sqlite.SQLiteException v0_6 = v5_1.getLong(0);
                    if (v5_1 != 0) {
                        v5_1.close();
                    }
                    return v0_6;
                }
            } catch (android.database.sqlite.SQLiteException v0_3) {
                this.zzd("Database error", p4, v0_3);
                throw v0_3;
            }
        } catch (Throwable v4_1) {
            v5_1 = 0;
            if (v5_1 != 0) {
                v5_1.close();
            }
            throw v4_1;
        } catch (int v5_2) {
            v0_3 = v5_2;
            v5_1 = 0;
        } catch (Throwable v4_1) {
        }
    }

Method com.google.android.gms.tagmanager.zzeb.zzpj() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private final int zzpj()
    {
        String v0_2 = this.zzdl("Error opening database for getNumStoredHits.");
        int v1_1 = 0;
        if (v0_2 != null) {
            long v2_1 = 0;
            try {
                String v0_3 = v0_2.rawQuery("SELECT COUNT(*) from gtm_hits", 0);
                try {
                    if (v0_3.moveToFirst()) {
                        v1_1 = ((int) v0_3.getLong(0));
                    }
                } catch (int v1_0) {
                    v2_1 = v0_3;
                    if (v2_1 != 0) {
                        v2_1.close();
                    }
                    throw v1_0;
                } catch (android.database.sqlite.SQLiteException) {
                    v2_1 = v0_3;
                    com.google.android.gms.tagmanager.zzdi.zzab("Error getting numStoredHits");
                    if (v2_1 == 0) {
                        return v1_1;
                    } else {
                        v2_1.close();
                        return v1_1;
                    }
                }
                if (v0_3 == null) {
                    return v1_1;
                } else {
                    v0_3.close();
                    return v1_1;
                }
            } catch (int v1_0) {
            }
        } else {
            return 0;
        }
    }

Method com.google.android.gms.tagmanager.zzat.zzoj() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private final int zzoj()
    {
        String v0_2 = this.zzdl("Error opening database for getNumStoredEntries.");
        int v1_1 = 0;
        if (v0_2 != null) {
            long v2_1 = 0;
            try {
                String v0_3 = v0_2.rawQuery("SELECT COUNT(*) from datalayer", 0);
                try {
                    if (v0_3.moveToFirst()) {
                        v1_1 = ((int) v0_3.getLong(0));
                    }
                } catch (int v1_0) {
                    v2_1 = v0_3;
                    if (v2_1 != 0) {
                        v2_1.close();
                    }
                    throw v1_0;
                } catch (android.database.sqlite.SQLiteException) {
                    v2_1 = v0_3;
                    com.google.android.gms.tagmanager.zzdi.zzab("Error getting numStoredEntries");
                    if (v2_1 == 0) {
                        return v1_1;
                    } else {
                        v2_1.close();
                        return v1_1;
                    }
                }
                if (v0_3 == null) {
                    return v1_1;
                } else {
                    v0_3.close();
                    return v1_1;
                }
            } catch (int v1_0) {
            }
        } else {
            return 0;
        }
    }

Method com.google.android.gms.tagmanager.zzed.onOpen() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public final void onOpen(android.database.sqlite.SQLiteDatabase p5)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            String v0_10 = p5.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_10.moveToFirst();
                v0_10.close();
            } catch (android.database.sqlite.SQLiteException v5_15) {
                v0_10.close();
                throw v5_15;
            }
        }
        if (com.google.android.gms.tagmanager.zzed.zza("gtm_hits", p5)) {
            android.database.sqlite.SQLiteException v5_1 = p5.rawQuery("SELECT * FROM gtm_hits WHERE 0", 0);
            String v0_5 = new java.util.HashSet();
            try {
                String[] v1_1 = v5_1.getColumnNames();
                int v2_1 = 0;
            } catch (String v0_6) {
                v5_1.close();
                throw v0_6;
            }
            while (v2_1 < v1_1.length) {
                v0_5.add(v1_1[v2_1]);
                v2_1++;
            }
            v5_1.close();
            if ((v0_5.remove("hit_id")) && ((v0_5.remove("hit_url")) && ((v0_5.remove("hit_time")) && (v0_5.remove("hit_first_send_time"))))) {
                if (v0_5.isEmpty()) {
                    return;
                } else {
                    throw new android.database.sqlite.SQLiteException("Database has extra columns");
                }
            } else {
                throw new android.database.sqlite.SQLiteException("Database column missing");
            }
        } else {
            p5.execSQL(com.google.android.gms.tagmanager.zzeb.zzpl());
            return;
        }
    }

Method com.google.android.gms.tagmanager.zzax.onOpen() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public final void onOpen(android.database.sqlite.SQLiteDatabase p5)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            String v0_10 = p5.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_10.moveToFirst();
                v0_10.close();
            } catch (android.database.sqlite.SQLiteException v5_15) {
                v0_10.close();
                throw v5_15;
            }
        }
        if (com.google.android.gms.tagmanager.zzax.zza("datalayer", p5)) {
            android.database.sqlite.SQLiteException v5_1 = p5.rawQuery("SELECT * FROM datalayer WHERE 0", 0);
            String v0_5 = new java.util.HashSet();
            try {
                String[] v1_1 = v5_1.getColumnNames();
                int v2_1 = 0;
            } catch (String v0_6) {
                v5_1.close();
                throw v0_6;
            }
            while (v2_1 < v1_1.length) {
                v0_5.add(v1_1[v2_1]);
                v2_1++;
            }
            v5_1.close();
            if ((v0_5.remove("key")) && ((v0_5.remove("value")) && ((v0_5.remove("ID")) && (v0_5.remove("expires"))))) {
                if (v0_5.isEmpty()) {
                    return;
                } else {
                    throw new android.database.sqlite.SQLiteException("Database has extra columns");
                }
            } else {
                throw new android.database.sqlite.SQLiteException("Database column missing");
            }
        } else {
            p5.execSQL(com.google.android.gms.tagmanager.zzat.zzol());
            return;
        }
    }

Method com.google.android.gms.internal.measurement.zzbg.onOpen() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public final void onOpen(android.database.sqlite.SQLiteDatabase p11)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            String v0_13 = p11.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_13.moveToFirst();
                v0_13.close();
            } catch (android.database.sqlite.SQLiteException v11_9) {
                v0_13.close();
                throw v11_9;
            }
        }
        int v4 = 0;
        if (this.zza(p11, "hits2")) {
            String v0_7 = com.google.android.gms.internal.measurement.zzbg.zzb(p11, "hits2");
            int v6_0 = new String[4];
            v6_0[0] = "hit_id";
            v6_0[1] = "hit_string";
            v6_0[2] = "hit_time";
            v6_0[3] = "hit_url";
            int v7_4 = 0;
            while (v7_4 < 4) {
                String v8 = v6_0[v7_4];
                if (v0_7.remove(v8)) {
                    v7_4++;
                } else {
                    String v0_14;
                    String v1_7 = String.valueOf(v8);
                    if (v1_7.length() == 0) {
                        v0_14 = new String("Database hits2 is missing required column: ");
                    } else {
                        v0_14 = "Database hits2 is missing required column: ".concat(v1_7);
                    }
                    throw new android.database.sqlite.SQLiteException(v0_14);
                }
            }
            int v6_3 = (v0_7.remove("hit_app_id") ^ 1);
            if (v0_7.isEmpty()) {
                if (v6_3 != 0) {
                    p11.execSQL("ALTER TABLE hits2 ADD COLUMN hit_app_id INTEGER");
                }
            } else {
                throw new android.database.sqlite.SQLiteException("Database hits2 has extra columns");
            }
        } else {
            p11.execSQL(com.google.android.gms.internal.measurement.zzbf.zzde());
        }
        if (this.zza(p11, "properties")) {
            android.database.sqlite.SQLiteException v11_8 = com.google.android.gms.internal.measurement.zzbg.zzb(p11, "properties");
            int v6_4 = new String[6];
            v6_4[0] = "app_uid";
            v6_4[1] = "cid";
            v6_4[2] = "tid";
            v6_4[3] = "params";
            v6_4[4] = "adid";
            v6_4[5] = "hits_count";
            while (v4 < 6) {
                String v1_1 = v6_4[v4];
                if (v11_8.remove(v1_1)) {
                    v4++;
                } else {
                    String v0_2;
                    String v1_2 = String.valueOf(v1_1);
                    if (v1_2.length() == 0) {
                        v0_2 = new String("Database properties is missing required column: ");
                    } else {
                        v0_2 = "Database properties is missing required column: ".concat(v1_2);
                    }
                    throw new android.database.sqlite.SQLiteException(v0_2);
                }
            }
            if (v11_8.isEmpty()) {
                return;
            } else {
                throw new android.database.sqlite.SQLiteException("Database properties table has extra columns");
            }
        } else {
            p11.execSQL("CREATE TABLE IF NOT EXISTS properties ( app_uid INTEGER NOT NULL, cid TEXT NOT NULL, tid TEXT NOT NULL, params TEXT NOT NULL, adid INTEGER NOT NULL, hits_count INTEGER NOT NULL, PRIMARY KEY (app_uid, cid, tid)) ;");
            return;
        }
    }

Method com.google.android.gms.internal.measurement.zzbg.zzb() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private static java.util.Set zzb(android.database.sqlite.SQLiteDatabase p3, String p4)
    {
        java.util.HashSet v0_1 = new java.util.HashSet();
        int v1_5 = new StringBuilder((22 + String.valueOf(p4).length()));
        v1_5.append("SELECT * FROM ");
        v1_5.append(p4);
        v1_5.append(" LIMIT 0");
        android.database.Cursor v3_1 = p3.rawQuery(v1_5.toString(), 0);
        try {
            Throwable v4_3 = v3_1.getColumnNames();
            int v1_1 = 0;
        } catch (Throwable v4_4) {
            v3_1.close();
            throw v4_4;
        }
        while (v1_1 < v4_3.length) {
            v0_1.add(v4_3[v1_1]);
            v1_1++;
        }
        v3_1.close();
        return v0_1;
    }

Method com.gaana.localmedia.LocalMediaActivityDbHelper.getActivity() calling method android.database.sqlite.SQLiteDatabase.rawQuery()

Couldn't retrieve source code

Method com.facebook.ads.internal.g.h.c() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    android.database.Cursor c()
    {
        return this.f().rawQuery(com.facebook.ads.internal.g.h.e, 0);
    }

Method com.facebook.ads.internal.g.h.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    String a(String p6)
    {
        if (!android.text.TextUtils.isEmpty(p6)) {
            try {
                int v1_1 = this.f();
                android.content.ContentValues v3_4 = new String[1];
                v3_4[0] = p6;
                int v1_0 = v1_1.rawQuery(ark>com.facebook.ads.internal.g.hark>.f, v3_4);
                try {
                    String v2_1;
                    if (!v1_0.moveToNext()) {
                        v2_1 = 0;
                    } else {
                        v2_1 = v1_0.getString(ark>com.facebook.ads.internal.g.hark>.a.a);
                    }
                } catch (android.database.sqlite.SQLiteDatabase v6_1) {
                    if (v1_0 != 0) {
                        v1_0.close();
                    }
                    throw v6_1;
                }
                if (android.text.TextUtils.isEmpty(v2_1)) {
                    String v2_5 = java.util.UUID.randomUUID().toString();
                    android.content.ContentValues v3_2 = new android.content.ContentValues(2);
                    v3_2.put(ark>com.facebook.ads.internal.g.hark>.a.b, v2_5);
                    v3_2.put(ark>com.facebook.ads.internal.g.hark>.b.b, p6);
                    this.f().insertOrThrow("tokens", 0, v3_2);
                    if (v1_0 != 0) {
                        v1_0.close();
                    }
                    return v2_5;
                } else {
                    if (v1_0 != 0) {
                        v1_0.close();
                    }
                    return v2_1;
                }
            } catch (android.database.sqlite.SQLiteDatabase v6_1) {
                v1_0 = 0;
            }
        } else {
            throw new IllegalArgumentException("Invalid token.");
        }
    }

Method com.facebook.ads.internal.g.c.d() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    android.database.Cursor d()
    {
        return this.f().rawQuery(com.facebook.ads.internal.g.c.l, 0);
    }

Method com.facebook.ads.internal.g.c.c() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    android.database.Cursor c()
    {
        return this.f().rawQuery("SELECT count(*) FROM events", 0);
    }

Method com.e.a.h.y() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public java.util.ArrayList y()
    {
        boolean v0_0 = java.util.Calendar.getInstance();
        v0_0.add(5, -1);
        boolean v0_12 = v0_0.getTimeInMillis();
        boolean v2_1 = 0;
        try {
            boolean v3_7 = new StringBuilder();
            v3_7.append("SELECT * FROM ");
            v3_7.append(com.e.a.e$l.a);
            v3_7.append(" where ");
            v3_7.append("offline_play_count");
            v3_7.append(" = 0");
            v3_7.append(" AND ");
            v3_7.append(v0_12);
            v3_7.append(" >= ");
            v3_7.append("download_time");
            v3_7.append(" AND ");
            v3_7.append("has_downloaded");
            v3_7.append(" = ");
            v3_7.append(1);
            v3_7.append(" order by ");
            v3_7.append("download_time");
            v3_7.append(" DESC LIMIT 20");
            boolean v0_11 = this.getDB().rawQuery(v3_7.toString(), 0);
            try {
                boolean v1_4;
                if (!v0_11.moveToFirst()) {
                    v1_4 = 0;
                } else {
                    v1_4 = new java.util.ArrayList();
                    do {
                        boolean v3_2 = v0_11.getString(v0_11.getColumnIndex("track_metadata"));
                        if (!android.text.TextUtils.isEmpty(v3_2)) {
                            v1_4.add(((com.gaana.models.Tracks$Track) com.services.n.a(v3_2)));
                        }
                    } while(v0_11.moveToNext());
                }
            } catch (boolean v1_2) {
                v2_1 = v0_11;
                if (v2_1) {
                    if (!v2_1.isClosed()) {
                        v2_1.close();
                    }
                }
                throw v1_2;
            }
            if ((v0_11) && (!v0_11.isClosed())) {
                v0_11.close();
            }
            return v1_4;
        } catch (boolean v1_2) {
        } catch (android.database.SQLException) {
            v0_11 = 0;
        }
    }

Method com.e.a.h.w() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public void w()
    {
        com.services.d v0_0 = this.getDB();
        int v4 = 0;
        int v3_7 = 0;
        try {
            do {
                v0_0.beginTransaction();
                String v7_0 = this.getDB();
                android.content.ContentValues v8_1 = new StringBuilder();
                v8_1.append("SELECT track_id , track_metadata FROM ");
                v8_1.append(com.e.a.e$l.a);
                v8_1.append(" where album_name IS NULL  OR track_artwork IS NULL LIMIT 40");
                int v6_1 = v7_0.rawQuery(v8_1.toString(), 0);
            } while(v4 == 0);
            com.services.d.a().a("PREFERENCE_DOWNLOADED_TRACKS_META_UPDATED", 1, 0);
            return;
        } catch (Throwable v1_1) {
            v6_1 = v3_7;
            if (v6_1 != 0) {
                v6_1.close();
            }
            v0_0.endTransaction();
            throw v1_1;
        } catch (int v6_2) {
            v6_1 = v3_7;
            int v3_0 = v6_2;
            com.google.devtools.build.android.desugar.runtime.ThrowableExtension.printStackTrace(v3_0);
            if (v6_1 == 0) {
                v0_0.endTransaction();
                v3_7 = v6_1;
                if (v4 != 0) {
                }
                com.services.d.a().a("PREFERENCE_DOWNLOADED_TRACKS_META_UPDATED", 1, 0);
                return;
            } else {
                v6_1.close();
            }
            v0_0.setTransactionSuccessful();
            if (v6_1 == 0) {
            }
            com.services.d.a().a("PREFERENCE_DOWNLOADED_TRACKS_META_UPDATED", 1, 0);
            return;
        } catch (Throwable v1_1) {
        }
        if (!v6_1.moveToFirst()) {
            v4 = 1;
        } else {
            do {
                int v3_4 = v6_1.getString(v6_1.getColumnIndex("track_metadata"));
                String v7_3 = v6_1.getString(v6_1.getColumnIndex("track_id"));
                int v3_6 = ((com.gaana.models.Tracks$Track) com.library.util.Serializer.deserialize(v3_4));
                android.content.ContentValues v8_3 = new android.content.ContentValues();
                v8_3.put("album_name", v3_6.getRawAlbumTitle());
                v8_3.put("track_artwork", v3_6.getArtwork());
                int v3_9 = this.getDB();
                StringBuilder v10_2 = new StringBuilder();
                v10_2.append("track_id=");
                v10_2.append(v7_3);
                v3_9.update(com.e.a.e$l.a, v8_3, v10_2.toString(), 0);
            } while(v6_1.moveToNext());
        }
    }

Method com.e.a.h.v() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public java.util.HashMap v()
    {
        Throwable v0_1 = new java.util.HashMap();
        boolean v1_4 = 0;
        try {
            boolean v2_1;
            boolean v2_0 = com.gaana.application.GaanaApplication.getInstance().getCurrentUser().getUserSubscriptionData().getMiniPacks();
        } catch (Throwable v0_2) {
            android.database.Cursor v5_5 = 0;
            boolean v8_0 = 0;
            if (v5_5 != null) {
                if (!v5_5.isClosed()) {
                    v5_5.close();
                }
            }
            if (v8_0) {
                if (!v8_0.isClosed()) {
                    v8_0.close();
                }
            }
            throw v0_2;
        } catch (android.database.sqlite.SQLiteException) {
            v5_5 = 0;
            v8_0 = 0;
        }
        if (android.text.TextUtils.isEmpty(v2_0)) {
            v2_1 = 0;
        } else {
            v2_1 = v2_0.split(",");
        }
        if ((!v2_1) || (v2_1.length <= 0)) {
            boolean v6_2 = 0;
        } else {
            int v3_3 = v2_1.length;
            int v4 = 0;
            v5_5 = 0;
            v6_2 = 0;
            while (v4 < v3_3) {
                try {
                    android.database.Cursor v7_4 = v2_1[v4];
                    boolean v8_2 = new StringBuilder();
                    v8_2.append("select playlist_content,playlist_id,playlist_type from ");
                    v8_2.append(com.e.a.e$h.a);
                    v8_2.append(" where playlist_id=");
                    v8_2.append(v7_4);
                    v8_0 = this.getDB().rawQuery(v8_2.toString(), 0);
                    try {
                        if (v8_0.moveToFirst()) {
                            boolean v6_8 = ((com.gaana.models.Playlists$Playlist) com.library.util.Serializer.deserialize(v8_0.getString(v8_0.getColumnIndex("playlist_content"))));
                            java.util.ArrayList v9_10 = v8_0.getString(v8_0.getColumnIndex("playlist_id"));
                            String v11 = "AL";
                            if (v8_0.getInt(v8_0.getColumnIndex("playlist_type")) == com.e.a.e$c.b) {
                                if ((android.text.TextUtils.isEmpty(v6_8.getIsMiniPlaylist())) || (!v6_8.getIsMiniPlaylist().equalsIgnoreCase("1"))) {
                                    v11 = "PL";
                                } else {
                                    v11 = "AR";
                                }
                            }
                            boolean v6_0 = new StringBuilder();
                            v6_0.append(v11);
                            v6_0.append(v9_10);
                            boolean v6_1 = v6_0.toString();
                            v8_0.close();
                            java.util.ArrayList v9_1 = new StringBuilder();
                            v9_1.append("select metadata.track_id,track_metadata from ");
                            v9_1.append(com.e.a.e$l.a);
                            v9_1.append(" metadata ");
                            v9_1.append(" JOIN ");
                            v9_1.append(com.e.a.e$k.a);
                            v9_1.append(" detail ON detail.track_id=metadata.track_id ");
                            v9_1.append(" where detail.playlist_id=");
                            v9_1.append(v7_4);
                            v9_1.append(" ORDER BY detail.");
                            v9_1.append("track_position_in_playlist");
                            android.database.Cursor v7_2 = v9_1.toString();
                            java.util.ArrayList v9_3 = new java.util.ArrayList();
                            android.database.Cursor v7_3 = this.getDB().rawQuery(v7_2, 0);
                            try {
                                if (v7_3.moveToFirst()) {
                                    do {
                                        v9_3.add(v7_3.getString(v7_3.getColumnIndex("track_id")));
                                    } while(v7_3.moveToNext());
                                    v0_1.put(v6_1, v9_3);
                                }
                                v5_5 = v7_3;
                            } catch (Throwable v0_2) {
                                v5_5 = v7_3;
                            } catch (android.database.sqlite.SQLiteException) {
                                v5_5 = v7_3;
                            }
                        }
                        v4++;
                        v6_2 = v8_0;
                    } catch (Throwable v0_2) {
                    }
                } catch (Throwable v0_2) {
                    v8_0 = v6_2;
                } catch (android.database.sqlite.SQLiteException) {
                    v8_0 = v6_2;
                }
            }
            v1_4 = v5_5;
        }
        if ((v1_4) && (!v1_4.isClosed())) {
            v1_4.close();
        }
        if ((!v6_2) || (v6_2.isClosed())) {
            return v0_1;
        } else {
            v6_2.close();
            return v0_1;
        }
    }

Method com.e.a.h.u() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public void u()
    {
        android.database.sqlite.SQLiteDatabase v0_0 = this.p();
        if (v0_0 != -100) {
            if (v0_0 != -100) {
                this.d(v0_0, -1);
            }
        } else {
            this.D();
        }
        android.database.sqlite.SQLiteDatabase v0_1 = this.getDB();
        android.content.ContentValues v2_1 = new java.util.ArrayList();
        try {
            int v3_1 = this.getDB().rawQuery("select playlist_id from playlist_details where download_status=1", 0);
            try {
                v0_1.beginTransaction();
            } catch (boolean v1_1) {
                if (v3_1 != 0) {
                    if (!v3_1.isClosed()) {
                        v3_1.close();
                    }
                }
                v0_1.endTransaction();
                throw v1_1;
            }
            if (v3_1.moveToFirst()) {
                do {
                    int v4_5 = v3_1.getInt(v3_1.getColumnIndex("playlist_id"));
                    if (this.i(v4_5) == 0) {
                        v2_1.add(Integer.valueOf(v4_5));
                    }
                } while(v3_1.moveToNext());
            }
            v3_1.close();
            android.content.ContentValues v2_4 = v2_1.iterator();
            while (v2_4.hasNext()) {
                int v4_17 = ((Integer) v2_4.next());
                String v5_0 = this.f(v4_17.intValue()).iterator();
                while (v5_0.hasNext()) {
                    this.e(v4_17.intValue(), ((Integer) v5_0.next()).intValue());
                }
                this.q(v4_17.intValue());
            }
            android.content.ContentValues v2_6 = new android.content.ContentValues();
            v2_6.put("download_status", Integer.valueOf(-1));
            int v4_10 = new String[1];
            v4_10[0] = String.valueOf(1);
            v0_1.update(com.e.a.e$h.a, v2_6, "download_status=?", v4_10);
            android.content.ContentValues v2_8 = new android.content.ContentValues();
            v2_8.put("has_downloaded", Integer.valueOf(-2));
            int v4_12 = new String[1];
            v4_12[0] = String.valueOf(0);
            v0_1.update(com.e.a.e$k.a, v2_8, "has_downloaded=?", v4_12);
            android.content.ContentValues v2_10 = new android.content.ContentValues();
            v2_10.put("has_downloaded", Integer.valueOf(-2));
            boolean v1_5 = new String[1];
            v1_5[0] = String.valueOf(0);
            v0_1.update(com.e.a.e$l.a, v2_10, "has_downloaded=?", v1_5);
            v0_1.setTransactionSuccessful();
            if ((v3_1 == 0) || (v3_1.isClosed())) {
                v0_1.endTransaction();
                return;
            } else {
                v3_1.close();
                v0_1.endTransaction();
                return;
            }
        } catch (boolean v1_1) {
            v3_1 = 0;
        } catch (android.database.SQLException) {
            v3_1 = 0;
        }
    }

Method com.e.a.h.r() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public void r()
    {
        android.database.sqlite.SQLiteDatabase v1 = this.getDB();
        try {
            v1.beginTransaction();
            Throwable v0_1 = v1.rawQuery("select playlist_id from playlist_details where download_status=1 limit 1", 0);
            try {
                if (v0_1.moveToFirst()) {
                    this.h(v0_1.getInt(v0_1.getColumnIndex("playlist_id")), 0);
                }
            } catch (boolean v2_0) {
                if (v0_1 != null) {
                    if (!v0_1.isClosed()) {
                        v0_1.close();
                    }
                }
                v1.endTransaction();
                throw v2_0;
            }
            v1.setTransactionSuccessful();
            if ((v0_1 == null) || (v0_1.isClosed())) {
                v1.endTransaction();
                return;
            } else {
                v0_1.close();
                v1.endTransaction();
                return;
            }
        } catch (Throwable v0_2) {
            v2_0 = v0_2;
            v0_1 = 0;
        } catch (Exception) {
            v0_1 = 0;
        }
    }

Method com.e.a.h.p() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public int p()
    {
        int v1_2;
        android.database.Cursor v0_1 = this.getDB().rawQuery("SELECT playlist_details.playlist_id FROM playlist_details WHERE playlist_details.download_status = 0", 0);
        if (!v0_1.moveToFirst()) {
            v1_2 = -1;
        } else {
            v1_2 = v0_1.getInt(v0_1.getColumnIndex("playlist_id"));
        }
        v0_1.close();
        return v1_2;
    }

Method com.e.a.h.o() calling method android.database.sqlite.SQLiteDatabase.rawQuery()

Couldn't retrieve source code

Method com.e.a.h.n() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public int n(int p8)
    {
        android.database.sqlite.SQLiteDatabase v0_0 = -1;
        int v1 = 0;
        try {
            android.database.sqlite.SQLiteDatabase v3_3;
            android.content.ContentValues v2_1 = this.getDB();
            android.database.sqlite.SQLiteDatabase v3_7 = new StringBuilder();
            v3_7.append("SELECT offline_play_count FROM ");
            v3_7.append(com.e.a.e$l.a);
            v3_7.append(" where track_id=");
            v3_7.append(p8);
            android.content.ContentValues v2_0 = v2_1.rawQuery(v3_7.toString(), 0);
            try {
                if (!v2_0.moveToFirst()) {
                    v3_3 = -1;
                } else {
                    v3_3 = v2_0.getInt(v2_0.getColumnIndex("offline_play_count"));
                }
            } catch (android.database.sqlite.SQLiteDatabase v8_1) {
                v1 = v2_0;
                if (v1 != 0) {
                    if (!v1.isClosed()) {
                        v1.close();
                    }
                }
                throw v8_1;
            }
            if ((v2_0 == null) || (v2_0.isClosed())) {
                if (v3_3 >= null) {
                    android.content.ContentValues v2_3 = new android.content.ContentValues();
                    v2_3.put("offline_play_time", Long.valueOf(System.currentTimeMillis()));
                    if (v3_3 < 2147483647) {
                        v2_3.put("offline_play_count", Integer.valueOf((v3_3 + 1)));
                    }
                    try {
                        this.getDB().beginTransaction();
                        android.database.sqlite.SQLiteDatabase v3_11 = this.getDB();
                        StringBuilder v5_3 = new StringBuilder();
                        v5_3.append("track_id = ");
                        v5_3.append(p8);
                        android.database.sqlite.SQLiteDatabase v8_3 = v3_11.update(com.e.a.e$l.a, v2_3, v5_3.toString(), 0);
                        try {
                            this.getDB().setTransactionSuccessful();
                            this.getDB().endTransaction();
                            v0_0 = v8_3;
                        } catch (android.database.SQLException) {
                            v0_0 = v8_3;
                            this.getDB().endTransaction();
                        }
                    } catch (android.database.sqlite.SQLiteDatabase v8_5) {
                        this.getDB().endTransaction();
                        throw v8_5;
                    } catch (android.database.SQLException) {
                    }
                }
                return v0_0;
            } else {
                v2_0.close();
            }
        } catch (android.database.sqlite.SQLiteDatabase v8_1) {
        } catch (android.database.SQLException) {
            v2_0 = 0;
        }
    }

Method com.e.a.h.m() calling method android.database.sqlite.SQLiteDatabase.rawQuery()

Couldn't retrieve source code

Method com.e.a.h.l() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public Boolean l(int p4)
    {
        int v0_1 = new StringBuilder();
        v0_1.append("select track_id from ");
        v0_1.append(com.e.a.e$k.a);
        v0_1.append(" where track_id = ");
        v0_1.append(p4);
        v0_1.append(" and ");
        v0_1.append("playlist_id");
        v0_1.append(" in (");
        v0_1.append(com.gaana.application.GaanaApplication.getInstance().getCurrentUser().getUserSubscriptionData().getMiniPacks());
        v0_1.append(")");
        try {
            int v0_3 = this.getDB().rawQuery(v0_1.toString(), 0);
            try {
                if (!v0_3.moveToFirst()) {
                    v0_3.close();
                    return Boolean.valueOf(0);
                } else {
                    Boolean v4_4 = this.k(p4);
                    v0_3.close();
                    return v4_4;
                }
            } catch (Boolean v4_1) {
                v0_3.close();
                throw v4_1;
            }
        } catch (Boolean v4_1) {
            v0_3 = 0;
        }
    }

Method com.e.a.h.k() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public Boolean k(int p4)
    {
        Boolean v0_1 = new StringBuilder();
        v0_1.append("select track_id from ");
        v0_1.append(com.e.a.e$l.a);
        v0_1.append(" where has_downloaded=1 and track_id = ");
        v0_1.append(p4);
        Boolean v0_2 = 0;
        try {
            Boolean v4_2 = this.getDB().rawQuery(v0_1.toString(), 0);
            try {
                if (!v4_2.moveToFirst()) {
                    v4_2.close();
                    return Boolean.valueOf(0);
                } else {
                    Boolean v0_6 = Boolean.valueOf(1);
                    v4_2.close();
                    return v0_6;
                }
            } catch (Boolean v0_4) {
                v0_2 = v4_2;
                Boolean v4_3 = v0_4;
                v0_2.close();
                throw v4_3;
            }
        } catch (Boolean v4_3) {
        }
    }

Method com.e.a.h.j() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public Boolean j(int p3)
    {
        Boolean v0_1 = new StringBuilder();
        v0_1.append("select playlist_id from playlist_details where playlist_id=");
        v0_1.append(p3);
        Boolean v3_1 = this.getDB().rawQuery(v0_1.toString(), 0);
        try {
            if (!v3_1.moveToFirst()) {
                v3_1.close();
                return Boolean.valueOf(0);
            } else {
                Boolean v0_5 = Boolean.valueOf(1);
                v3_1.close();
                return v0_5;
            }
        } catch (Boolean v0_3) {
            v3_1.close();
            throw v0_3;
        }
    }

Method com.e.a.h.g() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public java.util.concurrent.ConcurrentHashMap g()
    {
        Throwable v0_1 = new java.util.concurrent.ConcurrentHashMap();
        try {
            int v2_1 = this.getDB();
            v0_1.clear();
            int v2_0 = v2_1.rawQuery("SELECT * FROM playlist_details", 0);
            try {
                if (v2_0.moveToFirst()) {
                    do {
                        boolean v1_3 = v2_0.getInt(v2_0.getColumnIndex("playlist_id"));
                        com.managers.DownloadManager$DownloadStatus v4_0 = com.managers.DownloadManager$DownloadStatus.QUEUED;
                        switch (v2_0.getInt(v2_0.getColumnIndex("download_status"))) {
                            case -2:
                                if (this.i(v1_3) == 0) {
                                    v4_0 = com.managers.DownloadManager$DownloadStatus.PAUSED;
                                } else {
                                    v4_0 = com.managers.DownloadManager$DownloadStatus.PARTIALLY_DOWNLOADED;
                                }
                                break;
                            case -1:
                                if (this.i(v1_3) != this.h(v1_3)) {
                                    v4_0 = com.managers.DownloadManager$DownloadStatus.PARTIALLY_DOWNLOADED;
                                } else {
                                    v4_0 = com.managers.DownloadManager$DownloadStatus.DOWNLOADED;
                                }
                                break;
                            case 0:
                                v4_0 = com.managers.DownloadManager$DownloadStatus.DOWNLOADING;
                                break;
                            case 1:
                                v4_0 = com.managers.DownloadManager$DownloadStatus.QUEUED;
                                break;
                            default:
                        }
                        v0_1.put(Integer.valueOf(v1_3), v4_0);
                    } while(v2_0.moveToNext());
                }
            } catch (Throwable v0_2) {
                if (v2_0 != 0) {
                    if (!v2_0.isClosed()) {
                        v2_0.close();
                    }
                }
                throw v0_2;
            }
            if ((v2_0 == 0) || (v2_0.isClosed())) {
                return v0_1;
            } else {
                v2_0.close();
                return v0_1;
            }
        } catch (Throwable v0_2) {
            v2_0 = 0;
        } catch (android.database.sqlite.SQLiteException) {
            v2_0 = 0;
        }
    }

Method com.e.a.h.g() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public java.util.ArrayList g(int p5)
    {
        java.util.ArrayList v0_1 = new java.util.ArrayList();
        boolean v1_6 = this.getDB();
        int v2_2 = new StringBuilder();
        v2_2.append("select distinct track_id from track_details group by track_id having count(*) < 2 and has_downloaded=1 and playlist_id=");
        v2_2.append(p5);
        int v5_2 = v1_6.rawQuery(v2_2.toString(), 0);
        if (v5_2.moveToFirst()) {
            do {
                v0_1.add(Integer.valueOf(v5_2.getInt(v5_2.getColumnIndex("track_id"))));
            } while(v5_2.moveToNext());
        }
        v5_2.close();
        if (v0_1.size() == 0) {
            return 0;
        } else {
            return v0_1;
        }
    }

Method com.e.a.h.f() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public java.util.concurrent.ConcurrentHashMap f()
    {
        Throwable v0_1 = new java.util.concurrent.ConcurrentHashMap();
        boolean v1_0 = 0;
        try {
            boolean v2_2 = this.getDB();
            v0_1.clear();
            Boolean v3_3 = new StringBuilder();
            v3_3.append("SELECT distinct track_id FROM ");
            v3_3.append(com.e.a.e$l.a);
            v3_3.append(" WHERE ");
            v3_3.append("free_download");
            v3_3.append("=1 AND ");
            v3_3.append("has_downloaded");
            v3_3.append("=1");
            boolean v2_0 = v2_2.rawQuery(v3_3.toString(), 0);
            try {
                if (v2_0.moveToFirst()) {
                    do {
                        v0_1.put(Integer.valueOf(v2_0.getInt(v2_0.getColumnIndex("track_id"))), Boolean.TRUE);
                    } while(v2_0.moveToNext());
                }
            } catch (Throwable v0_2) {
                v1_0 = v2_0;
                if (v1_0) {
                    if (!v1_0.isClosed()) {
                        v1_0.close();
                    }
                }
                throw v0_2;
            } catch (android.database.sqlite.SQLiteException) {
                v1_0 = v2_0;
                if (!v1_0) {
                    return v0_1;
                } else {
                    if (v1_0.isClosed()) {
                        return v0_1;
                    } else {
                        v1_0.close();
                        return v0_1;
                    }
                }
            }
            if ((!v2_0) || (v2_0.isClosed())) {
                return v0_1;
            } else {
                v2_0.close();
                return v0_1;
            }
        } catch (Throwable v0_2) {
        } catch (android.database.sqlite.SQLiteException) {
        }
    }

Method com.e.a.h.f() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public java.util.ArrayList f(int p4)
    {
        java.util.ArrayList v0_0 = this.getDB();
        boolean v1_7 = new StringBuilder();
        v1_7.append("select track_id from track_details where playlist_id = ");
        v1_7.append(p4);
        v1_7.append(" ORDER BY ");
        v1_7.append("track_position_in_playlist");
        v1_7.append(" ASC");
        android.database.Cursor v4_3 = v0_0.rawQuery(v1_7.toString(), 0);
        java.util.ArrayList v0_2 = new java.util.ArrayList();
        if (v4_3.moveToFirst()) {
            do {
                v0_2.add(Integer.valueOf(v4_3.getInt(v4_3.getColumnIndex("track_id"))));
            } while(v4_3.moveToNext());
        }
        v4_3.close();
        return v0_2;
    }

Method com.e.a.h.e() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public void e(int p7)
    {
        int v1_1 = Boolean.valueOf(0);
        int v2_5 = this.getDB().rawQuery("select playlist_id from playlist_details where download_status = 0", 0);
        if ((v2_5.moveToFirst()) && (v2_5.getInt(v2_5.getColumnIndex("playlist_id")) == p7)) {
            v1_1 = Boolean.valueOf(1);
        }
        android.database.sqlite.SQLiteDatabase v3_4 = this.getDB();
        v3_4.beginTransaction();
        try {
            int v2_2;
            android.database.Cursor v7_2;
            this.a(p7, this.f(p7));
            this.q(p7);
        } catch (Throwable v0_1) {
            v2_5.close();
            v3_4.endTransaction();
            throw v0_1;
        } catch (android.database.sqlite.SQLiteException) {
            v2_5.close();
            v3_4.endTransaction();
            return;
        }
        if (!v1_1.booleanValue()) {
            v7_2 = v2_5;
            v2_2 = -1;
        } else {
            v7_2 = this.getDB().rawQuery("select playlist_id from playlist_details where download_status=1 limit 1", 0);
            if (!v7_2.moveToFirst()) {
            } else {
                v2_2 = v7_2.getInt(v7_2.getColumnIndex("playlist_id"));
            }
        }
        if (v2_2 != -1) {
            this.f(v2_2, 0);
        }
        v3_4.setTransactionSuccessful();
        v7_2.close();
        v3_4.endTransaction();
        return;
    }

Method com.e.a.h.e() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public void e(int p7)
    {
        int v1_1 = Boolean.valueOf(0);
        int v2_5 = this.getDB().rawQuery("select playlist_id from playlist_details where download_status = 0", 0);
        if ((v2_5.moveToFirst()) && (v2_5.getInt(v2_5.getColumnIndex("playlist_id")) == p7)) {
            v1_1 = Boolean.valueOf(1);
        }
        android.database.sqlite.SQLiteDatabase v3_4 = this.getDB();
        v3_4.beginTransaction();
        try {
            android.database.Cursor v7_2;
            int v2_2;
            this.a(p7, this.f(p7));
            this.q(p7);
        } catch (Throwable v0_1) {
            v2_5.close();
            v3_4.endTransaction();
            throw v0_1;
        } catch (android.database.sqlite.SQLiteException) {
            v2_5.close();
            v3_4.endTransaction();
            return;
        }
        if (!v1_1.booleanValue()) {
            v7_2 = v2_5;
            v2_2 = -1;
        } else {
            v7_2 = this.getDB().rawQuery("select playlist_id from playlist_details where download_status=1 limit 1", 0);
            if (!v7_2.moveToFirst()) {
            } else {
                v2_2 = v7_2.getInt(v7_2.getColumnIndex("playlist_id"));
            }
        }
        if (v2_2 != -1) {
            this.f(v2_2, 0);
        }
        v3_4.setTransactionSuccessful();
        v7_2.close();
        v3_4.endTransaction();
        return;
    }

Method com.e.a.h.e() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public java.util.concurrent.ConcurrentHashMap e()
    {
        Throwable v0_1 = new java.util.concurrent.ConcurrentHashMap();
        try {
            int v2_1 = this.getDB();
            v0_1.clear();
            int v3_5 = new StringBuilder();
            v3_5.append("SELECT distinct track_id,has_downloaded FROM ");
            v3_5.append(com.e.a.e$l.a);
            int v2_0 = v2_1.rawQuery(v3_5.toString(), 0);
            try {
                if (v2_0.moveToFirst()) {
                    do {
                        boolean v1_4 = v2_0.getInt(v2_0.getColumnIndex("track_id"));
                        int v3_3 = v2_0.getInt(v2_0.getColumnIndex("has_downloaded"));
                        com.managers.DownloadManager$DownloadStatus v4_1 = com.managers.DownloadManager$DownloadStatus.QUEUED;
                        if ((v3_3 != 0) || (v1_4 != com.managers.DownloadManager.c().k())) {
                            if (v3_3 != 1) {
                                if (v3_3 != -2) {
                                    if (v3_3 == -1) {
                                        v4_1 = com.managers.DownloadManager$DownloadStatus.TRIED_BUT_FAILED;
                                    }
                                } else {
                                    v4_1 = com.managers.DownloadManager$DownloadStatus.PAUSED;
                                }
                            } else {
                                v4_1 = com.managers.DownloadManager$DownloadStatus.DOWNLOADED;
                            }
                        } else {
                            v4_1 = com.managers.DownloadManager$DownloadStatus.DOWNLOADING;
                        }
                        v0_1.put(Integer.valueOf(v1_4), v4_1);
                    } while(v2_0.moveToNext());
                }
            } catch (Throwable v0_2) {
                if (v2_0 != 0) {
                    if (!v2_0.isClosed()) {
                        v2_0.close();
                    }
                }
                throw v0_2;
            }
            if ((v2_0 == 0) || (v2_0.isClosed())) {
                return v0_1;
            } else {
                v2_0.close();
                return v0_1;
            }
        } catch (Throwable v0_2) {
            v2_0 = 0;
        } catch (android.database.sqlite.SQLiteException) {
            v2_0 = 0;
        }
    }

Method com.e.a.h.e() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public String e(String p6)
    {
        String v0_0 = "";
        boolean v1_0 = 0;
        try {
            android.database.sqlite.SQLiteDatabase v2 = this.getDB();
            StringBuilder v3_1 = new StringBuilder();
            v3_1.append("select playlist_name from ");
            v3_1.append(com.e.a.e$h.a);
            v3_1.append(" where ");
            v3_1.append("playlist_id");
            v3_1.append("=");
            v3_1.append(p6);
            boolean v6_2 = v2.rawQuery(v3_1.toString(), 0);
            try {
                if (v6_2.moveToFirst()) {
                    v0_0 = v6_2.getString(v6_2.getColumnIndex("playlist_name"));
                }
            } catch (String v0_1) {
                v1_0 = v6_2;
                if (v1_0) {
                    if (!v1_0.isClosed()) {
                        v1_0.close();
                    }
                }
                throw v0_1;
            }
            if ((v6_2) && (!v6_2.isClosed())) {
                v6_2.close();
            }
            return v0_0;
        } catch (String v0_1) {
        }
    }

Method com.e.a.h.d() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public void d(int p6, int p7)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.getDB();
        int v1_2 = new StringBuilder();
        v1_2.append("SELECT track_details.track_id FROM track_details WHERE track_details.playlist_id = ");
        v1_2.append(p6);
        int v1_3 = v1_2.toString();
        v0.beginTransaction();
        try {
            int v1_0 = v0.rawQuery(v1_3, 0);
            try {
                if (v1_0.moveToFirst()) {
                    do {
                        boolean v2_4 = v1_0.getInt(v1_0.getColumnIndex("track_id"));
                        if (com.managers.DownloadManager.c().e(v2_4) != com.managers.DownloadManager$DownloadStatus.DOWNLOADED) {
                            this.b(v2_4, -2);
                        }
                    } while(v1_0.moveToNext());
                }
            } catch (boolean v6_1) {
                if (v1_0 != 0) {
                    if (!v1_0.isClosed()) {
                        v1_0.close();
                    }
                }
                v0.endTransaction();
                throw v6_1;
            }
            v1_0.close();
            this.f(p6, p7);
            v0.setTransactionSuccessful();
            if ((v1_0 == 0) || (v1_0.isClosed())) {
                v0.endTransaction();
                return;
            } else {
                v1_0.close();
                v0.endTransaction();
                return;
            }
        } catch (boolean v6_1) {
            v1_0 = 0;
        } catch (android.database.SQLException) {
            v1_0 = 0;
        }
    }

Method com.e.a.h.d() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public com.gaana.models.Tracks$Track d(String p6)
    {
        com.gaana.models.Tracks$Track v0_0 = 0;
        try {
            boolean v1_0 = this.getDB();
            boolean v2_2 = new StringBuilder();
            v2_2.append("select track_metadata from ");
            v2_2.append(com.e.a.e$l.a);
            v2_2.append(" where ");
            v2_2.append("track_id");
            v2_2.append("=");
            v2_2.append(p6);
            Throwable v6_2 = v1_0.rawQuery(v2_2.toString(), 0);
            try {
                if (v6_2.moveToFirst()) {
                    boolean v1_4 = v6_2.getString(v6_2.getColumnIndex("track_metadata"));
                    if (!android.text.TextUtils.isEmpty(v1_4)) {
                        v0_0 = ((com.gaana.models.Tracks$Track) com.library.util.Serializer.deserialize(v1_4));
                    }
                }
            } catch (com.gaana.models.Tracks$Track v0_2) {
                v0_0 = v6_2;
                Throwable v6_3 = v0_2;
                if (v0_0 != null) {
                    if (!v0_0.isClosed()) {
                        v0_0.close();
                    }
                }
                throw v6_3;
            }
            if ((v6_2 != null) && (!v6_2.isClosed())) {
                v6_2.close();
            }
            return v0_0;
        } catch (Throwable v6_3) {
        }
    }

Method com.e.a.h.c() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public java.util.ArrayList c()
    {
        int v0_1 = new StringBuilder();
        v0_1.append("select track_id from ");
        v0_1.append(com.e.a.e$l.a);
        int v0_3 = v0_1.toString();
        Throwable v1_4 = new java.util.ArrayList();
        try {
            int v0_2 = this.getDB().rawQuery(v0_3, 0);
            try {
                if (v0_2.moveToFirst()) {
                    do {
                        v1_4.add(v0_2.getString(v0_2.getColumnIndex("track_id")));
                    } while(v0_2.moveToNext());
                }
            } catch (Throwable v1_0) {
                if (v0_2 != 0) {
                    if (!v0_2.isClosed()) {
                        v0_2.close();
                    }
                }
                throw v1_0;
            }
            if ((v0_2 != 0) && (!v0_2.isClosed())) {
                v0_2.close();
            }
            return v1_4;
        } catch (Throwable v1_0) {
            v0_2 = 0;
        }
    }

Method com.e.a.h.c() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public com.gaana.models.BusinessObject c(String p6)
    {
        com.gaana.models.BusinessObject v0_0 = 0;
        try {
            boolean v1_1 = this.getDB();
            StringBuilder v2_1 = new StringBuilder();
            v2_1.append("select playlist_content from ");
            v2_1.append(com.e.a.e$h.a);
            v2_1.append(" where playlist_id = ");
            v2_1.append(p6);
            Throwable v6_2 = v1_1.rawQuery(v2_1.toString(), 0);
            try {
                if (v6_2.moveToFirst()) {
                    do {
                        v0_0 = ((com.gaana.models.BusinessObject) com.library.util.Serializer.deserialize(v6_2.getString(v6_2.getColumnIndex("playlist_content"))));
                    } while(v6_2.moveToNext());
                }
            } catch (com.gaana.models.BusinessObject v0_1) {
                v0_0 = v6_2;
                Throwable v6_3 = v0_1;
                if (v0_0 != null) {
                    v0_0.close();
                }
                throw v6_3;
            }
            if (v6_2 != null) {
                v6_2.close();
            }
            return v0_0;
        } catch (Throwable v6_3) {
        }
    }

Method com.e.a.h.b() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public java.util.ArrayList b(String p20, boolean p21, boolean p22, int p23, int p24)
    {
        Throwable v1_0 = p20;
        boolean v3_21 = com.e.a.e$l.a;
        com.gaana.models.OfflineTrack v5_22 = "track_id";
        String v6_0 = "";
        if ((com.managers.ap.a().m()) && (com.managers.DownloadManager.c().I())) {
            String v7_3 = new StringBuilder();
            v7_3.append(v3_21);
            v7_3.append(" metadata ");
            v3_21 = v7_3.toString();
            String v7_6 = new StringBuilder();
            v7_6.append("metadata.");
            v7_6.append("track_id");
            v5_22 = v7_6.toString();
        }
        com.gaana.models.OfflineTrack v5_25;
        String v7_8 = new StringBuilder();
        v7_8.append("select track_name,track_language,artist_name,download_time,album_name,track_artwork,parental_warn,smart_download,free_download,");
        v7_8.append(v5_22);
        v7_8.append(" from ");
        v7_8.append(v3_21);
        boolean v3_25 = v7_8.toString();
        if (!p21) {
            v5_25 = com.managers.DownloadManager.c().j(p22);
        } else {
            v5_25 = "has_downloaded=1";
        }
        if (!android.text.TextUtils.isEmpty(v5_25)) {
            if ((com.managers.ap.a().m()) && (com.managers.DownloadManager.c().I())) {
                String v7_16 = new StringBuilder();
                v7_16.append("metadata.");
                v7_16.append(v5_25);
                v5_25 = v7_16.toString();
            }
            boolean v4_13 = new StringBuilder();
            v4_13.append("");
            v4_13.append(" where (");
            v4_13.append(v5_25);
            v4_13.append(")");
            v6_0 = v4_13.toString();
        }
        if (p20 != null) {
            if (p20.contains("\'")) {
                v1_0 = p20.replaceAll("\'", "\'\'");
            }
            if (!v6_0.contains("where")) {
                boolean v4_20 = new StringBuilder();
                v4_20.append(v6_0);
                v4_20.append(" where ");
                v4_20.append("track_name");
                v4_20.append(" like \'%");
                v4_20.append(v1_0);
                v4_20.append("%\'");
                v6_0 = v4_20.toString();
            } else {
                boolean v4_1 = new StringBuilder();
                v4_1.append(v6_0);
                v4_1.append(" AND ");
                v4_1.append("track_name");
                v4_1.append(" like \'%");
                v4_1.append(v1_0);
                v4_1.append("%\'");
                v6_0 = v4_1.toString();
            }
        }
        if ((!com.managers.ap.a().m()) || (!com.managers.DownloadManager.c().I())) {
            Throwable v1_7 = new StringBuilder();
            v1_7.append(v3_25);
            v1_7.append(v6_0);
            Throwable v1_8 = v1_7.toString();
        } else {
            Throwable v1_10 = new StringBuilder();
            v1_10.append(v3_25);
            v1_10.append(" JOIN ");
            v1_10.append(com.e.a.e$k.a);
            v1_10.append(" detail ON detail.track_id=metadata.track_id ");
            v1_10.append(v6_0);
            v1_10.append(" and detail.playlist_id in (");
            v1_10.append(com.gaana.application.GaanaApplication.getInstance().getCurrentUser().getUserSubscriptionData().getMiniPacks());
            v1_10.append(")");
            v1_8 = v1_10.toString();
        }
        Throwable v1_13;
        if (p23 != 2) {
            if (!com.managers.ap.a().k()) {
                boolean v3_13 = new StringBuilder();
                v3_13.append(v1_8);
                v3_13.append(" ORDER BY ");
                v3_13.append("track_name");
                v1_13 = v3_13.toString();
            } else {
                boolean v3_15 = new StringBuilder();
                v3_15.append(v1_8);
                v3_15.append(" ORDER BY ");
                v3_15.append("free_download");
                v3_15.append(" DESC");
                v1_13 = v3_15.toString();
            }
        } else {
            boolean v3_17 = new StringBuilder();
            v3_17.append(v1_8);
            v3_17.append(" ORDER BY ");
            v3_17.append("download_time");
            v3_17.append(" DESC");
            v1_13 = v3_17.toString();
        }
        if (p24 > 0) {
            boolean v3_20 = new StringBuilder();
            v3_20.append(v1_13);
            v3_20.append(" LIMIT ");
            v3_20.append(p24);
            v1_13 = v3_20.toString();
        }
        boolean v2_2 = new java.util.ArrayList();
        try {
            Throwable v1_21 = this.getDB().rawQuery(v1_13, 0);
            boolean v3_23 = 0;
            try {
                if (v1_21.moveToFirst()) {
                    do {
                        String v7_4 = v1_21.getString(v1_21.getColumnIndex("track_name"));
                        boolean v4_9 = v1_21.getString(v1_21.getColumnIndex("track_language"));
                        String v6_1 = v1_21.getString(v1_21.getColumnIndex("track_id"));
                        String v8_0 = v1_21.getString(v1_21.getColumnIndex("artist_name"));
                        String v12 = v1_21.getString(v1_21.getColumnIndex("album_name"));
                        String v13 = v1_21.getString(v1_21.getColumnIndex("track_artwork"));
                        int v14 = v1_21.getInt(v1_21.getColumnIndex("smart_download"));
                        int v15 = v1_21.getInt(v1_21.getColumnIndex("free_download"));
                        Throwable v18 = v1_21;
                        Throwable v1_22 = v1_21.getInt(v1_21.getColumnIndex("parental_warn"));
                        com.gaana.models.OfflineTrack v5_21 = new com.gaana.models.OfflineTrack(v6_1, v7_4, v8_0, "", v1_21.getLong(v1_21.getColumnIndex("download_time")));
                        v5_21.setLanguage(v4_9);
                        v5_21.setSmartDownload(v14);
                        v5_21.setFreeDownload(v15);
                        v5_21.setAlbumName(v12);
                        v5_21.setImageUrl(v13);
                        v5_21.setPosition(v3_23);
                        v5_21.setParentalWarning(v1_22);
                        v5_21.setBusinessObjType(com.managers.URLManager$BusinessObjectType.Tracks);
                        v2_2.add(v5_21);
                        v3_23++;
                        v1_21 = v18;
                    } while(v1_21.moveToNext());
                }
            } catch (Throwable v0) {
                v3_23 = v1_21;
                Throwable v1_24 = v0;
                if (v3_23) {
                    if (!v3_23.isClosed()) {
                        v3_23.close();
                    }
                }
                throw v1_24;
            }
            if ((v1_21 != null) && (!v1_21.isClosed())) {
                v1_21.close();
            }
            return v2_2;
        } catch (Throwable v0) {
        }
    }

Method com.e.a.h.b() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public java.util.ArrayList b()
    {
        int v0_1 = new StringBuilder();
        v0_1.append("select track_id from ");
        v0_1.append(com.e.a.e$l.a);
        v0_1.append(" where ");
        v0_1.append("has_downloaded");
        v0_1.append("=");
        v0_1.append(1);
        int v0_2 = v0_1.toString();
        Throwable v1_3 = new java.util.ArrayList();
        try {
            int v0_3 = this.getDB().rawQuery(v0_2, 0);
            try {
                if (v0_3.moveToFirst()) {
                    do {
                        v1_3.add(v0_3.getString(v0_3.getColumnIndex("track_id")));
                    } while(v0_3.moveToNext());
                }
            } catch (Throwable v1_5) {
                if (v0_3 != 0) {
                    if (!v0_3.isClosed()) {
                        v0_3.close();
                    }
                }
                throw v1_5;
            }
            if ((v0_3 != 0) && (!v0_3.isClosed())) {
                v0_3.close();
            }
            return v1_3;
        } catch (Throwable v1_5) {
            v0_3 = 0;
        }
    }

Method com.e.a.h.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public boolean a(com.gaana.models.Playlists$Playlist p9, int p10)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.getDB();
        int v1_1 = 0;
        try {
            String v3_8 = new StringBuilder();
            v3_8.append("select * from ");
            v3_8.append(com.e.a.e$h.a);
            v3_8.append(" where ");
            v3_8.append("playlist_id");
            v3_8.append("=");
            v3_8.append(p10);
            String v3_6 = v0.rawQuery(v3_8.toString(), 0);
            try {
                if (v3_6.moveToFirst()) {
                    String vtmp13 = v3_6.getString(v3_6.getColumnIndex("playlist_content"));
                    if (p9 != null) {
                        this.a(p9.getArrListBusinessObj(), p10, com.e.a.e$c.b);
                    } else {
                        p9 = ((com.gaana.models.Playlists$Playlist) com.library.util.Serializer.deserialize(vtmp13));
                    }
                    int v4_1 = v3_6.getInt(v3_6.getColumnIndex("download_status"));
                    if ((v3_6 != null) && (!v3_6.isClosed())) {
                        v3_6.close();
                    }
                    try {
                        String v3_10 = new StringBuilder();
                        v3_10.append("select * from ");
                        v3_10.append(com.e.a.e$k.a);
                        v3_10.append(" where ");
                        v3_10.append("playlist_id");
                        v3_10.append("=");
                        v3_10.append(p10);
                        v3_10.append(" AND ");
                        v3_10.append("has_downloaded");
                        v3_10.append("=");
                        v3_10.append(0);
                        String v3_12 = v0.rawQuery(v3_10.toString(), 0);
                        try {
                            if (v3_12.moveToFirst()) {
                                if ((v3_12 != null) && (!v3_12.isClosed())) {
                                    v3_12.close();
                                }
                                if ((this.p() != -1) || (v4_1 == -2)) {
                                    if (v4_1 == -1) {
                                        v4_1 = 1;
                                    }
                                } else {
                                    v4_1 = 0;
                                }
                                v0.beginTransaction();
                                try {
                                    String[] v5_2 = new String[1];
                                    v5_2[0] = String.valueOf(p10);
                                    v0.delete("playlist_details", "playlist_id=?", v5_2);
                                } catch (Throwable v9_1) {
                                    v0.endTransaction();
                                    throw v9_1;
                                } catch (Exception) {
                                    v0.endTransaction();
                                    return 0;
                                }
                                if (this.h(p10) != 0) {
                                    p9.setPlaylistId(String.valueOf(p10));
                                    p9.setArrListBusinessObj(0);
                                    this.a(p10, com.e.a.e$c.b, p9, v4_1);
                                }
                                v0.setTransactionSuccessful();
                                v0.endTransaction();
                                return 1;
                            } else {
                                v3_12.close();
                                if ((v3_12 != null) && (!v3_12.isClosed())) {
                                    v3_12.close();
                                }
                                return 0;
                            }
                        } catch (Throwable v9_7) {
                            v1_1 = v3_12;
                            if (v1_1 != 0) {
                                if (!v1_1.isClosed()) {
                                    v1_1.close();
                                }
                            }
                            throw v9_7;
                        } catch (Exception) {
                            v1_1 = v3_12;
                            if (v1_1 != 0) {
                                if (!v1_1.isClosed()) {
                                    v1_1.close();
                                }
                            }
                            return 0;
                        }
                    } catch (Throwable v9_7) {
                    } catch (Exception) {
                    }
                } else {
                    v3_6.close();
                    if ((v3_6 != null) && (!v3_6.isClosed())) {
                        v3_6.close();
                    }
                    return 0;
                }
            } catch (Throwable v9_4) {
                v1_1 = v3_6;
                if (v1_1 != 0) {
                    if (!v1_1.isClosed()) {
                        v1_1.close();
                    }
                }
                throw v9_4;
            } catch (Exception) {
                v1_1 = v3_6;
                if (v1_1 != 0) {
                    if (!v1_1.isClosed()) {
                        v1_1.close();
                    }
                }
                return 0;
            }
        } catch (Throwable v9_4) {
        } catch (Exception) {
        }
    }

Method com.e.a.h.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public boolean a(com.gaana.models.Albums$Album p9, int p10)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.getDB();
        int v1_0 = 0;
        if (p9 != null) {
            String v3_13 = new java.util.ArrayList();
            int v4_15 = p9.getArrListBusinessObj();
            String[] v5_21 = 0;
            while (v5_21 < v4_15.size()) {
                v3_13.add(Integer.valueOf(((com.gaana.models.BusinessObject) v4_15.get(v5_21)).getBusinessObjId()));
                v5_21++;
            }
            try {
                int v4_4 = new StringBuilder();
                v4_4.append("select track_id from ");
                v4_4.append(com.e.a.e$k.a);
                v4_4.append(" where ");
                v4_4.append("playlist_id");
                v4_4.append("=");
                v4_4.append(p10);
                int v4_6 = v0.rawQuery(v4_4.toString(), 0);
                try {
                    while (v4_6.moveToNext()) {
                        v3_13.remove(Integer.valueOf(v4_6.getInt(v4_6.getColumnIndex("track_id"))));
                    }
                } catch (Throwable v9_6) {
                    v1_0 = v4_6;
                    if (v1_0 != 0) {
                        if (!v1_0.isClosed()) {
                            v1_0.close();
                        }
                    }
                    throw v9_6;
                }
                if ((v4_6 == 0) || (v4_6.isClosed())) {
                    if (v3_13.size() == 0) {
                        return 0;
                    }
                } else {
                    v4_6.close();
                }
            } catch (Throwable v9_6) {
            } catch (Exception) {
                v4_6 = 0;
            }
        }
        try {
            String v3_12 = new StringBuilder();
            v3_12.append("select * from ");
            v3_12.append(com.e.a.e$h.a);
            v3_12.append(" where ");
            v3_12.append("playlist_id");
            v3_12.append("=");
            v3_12.append(p10);
            String v3_15 = v0.rawQuery(v3_12.toString(), 0);
            try {
                if (v3_15.moveToFirst()) {
                    String vtmp27 = v3_15.getString(v3_15.getColumnIndex("playlist_content"));
                    if (p9 != null) {
                        this.a(p9.getArrListBusinessObj(), p10, com.e.a.e$c.a);
                    } else {
                        p9 = ((com.gaana.models.Albums$Album) com.library.util.Serializer.deserialize(vtmp27));
                    }
                    int v4_2 = v3_15.getInt(v3_15.getColumnIndex("download_status"));
                    if ((v3_15 != null) && (!v3_15.isClosed())) {
                        v3_15.close();
                    }
                    try {
                        String v3_1 = new StringBuilder();
                        v3_1.append("select * from ");
                        v3_1.append(com.e.a.e$k.a);
                        v3_1.append(" where ");
                        v3_1.append("playlist_id");
                        v3_1.append("=");
                        v3_1.append(p10);
                        v3_1.append(" AND ");
                        v3_1.append("has_downloaded");
                        v3_1.append("=");
                        v3_1.append(0);
                        String v3_3 = v0.rawQuery(v3_1.toString(), 0);
                        try {
                            if (v3_3.moveToFirst()) {
                                if ((v3_3 != null) && (!v3_3.isClosed())) {
                                    v3_3.close();
                                }
                                if ((this.p() != -1) || (v4_2 == -2)) {
                                    if (v4_2 == -1) {
                                        v4_2 = 1;
                                    }
                                } else {
                                    v4_2 = 0;
                                }
                                v0.beginTransaction();
                                try {
                                    String[] v5_14 = new String[1];
                                    v5_14[0] = String.valueOf(p10);
                                    v0.delete("playlist_details", "playlist_id=?", v5_14);
                                } catch (Throwable v9_3) {
                                    v0.endTransaction();
                                    throw v9_3;
                                } catch (Exception) {
                                    v0.endTransaction();
                                    return 0;
                                }
                                if (this.h(p10) != 0) {
                                    p9.setBusinessObjId(String.valueOf(p10));
                                    p9.setArrListBusinessObj(0);
                                    this.a(p10, com.e.a.e$c.a, p9, v4_2);
                                }
                                v0.setTransactionSuccessful();
                                v0.endTransaction();
                                return 1;
                            } else {
                                v3_3.close();
                                if ((v3_3 != null) && (!v3_3.isClosed())) {
                                    v3_3.close();
                                }
                                return 0;
                            }
                        } catch (Throwable v9_1) {
                            v1_0 = v3_3;
                            if (v1_0 != 0) {
                                if (!v1_0.isClosed()) {
                                    v1_0.close();
                                }
                            }
                            throw v9_1;
                        } catch (Exception) {
                            v1_0 = v3_3;
                            if (v1_0 != 0) {
                                if (!v1_0.isClosed()) {
                                    v1_0.close();
                                }
                            }
                            return 0;
                        }
                    } catch (Throwable v9_1) {
                    } catch (Exception) {
                    }
                } else {
                    v3_15.close();
                    if ((v3_15 != null) && (!v3_15.isClosed())) {
                        v3_15.close();
                    }
                    return 0;
                }
            } catch (Throwable v9_7) {
                v1_0 = v3_15;
                if (v1_0 != 0) {
                    if (!v1_0.isClosed()) {
                        v1_0.close();
                    }
                }
                throw v9_7;
            } catch (Exception) {
                v1_0 = v3_15;
                if (v1_0 != 0) {
                    if (!v1_0.isClosed()) {
                        v1_0.close();
                    }
                }
                return 0;
            }
        } catch (Throwable v9_7) {
        } catch (Exception) {
        }
    }

Method com.e.a.h.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public void a(String p9, com.gaana.models.BusinessObject p10)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.getDB();
        com.gaana.models.BusinessObject v1_0 = 0;
        try {
            android.database.Cursor v2_3 = new StringBuilder();
            v2_3.append("select * from ");
            v2_3.append(com.e.a.e$h.a);
            v2_3.append(" where ");
            v2_3.append("playlist_id");
            v2_3.append("=");
            v2_3.append(p9);
            android.database.Cursor v2_1 = v0.rawQuery(v2_3.toString(), 0);
            try {
                if (v2_1.moveToFirst()) {
                    com.gaana.models.BusinessObject v1_6 = ((com.gaana.models.BusinessObject) com.library.util.Serializer.deserialize(v2_1.getString(v2_1.getColumnIndex("playlist_content"))));
                    int v3_2 = com.e.a.e$c.b;
                    if (!(v1_6 instanceof com.gaana.models.Playlists$Playlist)) {
                        if ((v1_6 instanceof com.gaana.models.Albums$Album)) {
                            int v3_4 = ((com.gaana.models.Albums$Album) v1_6);
                            v3_4.setFavoriteCount(((com.gaana.models.Albums$Album) p10).getFavoriteCount());
                            v3_4.setName(p10.getName());
                            v3_2 = com.e.a.e$c.a;
                        }
                    } else {
                        String v4_6 = ((com.gaana.models.Playlists$Playlist) v1_6);
                        v4_6.setFavoriteCount(((com.gaana.models.Playlists$Playlist) p10).getFavoriteCount());
                        v4_6.setName(p10.getName());
                    }
                    boolean v10_5 = v2_1.getInt(v2_1.getColumnIndex("download_status"));
                    v0.beginTransaction();
                    try {
                        String[] v5_4 = new String[1];
                        v5_4[0] = String.valueOf(p9);
                        v0.delete("playlist_details", "playlist_id=?", v5_4);
                        this.a(Integer.parseInt(p9), v3_2, v1_6, v10_5);
                        v0.setTransactionSuccessful();
                    } catch (Exception) {
                        if (v2_1 == null) {
                            v0.endTransaction();
                            return;
                        } else {
                            if (v2_1.isClosed()) {
                                v0.endTransaction();
                                return;
                            } else {
                                v2_1.close();
                                v0.endTransaction();
                                return;
                            }
                        }
                    } catch (boolean v9_4) {
                        if (v2_1 != null) {
                            if (!v2_1.isClosed()) {
                                v2_1.close();
                            }
                        }
                        v0.endTransaction();
                        throw v9_4;
                    }
                    if ((v2_1 == null) || (v2_1.isClosed())) {
                        v0.endTransaction();
                        return;
                    } else {
                    }
                } else {
                    v2_1.close();
                    return;
                }
            } catch (Exception) {
                v1_0 = v2_1;
                if (v1_0 != null) {
                    if (!v1_0.isClosed()) {
                        v1_0.close();
                    }
                }
                return;
            }
        } catch (Exception) {
        }
    }

Method com.e.a.h.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public void a(com.gaana.models.Tracks$Track p8)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.getDB();
        int v1_2 = Integer.parseInt(p8.getBusinessObjId());
        int v2_3 = new StringBuilder();
        v2_3.append("SELECT * FROM track_details WHERE track_id = ");
        v2_3.append(v1_2);
        boolean v3_0 = 0;
        try {
            int v2_1 = v0.rawQuery(v2_3.toString(), 0);
            try {
                int v4_1;
                if (!v2_1.moveToFirst()) {
                    v4_1 = -1;
                } else {
                    v4_1 = v2_1.getInt(v2_1.getColumnIndex("playlist_id"));
                }
            } catch (boolean v8_1) {
                if (v2_1 != 0) {
                    if (!v2_1.isClosed()) {
                        v2_1.close();
                    }
                }
                if (v3_0) {
                    if (!v3_0.isClosed()) {
                        v3_0.close();
                    }
                }
                v0.endTransaction();
                throw v8_1;
            }
            if (v4_1 == -1) {
                this.a(p8, 0);
            }
            v0.beginTransaction();
            boolean v8_2 = 0;
            this.b(v1_2, 0);
            android.database.Cursor v5_2 = this.getDB().rawQuery("select * from playlist_details where download_status = 0", 0);
            try {
                if (!v5_2.moveToFirst()) {
                    if (!com.managers.DownloadManager.c().v()) {
                        v8_2 = 1;
                    } else {
                    }
                } else {
                    if (v4_1 != v5_2.getInt(v5_2.getColumnIndex("playlist_id"))) {
                    } else {
                    }
                }
            } catch (boolean v8_1) {
                v3_0 = v5_2;
            } catch (android.database.SQLException) {
                v3_0 = v5_2;
            }
            this.h(v4_1, v8_2);
            v0.setTransactionSuccessful();
            if ((v2_1 != 0) && (!v2_1.isClosed())) {
                v2_1.close();
            }
            if ((v5_2 == null) || (v5_2.isClosed())) {
                v0.endTransaction();
                return;
            } else {
                v5_2.close();
                v0.endTransaction();
                return;
            }
        } catch (boolean v8_1) {
            v2_1 = 0;
        } catch (android.database.SQLException) {
            v2_1 = 0;
        }
    }

Method com.e.a.h.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public java.util.ArrayList a(String p20, boolean p21, boolean p22, int p23, int p24, int p25)
    {
        Throwable v1_0 = p20;
        boolean v2_0 = com.e.a.e$l.a;
        boolean v4_10 = "track_id";
        com.gaana.models.OfflineTrack v5_0 = "";
        if ((com.managers.ap.a().m()) && (com.managers.DownloadManager.c().I())) {
            String v6_3 = new StringBuilder();
            v6_3.append(v2_0);
            v6_3.append(" metadata ");
            v2_0 = v6_3.toString();
            String v6_5 = new StringBuilder();
            v6_5.append("metadata.");
            v6_5.append("track_id");
            v4_10 = v6_5.toString();
        }
        boolean v4_14;
        String v6_8 = new StringBuilder();
        v6_8.append("select track_name,track_language,artist_name,download_time,album_name,track_artwork,parental_warn,smart_download,free_download,");
        v6_8.append(v4_10);
        v6_8.append(" from ");
        v6_8.append(v2_0);
        boolean v2_27 = v6_8.toString();
        if (!p21) {
            v4_14 = com.managers.DownloadManager.c().j(p22);
        } else {
            v4_14 = "has_downloaded=1";
        }
        if (!android.text.TextUtils.isEmpty(v4_14)) {
            if ((com.managers.ap.a().m()) && (com.managers.DownloadManager.c().I())) {
                String v6_16 = new StringBuilder();
                v6_16.append("metadata.");
                v6_16.append(v4_14);
                v4_14 = v6_16.toString();
            }
            boolean v3_8 = new StringBuilder();
            v3_8.append("");
            v3_8.append(" where (");
            v3_8.append(v4_14);
            v3_8.append(")");
            v5_0 = v3_8.toString();
        }
        if (p20 != null) {
            if (p20.contains("\'")) {
                v1_0 = p20.replaceAll("\'", "\'\'");
            }
            if (!v5_0.contains("where")) {
                boolean v3_15 = new StringBuilder();
                v3_15.append(v5_0);
                v3_15.append(" where ");
                v3_15.append("track_name");
                v3_15.append(" like \'%");
                v3_15.append(v1_0);
                v3_15.append("%\'");
                v5_0 = v3_15.toString();
            } else {
                boolean v3_1 = new StringBuilder();
                v3_1.append(v5_0);
                v3_1.append(" AND ");
                v3_1.append("track_name");
                v3_1.append(" like \'%");
                v3_1.append(v1_0);
                v3_1.append("%\'");
                v5_0 = v3_1.toString();
            }
        }
        if ((!com.managers.ap.a().m()) || (!com.managers.DownloadManager.c().I())) {
            Throwable v1_7 = new StringBuilder();
            v1_7.append(v2_27);
            v1_7.append(v5_0);
            Throwable v1_8 = v1_7.toString();
        } else {
            Throwable v1_10 = new StringBuilder();
            v1_10.append(v2_27);
            v1_10.append(" JOIN ");
            v1_10.append(com.e.a.e$k.a);
            v1_10.append(" detail ON detail.track_id=metadata.track_id ");
            v1_10.append(v5_0);
            v1_10.append(" and detail.playlist_id in (");
            v1_10.append(com.gaana.application.GaanaApplication.getInstance().getCurrentUser().getUserSubscriptionData().getMiniPacks());
            v1_10.append(")");
            v1_8 = v1_10.toString();
        }
        Throwable v1_13;
        if (p23 != 2) {
            if (!com.managers.ap.a().k()) {
                boolean v2_14 = new StringBuilder();
                v2_14.append(v1_8);
                v2_14.append(" ORDER BY ");
                v2_14.append("track_name");
                v1_13 = v2_14.toString();
            } else {
                boolean v2_16 = new StringBuilder();
                v2_16.append(v1_8);
                v2_16.append(" ORDER BY ");
                v2_16.append("free_download");
                v2_16.append(" DESC");
                v1_13 = v2_16.toString();
            }
        } else {
            boolean v2_19 = new StringBuilder();
            v2_19.append(v1_8);
            v2_19.append(" ORDER BY ");
            v2_19.append("download_time");
            v2_19.append(" DESC");
            v1_13 = v2_19.toString();
        }
        boolean v2_21 = new StringBuilder();
        v2_21.append(v1_13);
        v2_21.append(",");
        v2_21.append("track_id");
        Throwable v1_22 = v2_21.toString();
        boolean v2_23 = new StringBuilder();
        v2_23.append(v1_22);
        v2_23.append(" LIMIT ");
        v2_23.append(p24);
        v2_23.append(",");
        v2_23.append(p25);
        Throwable v1_27 = v2_23.toString();
        boolean v2_25 = new java.util.ArrayList();
        try {
            Throwable v1_28 = this.getDB().rawQuery(v1_27, 0);
            boolean v3_5 = 0;
            try {
                if (v1_28.moveToFirst()) {
                    do {
                        String v7_0 = v1_28.getString(v1_28.getColumnIndex("track_name"));
                        boolean v4_9 = v1_28.getString(v1_28.getColumnIndex("track_language"));
                        String v6_6 = v1_28.getString(v1_28.getColumnIndex("track_id"));
                        String v8 = v1_28.getString(v1_28.getColumnIndex("artist_name"));
                        String v12 = v1_28.getString(v1_28.getColumnIndex("album_name"));
                        String v13 = v1_28.getString(v1_28.getColumnIndex("track_artwork"));
                        long v10 = v1_28.getLong(v1_28.getColumnIndex("download_time"));
                        int v14 = v1_28.getInt(v1_28.getColumnIndex("parental_warn"));
                        int v15 = v1_28.getInt(v1_28.getColumnIndex("smart_download"));
                        Throwable v18 = v1_28;
                        Throwable v1_29 = v1_28.getInt(v1_28.getColumnIndex("free_download"));
                        com.gaana.models.OfflineTrack v5_19 = new com.gaana.models.OfflineTrack(v6_6, v7_0, v8, "", v10);
                        v5_19.setSmartDownload(v15);
                        v5_19.setFreeDownload(v1_29);
                        v5_19.setLanguage(v4_9);
                        v5_19.setAlbumName(v12);
                        v5_19.setImageUrl(v13);
                        v5_19.setPosition(v3_5);
                        v5_19.setParentalWarning(v14);
                        v5_19.setBusinessObjType(com.managers.URLManager$BusinessObjectType.Tracks);
                        v2_25.add(v5_19);
                        v3_5++;
                        v1_28 = v18;
                    } while(v1_28.moveToNext());
                }
            } catch (Throwable v0) {
                v3_5 = v1_28;
                Throwable v1_31 = v0;
                if (v3_5) {
                    if (!v3_5.isClosed()) {
                        v3_5.close();
                    }
                }
                throw v1_31;
            }
            if ((v1_28 != null) && (!v1_28.isClosed())) {
                v1_28.close();
            }
            return v2_25;
        } catch (Throwable v0) {
        }
    }

Method com.e.a.h.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public java.util.ArrayList a(String p3, int p4, boolean p5, boolean p6, int p7, int p8, int p9)
    {
        boolean v5_1 = new java.util.ArrayList();
        long v6_10 = new StringBuilder();
        v6_10.append("select playlist_content,download_time from ");
        v6_10.append(com.e.a.e$h.a);
        long v6_15 = v6_10.toString();
        String v0_1 = new StringBuilder();
        v0_1.append(v6_15);
        v0_1.append(" where ");
        v0_1.append("playlist_type");
        v0_1.append("=");
        v0_1.append(p4);
        boolean v4_11 = v0_1.toString();
        if (p3 != null) {
            if (p3.contains("\'")) {
                p3 = p3.replaceAll("\'", "\'\'");
            }
            long v6_12 = new StringBuilder();
            v6_12.append(v4_11);
            v6_12.append(" AND ");
            v6_12.append("playlist_name");
            v6_12.append(" like \'%");
            v6_12.append(p3);
            v6_12.append("%\'");
            v4_11 = v6_12.toString();
        }
        Throwable v3_6;
        if (p7 != 2) {
            Throwable v3_5 = new StringBuilder();
            v3_5.append(v4_11);
            v3_5.append(" ORDER BY ");
            v3_5.append("playlist_name");
            v3_6 = v3_5.toString();
        } else {
            Throwable v3_8 = new StringBuilder();
            v3_8.append(v4_11);
            v3_8.append(" ORDER BY ");
            v3_8.append("download_time");
            v3_8.append(" DESC");
            v3_6 = v3_8.toString();
        }
        boolean v4_21 = new StringBuilder();
        v4_21.append(v3_6);
        v4_21.append(",");
        v4_21.append("playlist_id");
        Throwable v3_11 = v4_21.toString();
        boolean v4_22 = 20;
        if (p9 >= 20) {
            v4_22 = p9;
        }
        if (v4_22) {
            long v6_14 = new StringBuilder();
            v6_14.append(v3_11);
            v6_14.append(" LIMIT ");
            v6_14.append(p8);
            v6_14.append(",");
            v6_14.append(v4_22);
            v3_11 = v6_14.toString();
        }
        try {
            Throwable v3_1 = this.getDB().rawQuery(v3_11, 0);
            try {
                if (v3_1.moveToFirst()) {
                    do {
                        boolean v4_4 = v3_1.getString(v3_1.getColumnIndex("playlist_content"));
                        long v6_2 = v3_1.getLong(v3_1.getColumnIndex("download_time"));
                        boolean v4_6 = ((com.gaana.models.BusinessObject) com.library.util.Serializer.deserialize(v4_4));
                        if ((v4_6) && (!"-100".equals(v4_6.getBusinessObjId()))) {
                            if (!(v4_6 instanceof com.gaana.models.Playlists$Playlist)) {
                                if ((v4_6 instanceof com.gaana.models.Albums$Album)) {
                                    v4_6.setBusinessObjType(com.managers.URLManager$BusinessObjectType.Albums);
                                    ((com.gaana.models.Albums$Album) v4_6).setDownloadTime(v6_2);
                                }
                            } else {
                                v4_6.setBusinessObjType(com.managers.URLManager$BusinessObjectType.Playlists);
                                ((com.gaana.models.Playlists$Playlist) v4_6).setDownloadTime(v6_2);
                            }
                            v5_1.add(v4_6);
                        }
                    } while(v3_1.moveToNext());
                }
            } catch (boolean v4_8) {
                if (v3_1 != null) {
                    if (!v3_1.isClosed()) {
                        v3_1.close();
                    }
                }
                throw v4_8;
            }
            if ((v3_1 == null) || (v3_1.isClosed())) {
                return v5_1;
            } else {
                v3_1.close();
                return v5_1;
            }
        } catch (Throwable v3_14) {
            v4_8 = v3_14;
            v3_1 = 0;
        } catch (Exception) {
            v3_1 = 0;
        }
    }

Method com.e.a.h.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public java.util.ArrayList a(String p20, int p21, int p22, int p23)
    {
        Throwable v1_0 = p20;
        boolean v4_2 = com.e.a.e$l.a;
        String v6_1 = "track_id";
        String v7_0 = "";
        if ((com.managers.ap.a().m()) && (com.managers.DownloadManager.c().I())) {
            String v8_4 = new StringBuilder();
            v8_4.append(v4_2);
            v8_4.append(" metadata ");
            v4_2 = v8_4.toString();
            String v8_6 = new StringBuilder();
            v8_6.append("metadata.");
            v8_6.append("track_id");
            v6_1 = v8_6.toString();
        }
        String v8_9 = new StringBuilder();
        v8_9.append("select track_name,track_language,artist_name,download_time,album_name,track_artwork,parental_warn,smart_download,free_download,");
        v8_9.append(v6_1);
        v8_9.append(" from ");
        v8_9.append(v4_2);
        boolean v4_11 = v8_9.toString();
        String v6_3 = "";
        if (p21 != -1) {
            String v6_5 = new StringBuilder();
            v6_5.append("has_downloaded=");
            v6_5.append(p21);
            v6_3 = v6_5.toString();
        }
        boolean v2_34;
        if (android.text.TextUtils.isEmpty(v6_3)) {
            boolean v2_33 = new StringBuilder();
            v2_33.append(v6_3);
            v2_33.append("smart_download=1");
            v2_34 = v2_33.toString();
        } else {
            boolean v2_36 = new StringBuilder();
            v2_36.append(v6_3);
            v2_36.append(" and smart_download=1");
            v2_34 = v2_36.toString();
        }
        if (!android.text.TextUtils.isEmpty(v2_34)) {
            if ((com.managers.ap.a().m()) && (com.managers.DownloadManager.c().I())) {
                String v6_14 = new StringBuilder();
                v6_14.append("metadata.");
                v6_14.append(v2_34);
                v2_34 = v6_14.toString();
            }
            com.gaana.models.OfflineTrack v5_28 = new StringBuilder();
            v5_28.append("");
            v5_28.append(" where (");
            v5_28.append(v2_34);
            v5_28.append(")");
            v7_0 = v5_28.toString();
        }
        if (p20 != null) {
            if (p20.contains("\'")) {
                v1_0 = p20.replaceAll("\'", "\'\'");
            }
            if (!v7_0.contains("where")) {
                boolean v2_5 = new StringBuilder();
                v2_5.append(v7_0);
                v2_5.append(" where ");
                v2_5.append("track_name");
                v2_5.append(" like \'%");
                v2_5.append(v1_0);
                v2_5.append("%\'");
                v7_0 = v2_5.toString();
            } else {
                boolean v2_7 = new StringBuilder();
                v2_7.append(v7_0);
                v2_7.append(" AND ");
                v2_7.append("track_name");
                v2_7.append(" like \'%");
                v2_7.append(v1_0);
                v2_7.append("%\'");
                v7_0 = v2_7.toString();
            }
        }
        if ((!com.managers.ap.a().m()) || (!com.managers.DownloadManager.c().I())) {
            Throwable v1_8 = new StringBuilder();
            v1_8.append(v4_11);
            v1_8.append(v7_0);
            Throwable v1_9 = v1_8.toString();
        } else {
            Throwable v1_11 = new StringBuilder();
            v1_11.append(v4_11);
            v1_11.append(" JOIN ");
            v1_11.append(com.e.a.e$k.a);
            v1_11.append(" detail ON detail.track_id=metadata.track_id ");
            v1_11.append(v7_0);
            v1_11.append(" and detail.playlist_id in (");
            v1_11.append(com.gaana.application.GaanaApplication.getInstance().getCurrentUser().getUserSubscriptionData().getMiniPacks());
            v1_11.append(")");
            v1_9 = v1_11.toString();
        }
        Throwable v1_14;
        if (p22 != 2) {
            if (!com.managers.ap.a().k()) {
                boolean v2_21 = new StringBuilder();
                v2_21.append(v1_9);
                v2_21.append(" ORDER BY ");
                v2_21.append("track_name");
                v1_14 = v2_21.toString();
            } else {
                boolean v2_23 = new StringBuilder();
                v2_23.append(v1_9);
                v2_23.append(" ORDER BY ");
                v2_23.append("free_download");
                v2_23.append(" DESC");
                v1_14 = v2_23.toString();
            }
        } else {
            boolean v2_25 = new StringBuilder();
            v2_25.append(v1_9);
            v2_25.append(" ORDER BY ");
            v2_25.append("download_time");
            v2_25.append(" DESC");
            v1_14 = v2_25.toString();
        }
        if (p23 > 0) {
            boolean v2_27 = new StringBuilder();
            v2_27.append(v1_14);
            v2_27.append(" LIMIT ");
            v2_27.append(p23);
            v1_14 = v2_27.toString();
        }
        boolean v2_29 = new java.util.ArrayList();
        try {
            Throwable v1_22 = this.getDB().rawQuery(v1_14, 0);
            boolean v3_2 = 0;
            try {
                if (v1_22.moveToFirst()) {
                    do {
                        String v7_1 = v1_22.getString(v1_22.getColumnIndex("track_name"));
                        boolean v4_9 = v1_22.getString(v1_22.getColumnIndex("track_language"));
                        String v6_0 = v1_22.getString(v1_22.getColumnIndex("track_id"));
                        String v8_7 = v1_22.getString(v1_22.getColumnIndex("artist_name"));
                        String v12 = v1_22.getString(v1_22.getColumnIndex("album_name"));
                        String v13 = v1_22.getString(v1_22.getColumnIndex("track_artwork"));
                        int v14 = v1_22.getInt(v1_22.getColumnIndex("smart_download"));
                        int v15 = v1_22.getInt(v1_22.getColumnIndex("free_download"));
                        Throwable v18 = v1_22;
                        Throwable v1_23 = v1_22.getInt(v1_22.getColumnIndex("parental_warn"));
                        com.gaana.models.OfflineTrack v5_25 = new com.gaana.models.OfflineTrack(v6_0, v7_1, v8_7, "", v1_22.getLong(v1_22.getColumnIndex("download_time")));
                        v5_25.setLanguage(v4_9);
                        v5_25.setSmartDownload(v14);
                        v5_25.setFreeDownload(v15);
                        v5_25.setAlbumName(v12);
                        v5_25.setImageUrl(v13);
                        v5_25.setPosition(v3_2);
                        v5_25.setParentalWarning(v1_23);
                        v5_25.setBusinessObjType(com.managers.URLManager$BusinessObjectType.Tracks);
                        v2_29.add(v5_25);
                        v3_2++;
                        v1_22 = v18;
                    } while(v1_22.moveToNext());
                }
            } catch (Throwable v0) {
                v3_2 = v1_22;
                Throwable v1_25 = v0;
                if (v3_2) {
                    if (!v3_2.isClosed()) {
                        v3_2.close();
                    }
                }
                throw v1_25;
            }
            if ((v1_22 != null) && (!v1_22.isClosed())) {
                v1_22.close();
            }
            return v2_29;
        } catch (Throwable v0) {
        }
    }

Method com.e.a.h.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public java.util.ArrayList a(String p7, int p8)
    {
        boolean v0_1 = new java.util.ArrayList();
        long v1_7 = new StringBuilder();
        v1_7.append("select playlist_content,download_time from ");
        v1_7.append(com.e.a.e$h.a);
        long v1_14 = v1_7.toString();
        String v2_1 = new StringBuilder();
        v2_1.append(v1_14);
        v2_1.append(" where ");
        v2_1.append("playlist_type");
        v2_1.append("=");
        v2_1.append(p8);
        boolean v8_5 = v2_1.toString();
        if (p7 != null) {
            if (p7.contains("\'")) {
                p7 = p7.replaceAll("\'", "\'\'");
            }
            long v1_9 = new StringBuilder();
            v1_9.append(v8_5);
            v1_9.append(" AND ");
            v1_9.append("playlist_name");
            v1_9.append(" like \'%");
            v1_9.append(p7);
            v1_9.append("%\'");
            v8_5 = v1_9.toString();
        }
        Throwable v7_3 = new StringBuilder();
        v7_3.append(v8_5);
        v7_3.append(" ORDER BY ");
        v7_3.append("playlist_name");
        try {
            Throwable v7_5 = this.getDB().rawQuery(v7_3.toString(), 0);
            try {
                if (v7_5.moveToFirst()) {
                    do {
                        boolean v8_15 = v7_5.getString(v7_5.getColumnIndex("playlist_content"));
                        long v1_13 = v7_5.getLong(v7_5.getColumnIndex("download_time"));
                        boolean v8_17 = ((com.gaana.models.BusinessObject) com.library.util.Serializer.deserialize(v8_15));
                        if ((v8_17) && (!"-100".equals(v8_17.getBusinessObjId()))) {
                            if (!(v8_17 instanceof com.gaana.models.Playlists$Playlist)) {
                                if ((v8_17 instanceof com.gaana.models.Albums$Album)) {
                                    ((com.gaana.models.Albums$Album) v8_17).setDownloadTime(v1_13);
                                }
                            } else {
                                ((com.gaana.models.Playlists$Playlist) v8_17).setDownloadTime(v1_13);
                            }
                            v0_1.add(v8_17);
                        }
                    } while(v7_5.moveToNext());
                }
            } catch (boolean v8_2) {
                if (v7_5 != null) {
                    if (!v7_5.isClosed()) {
                        v7_5.close();
                    }
                }
                throw v8_2;
            }
            if ((v7_5 == null) || (v7_5.isClosed())) {
                return v0_1;
            } else {
                v7_5.close();
                return v0_1;
            }
        } catch (Throwable v7_6) {
            v8_2 = v7_6;
            v7_5 = 0;
        } catch (Exception) {
            v7_5 = 0;
        }
    }

Method com.e.a.h.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public java.util.ArrayList a(int p4)
    {
        Throwable v0_1 = new java.util.ArrayList();
        boolean v1_5 = new StringBuilder();
        v1_5.append("select playlist_id from ");
        v1_5.append(com.e.a.e$h.a);
        boolean v1_14 = v1_5.toString();
        android.database.sqlite.SQLiteDatabase v2_1 = new StringBuilder();
        v2_1.append(v1_14);
        v2_1.append(" where ");
        v2_1.append("playlist_type");
        v2_1.append("=");
        v2_1.append(p4);
        try {
            int v4_2 = this.getDB().rawQuery(v2_1.toString(), 0);
            try {
                if (v4_2.moveToFirst()) {
                    do {
                        v0_1.add(v4_2.getString(v4_2.getColumnIndex("playlist_id")));
                    } while(v4_2.moveToNext());
                }
            } catch (Throwable v0_2) {
                if (v4_2 != 0) {
                    if (!v4_2.isClosed()) {
                        v4_2.close();
                    }
                }
                throw v0_2;
            }
            if ((v4_2 == 0) || (v4_2.isClosed())) {
                return v0_1;
            } else {
                v4_2.close();
                return v0_1;
            }
        } catch (Throwable v0_2) {
            v4_2 = 0;
        } catch (Exception) {
            v4_2 = 0;
        }
    }

Method com.e.a.h.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public com.gaana.models.BusinessObject a(String p12, boolean p13)
    {
        boolean v0_1 = new java.util.ArrayList();
        com.gaana.localmedia.LocalMediaManager v1_11 = 0;
        if (p13 == null) {
            Throwable v13_2 = new com.gaana.models.Tracks();
            String v2_2 = "";
            java.util.ArrayList v3_2 = new java.util.ArrayList();
            java.util.ArrayList v4_0 = new java.util.ArrayList();
            java.util.ArrayList v5_1 = new java.util.ArrayList();
            java.util.HashMap v6_1 = new StringBuilder();
            v6_1.append("select playlist_content from ");
            v6_1.append(com.e.a.e$h.a);
            v6_1.append(" where playlist_id=");
            v6_1.append(p12);
            try {
                java.util.HashMap v6_13 = this.getDB().rawQuery(v6_1.toString(), 0);
                try {
                    int v7_5;
                    if (!v6_13.moveToFirst()) {
                        v7_5 = 0;
                    } else {
                        do {
                            v7_5 = ((com.gaana.models.BusinessObject) com.library.util.Serializer.deserialize(v6_13.getString(v6_13.getColumnIndex("playlist_content"))));
                            if (!(v7_5 instanceof com.gaana.models.Albums$Album)) {
                                if ((v7_5 instanceof com.gaana.models.Playlists$Playlist)) {
                                    v2_2 = ((com.gaana.models.Playlists$Playlist) v7_5).getFavoriteCount();
                                    v3_2 = ((com.gaana.models.Playlists$Playlist) v7_5).getTags();
                                    v4_0 = ((com.gaana.models.Playlists$Playlist) v7_5).getTopArtists();
                                    v5_1 = ((com.gaana.models.Playlists$Playlist) v7_5).getTopLanguages();
                                }
                            } else {
                                v2_2 = ((com.gaana.models.Albums$Album) v7_5).getFavoriteCount();
                                v3_2 = ((com.gaana.models.Albums$Album) v7_5).getTags();
                                v4_0 = ((com.gaana.models.Albums$Album) v7_5).getTopArtists();
                                v5_1 = ((com.gaana.models.Albums$Album) v7_5).getTopLanguages();
                            }
                        } while(v6_13.moveToNext());
                    }
                } catch (String v12_20) {
                    if (v6_13 != null) {
                        if (!v6_13.isClosed()) {
                            v6_13.close();
                        }
                    }
                    throw v12_20;
                }
                if ((v6_13 != null) && (!v6_13.isClosed())) {
                    v6_13.close();
                }
                boolean v8_4 = (v7_5 instanceof com.gaana.models.Playlists$Playlist);
                if (v8_4) {
                    String v10_8 = ((com.gaana.models.Playlists$Playlist) v7_5);
                    if (com.gaana.localmedia.PlaylistSyncManager.getInstance().isMyPlaylist(v10_8)) {
                        v13_2 = com.gaana.localmedia.PlaylistSyncManager.getInstance().getPlaylistDetails(v10_8);
                        if (v13_2.getArrListBusinessObj().size() > 0) {
                            ((com.gaana.models.Tracks) v13_2).setFavoriteCount(v2_2);
                            v13_2.setCount(String.valueOf(v13_2.getArrListBusinessObj().size()));
                            return v13_2;
                        }
                    }
                }
                java.util.HashMap v9_4 = new StringBuilder();
                v9_4.append("select metadata.track_id,track_metadata from ");
                v9_4.append(com.e.a.e$l.a);
                v9_4.append(" metadata ");
                v9_4.append(" JOIN ");
                v9_4.append(com.e.a.e$k.a);
                v9_4.append(" detail ON detail.track_id=metadata.track_id ");
                v9_4.append(" where detail.playlist_id=");
                v9_4.append(p12);
                v9_4.append(" ORDER BY detail.");
                v9_4.append("track_position_in_playlist");
                try {
                    String v12_4 = this.getDB().rawQuery(v9_4.toString(), 0);
                    try {
                        if (v12_4.moveToFirst()) {
                            do {
                                com.gaana.localmedia.LocalMediaManager v1_4;
                                com.gaana.localmedia.LocalMediaManager v1_3 = v12_4.getString(v12_4.getColumnIndex("track_id"));
                                if ((!ark>com.e.a.hark>.a.containsKey(v1_3)) || (ark>com.e.a.hark>.a.get(v1_3) == null)) {
                                    java.util.HashMap v6_10 = ((com.gaana.models.BusinessObject) com.library.util.Serializer.deserialize(v12_4.getString(v12_4.getColumnIndex("track_metadata"))));
                                    ark>com.e.a.hark>.a.put(v1_3, v6_10);
                                    v1_4 = v6_10;
                                } else {
                                    v1_4 = ((com.gaana.models.BusinessObject) ark>com.e.a.hark>.a.get(v1_3));
                                }
                                v0_1.add(v1_4);
                            } while(v12_4.moveToNext());
                        }
                    } catch (Throwable v13_3) {
                        if (v12_4 != null) {
                            if (!v12_4.isClosed()) {
                                v12_4.close();
                            }
                        }
                        throw v13_3;
                    }
                    if ((v12_4 != null) && (!v12_4.isClosed())) {
                        v12_4.close();
                    }
                    if (v8_4) {
                        String v12_7 = ((com.gaana.models.Playlists$Playlist) v7_5).getLocalPlaylistId();
                        if (!android.text.TextUtils.isEmpty(v12_7)) {
                            String v12_8 = com.gaana.localmedia.LocalMediaManager.getInstance(com.gaana.application.GaanaApplication.getContext()).getSongsByPlaylist(v12_7);
                            if (v12_8 != null) {
                                v0_1.addAll(v12_8);
                            }
                        }
                    }
                    if (v7_5 != 0) {
                        String v12_10 = ((com.gaana.models.Tracks) v13_2);
                        v12_10.setFavoriteCount(v2_2);
                        v12_10.setTags(v3_2);
                        v12_10.setTopArtists(v4_0);
                        v12_10.setTopLanguages(v5_1);
                    }
                    v13_2.setArrListBusinessObj(v0_1);
                    v13_2.setCount(String.valueOf(v0_1.size()));
                    return v13_2;
                } catch (Throwable v13_3) {
                    v12_4 = v6_13;
                }
            } catch (String v12_20) {
                v6_13 = 0;
            }
        } else {
            if ((!ark>com.e.a.hark>.a.containsKey(p12)) || (ark>com.e.a.hark>.a.get(p12) == null)) {
                Throwable v13_9 = new StringBuilder();
                v13_9.append("select track_metadata from ");
                v13_9.append(com.e.a.e$l.a);
                v13_9.append(" where track_id=");
                v13_9.append(p12);
                try {
                    Throwable v13_11 = this.getDB().rawQuery(v13_9.toString(), 0);
                    try {
                        if (v13_11.moveToFirst()) {
                            do {
                                v1_11 = ((com.gaana.models.BusinessObject) com.library.util.Serializer.deserialize(v13_11.getString(v13_11.getColumnIndex("track_metadata"))));
                                ark>com.e.a.hark>.a.put(p12, v1_11);
                            } while(v13_11.moveToNext());
                        }
                    } catch (String v12_18) {
                        if (v13_11 != null) {
                            if (!v13_11.isClosed()) {
                                v13_11.close();
                            }
                        }
                        throw v12_18;
                    }
                    if ((v13_11 != null) && (!v13_11.isClosed())) {
                        v13_11.close();
                    }
                    return v1_11;
                } catch (String v12_18) {
                    v13_11 = 0;
                }
            } else {
                return ((com.gaana.models.BusinessObject) ark>com.e.a.hark>.a.get(p12));
            }
        }
    }

Method com.e.a.h.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public int a(com.gaana.models.BusinessObject p5, java.util.ArrayList p6)
    {
        int v1_2;
        com.managers.DownloadManager$DownloadStatus v0_3 = this.getDB().rawQuery("select * from playlist_details where download_status =0", 0);
        if ((v0_3.moveToFirst()) || (!com.managers.DownloadManager.c().v())) {
            v1_2 = 1;
        } else {
            v1_2 = 0;
        }
        v0_3.close();
        if (!(p5 instanceof com.gaana.models.Tracks$Track)) {
            this.a(p5, v1_2, p6);
        } else {
            if (com.managers.DownloadManager$DownloadStatus.DOWNLOADED != com.managers.DownloadManager.c().e(Integer.parseInt(p5.getBusinessObjId()))) {
                v1_2 = 0;
            } else {
                v1_2 = 1;
            }
            this.a(p5, -100, v1_2);
        }
        return v1_2;
    }

Method com.e.a.h.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public int a(com.gaana.models.BusinessObject p12, int p13, int p14)
    {
        int v0_1 = Integer.parseInt(p12.getBusinessObjId());
        android.database.Cursor v1_1 = this.getDB();
        android.database.sqlite.SQLiteDatabase v2_3 = new StringBuilder();
        v2_3.append("select * from ");
        v2_3.append(com.e.a.e$h.a);
        v2_3.append(" where ");
        v2_3.append("playlist_id");
        v2_3.append("=");
        v2_3.append(p13);
        android.database.Cursor v1_0 = v1_1.rawQuery(v2_3.toString(), 0);
        android.database.sqlite.SQLiteDatabase v2_1 = this.getDB();
        v2_1.beginTransaction();
        try {
            if (!v1_0.moveToFirst()) {
                com.gaana.models.Playlists$Playlist v3_7 = new com.gaana.models.Playlists$Playlist();
                v3_7.setPlaylistId(String.valueOf(p13));
                this.a(p13, com.e.a.e$c.b, v3_7, p14);
            } else {
                this.h(p13, p14);
            }
        } catch (int v12_2) {
            v2_1.endTransaction();
            throw v12_2;
        } catch (Exception) {
            v2_1.endTransaction();
            return -1;
        }
        this.a(((com.gaana.models.Tracks$Track) p12), p13, this.h(p13), 0, 1);
        v1_0.close();
        v2_1.setTransactionSuccessful();
        v2_1.endTransaction();
        return v0_1;
    }

Method com.e.a.h.z() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private int z()
    {
        boolean v1_0 = -1;
        try {
            Throwable v2_1 = this.getDB();
            this.c = "SELECT DISTINCT track_details.track_id,track_details.track_position_in_playlist, track_details.has_downloaded FROM track_details WHERE (track_details.has_downloaded = 0)AND track_details.track_position_in_playlist=(SELECT MIN(track_details.track_position_in_playlist) FROM track_details WHERE (has_downloaded = 0))";
            Throwable v2_0 = v2_1.rawQuery(this.c, 0);
            try {
                if (v2_0.moveToFirst()) {
                    v2_0.getInt(v2_0.getColumnIndex("track_position_in_playlist"));
                    v1_0 = v2_0.getInt(v2_0.getColumnIndex("track_id"));
                }
            } catch (boolean v0_1) {
                if (v2_0 != null) {
                    if (!v2_0.isClosed()) {
                        v2_0.close();
                    }
                }
                throw v0_1;
            }
            if ((v2_0 == null) || (v2_0.isClosed())) {
                return v1_0;
            } else {
                v2_0.close();
                return v1_0;
            }
        } catch (boolean v1_1) {
            v2_0 = 0;
            v0_1 = v1_1;
        } catch (android.database.sqlite.SQLiteException) {
            v2_0 = 0;
        }
    }

Method com.e.a.h.t() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private void t(int p3)
    {
        this.getDB().beginTransaction();
        this.f(p3, -1);
        android.database.sqlite.SQLiteDatabase v3_1 = this.getDB().rawQuery("select playlist_id from playlist_details where download_status=1 limit 1", 0);
        try {
            if (v3_1.moveToFirst()) {
                this.f(v3_1.getInt(v3_1.getColumnIndex("playlist_id")), 0);
            }
        } catch (android.database.sqlite.SQLiteDatabase v0_5) {
            v3_1.close();
            this.getDB().endTransaction();
            throw v0_5;
        } catch (Exception) {
            v3_1.close();
            this.getDB().endTransaction();
            return;
        }
        this.getDB().setTransactionSuccessful();
        v3_1.close();
        this.getDB().endTransaction();
        return;
    }

Method com.e.a.h.s() calling method android.database.sqlite.SQLiteDatabase.rawQuery()

Couldn't retrieve source code

Method com.e.a.h.r() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private int r(int p5)
    {
        int v0_0 = this.getDB();
        boolean v1_0 = 0;
        try {
            StringBuilder v2_1 = new StringBuilder();
            v2_1.append("SELECT DISTINCT track_details.track_id,track_details.track_position_in_playlist FROM track_details WHERE track_details.playlist_id=");
            v2_1.append(p5);
            v2_1.append(" AND track_details.has_downloaded = 0 ");
            v2_1.append("AND track_details.track_position_in_playlist=");
            v2_1.append("(SELECT MIN(track_details.track_position_in_playlist) ");
            v2_1.append("FROM track_details ");
            v2_1.append("WHERE track_details.playlist_id=");
            v2_1.append(p5);
            v2_1.append(" AND has_downloaded = 0)");
            this.c = v2_1.toString();
            boolean v5_4 = v0_0.rawQuery(this.c, 0);
            try {
                int v0_3;
                if (!v5_4.moveToFirst()) {
                    v0_3 = -1;
                } else {
                    v5_4.getInt(v5_4.getColumnIndex("track_position_in_playlist"));
                    v0_3 = v5_4.getInt(v5_4.getColumnIndex("track_id"));
                }
            } catch (int v0_1) {
                v1_0 = v5_4;
                if (v1_0) {
                    if (!v1_0.isClosed()) {
                        v1_0.close();
                    }
                }
                throw v0_1;
            }
            if ((v5_4) && (!v5_4.isClosed())) {
                v5_4.close();
            }
            return v0_3;
        } catch (int v0_1) {
        }
    }

Method com.e.a.h.f() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private void f(int p9, int p10)
    {
        com.managers.u v1_2;
        String v0_0 = this.getDB();
        int v2_0 = 0;
        if (p10 != 1) {
            v1_2 = 0;
            android.database.Cursor v3_0 = this.getDB().rawQuery("select * from playlist_details where download_status =0", 0);
            try {
                if ((!v3_0.moveToFirst()) && ((com.managers.DownloadManager.c().v()) && (p10 == null))) {
                    if (v1_2 == null) {
                        v1_2 = new android.content.ContentValues();
                    }
                    v1_2.put("download_time", Long.valueOf(System.currentTimeMillis()));
                }
            } catch (boolean v9_2) {
                if (v3_0 != null) {
                    if (!v3_0.isClosed()) {
                        v3_0.close();
                    }
                }
                throw v9_2;
            } catch (boolean v9_1) {
                v2_0 = v3_0;
                com.google.devtools.build.android.desugar.runtime.ThrowableExtension.printStackTrace(v9_1);
                if (v2_0 == 0) {
                    return;
                } else {
                    if (v2_0.isClosed()) {
                        return;
                    } else {
                        v2_0.close();
                        return;
                    }
                }
                if ((v3_0 != null) && (!v3_0.isClosed())) {
                    v3_0.close();
                }
            }
            v3_0.close();
            if (v1_2 != null) {
                String v5_3 = new StringBuilder();
                v5_3.append("playlist_id = ");
                v5_3.append(p9);
                v0_0.update(com.e.a.e$h.a, v1_2, v5_3.toString(), 0);
            }
            if ((this.h(p9, p10) > 0) && ((p10 == -1) || ((p10 == null) || (p10 == -2)))) {
                int v2_1 = this.d(p9);
                String v4_8 = "downloaded";
                if (p10 != null) {
                    if (p10 != -2) {
                        if (p10 == -1) {
                            String v10_4;
                            if (v2_1 != com.e.a.e$c.a) {
                                if (v2_1 != com.e.a.e$c.b) {
                                    v10_4 = "Track";
                                } else {
                                    v10_4 = "Playlist";
                                }
                            } else {
                                v10_4 = "Album";
                            }
                            String v0_3 = "";
                            if (!android.text.TextUtils.isEmpty(String.valueOf(p9))) {
                                v0_3 = this.e(String.valueOf(p9));
                            }
                            if (!android.text.TextUtils.isEmpty(v0_3)) {
                                com.managers.u v1_8 = com.managers.u.a();
                                StringBuilder v7_1 = new StringBuilder();
                                v7_1.append(v10_4);
                                v7_1.append(" - ");
                                v7_1.append(v0_3);
                                v1_8.a("Download", "Download Successful", v7_1.toString());
                            }
                        }
                    } else {
                        v4_8 = "pause";
                    }
                } else {
                    v4_8 = "downloading";
                }
                com.managers.l.a().a(p9, v2_1, v4_8);
            }
        } else {
            v1_2 = new android.content.ContentValues();
            v1_2.put("download_time", Long.valueOf(System.currentTimeMillis()));
        }
        return;
    }

Method com.e.a.h.c() calling method android.database.sqlite.SQLiteDatabase.rawQuery()

Couldn't retrieve source code

Method com.e.a.h.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()

Couldn't retrieve source code

Method com.e.a.h.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private void a(com.gaana.models.Tracks$Track p9, int p10)
    {
        try {
            int v1_3 = this.getDB();
            com.managers.DownloadManager v2_9 = new StringBuilder();
            v2_9.append("select track_id from ");
            v2_9.append(com.e.a.e$l.a);
            v2_9.append(" where track_id=");
            v2_9.append(p9.getBusinessObjId());
            int v1_0 = v1_3.rawQuery(v2_9.toString(), 0);
            try {
                if (v1_0.moveToFirst()) {
                    String v3_20 = new String[1];
                    v3_20[0] = String.valueOf(p9.getBusinessObjId());
                    String v4_20 = new android.content.ContentValues();
                    v4_20.put("track_metadata", com.library.util.Serializer.serialize(p9));
                    v4_20.put("track_name", p9.getRawName());
                    if (android.text.TextUtils.isEmpty(p9.getLanguage())) {
                        v4_20.put("track_language", "English");
                    } else {
                        v4_20.put("track_language", p9.getLanguage());
                    }
                    v4_20.put("has_downloaded", Integer.valueOf(p10));
                    if (p10 == null) {
                        v4_20.put("download_time", Long.valueOf(System.currentTimeMillis()));
                    }
                    v4_20.put("artist_name", p9.getArtistRawNames());
                    v4_20.put("album_name", p9.getRawAlbumTitle());
                    v4_20.put("track_artwork", p9.getArtwork());
                    v4_20.put("smart_download", Integer.valueOf(p9.getSmartDownload()));
                    v4_20.put("parental_warn", Integer.valueOf(p9.isParentalWarningEnabled()));
                    v4_20.put("free_download", Boolean.valueOf(p9.isFreeDownloadEnabled()));
                    this.getDB().update(com.e.a.e$l.a, v4_20, "track_id=?", v3_20);
                    ark>com.e.a.hark>.a.put(p9.getBusinessObjId(), p9);
                } else {
                    com.managers.DownloadManager v2_1 = new android.content.ContentValues();
                    v2_1.put("track_id", p9.getBusinessObjId());
                    v2_1.put("has_downloaded", Integer.valueOf(p10));
                    if (p10 == null) {
                        v2_1.put("download_time", Long.valueOf(System.currentTimeMillis()));
                    }
                    v2_1.put("track_metadata", com.library.util.Serializer.serialize(p9));
                    v2_1.put("track_name", p9.getRawName());
                    if (android.text.TextUtils.isEmpty(p9.getLanguage())) {
                        v2_1.put("track_language", "English");
                    } else {
                        v2_1.put("track_language", p9.getLanguage());
                    }
                    v2_1.put("artist_name", p9.getArtistRawNames());
                    v2_1.put("album_name", p9.getRawAlbumTitle());
                    v2_1.put("track_artwork", p9.getArtwork());
                    v2_1.put("parental_warn", Integer.valueOf(p9.isParentalWarningEnabled()));
                    v2_1.put("smart_download", Integer.valueOf(p9.getSmartDownload()));
                    v2_1.put("free_download", Boolean.valueOf(p9.isFreeDownloadEnabled()));
                    this.getDB().insert(com.e.a.e$l.a, 0, v2_1);
                    ark>com.e.a.hark>.a.put(p9.getBusinessObjId(), p9);
                }
            } catch (boolean v9_1) {
                if (v1_0 != 0) {
                    if (!v1_0.isClosed()) {
                        v1_0.close();
                    }
                }
                throw v9_1;
            }
            if ((v1_0 != 0) && (!v1_0.isClosed())) {
                v1_0.close();
            }
            int v1_2 = Integer.parseInt(p9.getBusinessObjId());
            com.managers.DownloadManager.c().a(v1_2, p10, 0);
            com.managers.DownloadManager.c().a(v1_2, p9.isFreeDownloadEnabled());
            return;
        } catch (boolean v9_1) {
            v1_0 = 0;
        }
    }

Method com.e.a.h.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private int a(com.gaana.models.BusinessObject p12, int p13, java.util.ArrayList p14)
    {
        boolean v0_1 = Integer.parseInt(p12.getBusinessObjId());
        android.database.sqlite.SQLiteDatabase v7 = this.getDB();
        try {
            int v1_4 = new StringBuilder();
            v1_4.append("select * from ");
            v1_4.append(com.e.a.e$h.a);
            v1_4.append(" where ");
            v1_4.append("playlist_id");
            v1_4.append(" = ");
            v1_4.append(v0_1);
            android.database.Cursor v9 = v7.rawQuery(v1_4.toString(), 0);
        } catch (Exception) {
            return -1;
        }
        if (!v9.moveToFirst()) {
            if ((v9 != null) && (!v9.isClosed())) {
                v9.close();
            }
            return this.b(p12, p13, p14);
        } else {
            v7.beginTransaction();
            try {
                boolean v12_2 = p12.getArrListBusinessObj();
            } catch (Exception) {
                if (v9 != null) {
                    if (!v9.isClosed()) {
                        v9.close();
                    }
                }
                v7.endTransaction();
                return -1;
            } catch (boolean v12_6) {
                if (v9 != null) {
                    if (!v9.isClosed()) {
                        v9.close();
                    }
                }
                v7.endTransaction();
                throw v12_6;
            }
            if ((p14 != null) && (v12_2)) {
                int v1_2 = this.h(v0_1);
                boolean v12_3 = v12_2.iterator();
                while (v12_3.hasNext()) {
                    com.gaana.models.Tracks$Track v2_7 = ((com.gaana.models.Tracks$Track) v12_3.next());
                    if (p14.contains(v2_7.getBusinessObjId())) {
                        boolean v3_3;
                        if (com.managers.DownloadManager$DownloadStatus.DOWNLOADED != com.managers.DownloadManager.c().e(Integer.parseInt(v2_7.getBusinessObjId()))) {
                            v3_3 = 0;
                        } else {
                            v3_3 = 1;
                        }
                        int v10 = (v1_2 + 1);
                        this.a(v2_7, v0_1, v10, v3_3, 1);
                        v1_2 = v10;
                    }
                }
            }
            this.h(v0_1, p13);
            v7.setTransactionSuccessful();
            if ((v9 != null) && (!v9.isClosed())) {
                v9.close();
            }
            v7.endTransaction();
            return -1;
        }
    }

Method com.e.a.h.D() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private void D()
    {
        Throwable v0_1 = new java.util.ArrayList();
        int v1_0 = this.getDB();
        boolean v2_8 = new StringBuilder();
        v2_8.append("select * from ");
        v2_8.append(com.e.a.e$k.a);
        v2_8.append(" where ");
        v2_8.append("has_downloaded");
        v2_8.append("=");
        v2_8.append(0);
        v2_8.append(" OR ");
        v2_8.append("has_downloaded");
        v2_8.append("=");
        v2_8.append(-1);
        try {
            int v1_1 = v1_0.rawQuery(v2_8.toString(), 0);
            try {
                if (v1_1.moveToFirst()) {
                    do {
                        v0_1.add(Integer.valueOf(v1_1.getInt(v1_1.getColumnIndex("track_id"))));
                    } while(v1_1.moveToNext());
                }
            } catch (Throwable v0_2) {
                if (v1_1 != 0) {
                    if (!v1_1.isClosed()) {
                        v1_1.close();
                    }
                }
                throw v0_2;
            }
            if ((v1_1 != 0) && (!v1_1.isClosed())) {
                v1_1.close();
            }
            if (v0_1.size() != 0) {
                this.a(v0_1, -100);
            }
            return;
        } catch (Throwable v0_2) {
            v1_1 = 0;
        }
    }

Method com.e.a.h.C() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private int C()
    {
        android.database.sqlite.SQLiteDatabase v0_1 = new StringBuilder();
        v0_1.append("select playlist_id from ");
        v0_1.append(com.e.a.e$h.a);
        v0_1.append(" where ");
        v0_1.append("download_status");
        v0_1.append(" = ");
        v0_1.append(1);
        v0_1.append(" limit 1");
        try {
            android.database.sqlite.SQLiteDatabase v0_3 = this.getDB().rawQuery(v0_1.toString(), 0);
            try {
                android.database.sqlite.SQLiteDatabase v1_7;
                if (!v0_3.moveToFirst()) {
                    v1_7 = -1;
                } else {
                    v1_7 = v0_3.getInt(v0_3.getColumnIndex("playlist_id"));
                }
            } catch (android.database.sqlite.SQLiteDatabase v1_5) {
                if (v0_3 != null) {
                    if (!v0_3.isClosed()) {
                        v0_3.close();
                    }
                }
                throw v1_5;
            }
            if ((v0_3 != null) && (!v0_3.isClosed())) {
                v0_3.close();
            }
            try {
                this.getDB().beginTransaction();
            } catch (android.database.sqlite.SQLiteDatabase v0_7) {
                this.getDB().endTransaction();
                throw v0_7;
            } catch (Exception) {
                this.getDB().endTransaction();
                return v1_7;
            }
            if (v1_7 != -1) {
                this.f(v1_7, 0);
            }
            this.getDB().setTransactionSuccessful();
            this.getDB().endTransaction();
            return v1_7;
        } catch (android.database.sqlite.SQLiteDatabase v0_4) {
            v1_5 = v0_4;
            v0_3 = 0;
        }
    }

Method com.e.a.h.B() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private int B()
    {
        android.database.sqlite.SQLiteDatabase v1_7;
        android.database.sqlite.SQLiteDatabase v0_3 = this.getDB().rawQuery("select playlist_id, playlist_content from playlist_details where download_status=1", 0);
        if (!v0_3.moveToFirst()) {
            v1_7 = -1;
        } else {
            do {
                android.database.sqlite.SQLiteDatabase v1_4 = ((com.gaana.models.BusinessObject) com.library.util.Serializer.deserialize(v0_3.getString(v0_3.getColumnIndex("playlist_content"))));
                if (!com.managers.ap.a().a(v1_4, 0)) {
                } else {
                    v1_7 = Integer.parseInt(v1_4.getBusinessObjId());
                }
            } while(v0_3.moveToNext());
        }
        v0_3.close();
        try {
            this.getDB().beginTransaction();
        } catch (android.database.sqlite.SQLiteDatabase v0_6) {
            this.getDB().endTransaction();
            throw v0_6;
        } catch (Exception) {
            this.getDB().endTransaction();
            return v1_7;
        }
        if (v1_7 == -1) {
            if (!com.managers.DownloadManager.c().D()) {
                com.managers.DownloadManager.c().d(1);
                String v3_4 = new android.content.ContentValues();
                v3_4.put("has_downloaded", Integer.valueOf(0));
                this.getDB().update(com.e.a.e$k.a, v3_4, "has_downloaded=-1", 0);
                android.content.ContentValues v4_6 = new android.content.ContentValues();
                v3_4.put("has_downloaded", Integer.valueOf(0));
                this.getDB().update(com.e.a.e$l.a, v4_6, "has_downloaded=-1", 0);
            }
        } else {
            this.f(v1_7, 0);
        }
        this.getDB().setTransactionSuccessful();
        this.getDB().endTransaction();
        return v1_7;
    }

Method com.e.a.h.A() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private int A()
    {
        boolean v0_0 = 0;
        int v1_0 = -1;
        try {
            boolean v2_1 = this.getDB();
            String v3_3 = new StringBuilder();
            v3_3.append("SELECT DISTINCT track_details.track_id, track_details.has_downloaded FROM track_details WHERE (track_details.has_downloaded = 0)AND track_details.playlist_id IN (");
            v3_3.append(com.gaana.application.GaanaApplication.getInstance().getCurrentUser().getUserSubscriptionData().getMiniPacks());
            v3_3.append(")");
            this.c = v3_3.toString();
            boolean v2_0 = v2_1.rawQuery(this.c, 0);
            try {
                if (v2_0.moveToFirst()) {
                    v1_0 = v2_0.getInt(v2_0.getColumnIndex("track_id"));
                }
            } catch (boolean v0_2) {
                int v1_1 = v0_2;
                v0_0 = v2_0;
                if (v0_0) {
                    if (!v0_0.isClosed()) {
                        v0_0.close();
                    }
                }
                throw v1_1;
            } catch (android.database.sqlite.SQLiteException) {
                v0_0 = v2_0;
                if (!v0_0) {
                    return v1_0;
                } else {
                    if (v0_0.isClosed()) {
                        return v1_0;
                    } else {
                        v0_0.close();
                        return v1_0;
                    }
                }
            }
            if ((!v2_0) || (v2_0.isClosed())) {
                return v1_0;
            } else {
                v2_0.close();
                return v1_0;
            }
        } catch (int v1_1) {
        } catch (android.database.sqlite.SQLiteException) {
        }
    }

Method com.e.a.g.b() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public java.util.ArrayList b()
    {
        int v0_0 = java.util.Calendar.getInstance();
        v0_0.set(5, -1);
        int v0_6 = v0_0.getTimeInMillis();
        boolean v2_10 = new StringBuilder();
        v2_10.append("select track_metadata from ");
        v2_10.append(com.e.a.e$i.a);
        v2_10.append(" where ");
        v2_10.append("time_stamp");
        v2_10.append(" > ");
        v2_10.append(v0_6);
        v2_10.append(" order by ");
        v2_10.append("time_stamp");
        v2_10.append(" DESC LIMIT 100");
        int v0_4 = v2_10.toString();
        Throwable v1_2 = new java.util.ArrayList();
        try {
            int v0_5 = this.getDB().rawQuery(v0_4, 0);
            try {
                if (v0_5.moveToFirst()) {
                    do {
                        boolean v2_5 = v0_5.getString(v0_5.getColumnIndex("track_metadata"));
                        if (!android.text.TextUtils.isEmpty(v2_5)) {
                            boolean v2_7 = ((com.gaana.models.Tracks$Track) com.services.n.a(v2_5));
                            v2_7.setBusinessObjType(com.managers.URLManager$BusinessObjectType.Tracks);
                            v1_2.add(v2_7);
                        }
                    } while(v0_5.moveToNext());
                }
            } catch (Throwable v1_3) {
                if (v0_5 != 0) {
                    v0_5.close();
                }
                throw v1_3;
            }
            if (v0_5 != 0) {
                v0_5.close();
            }
            return v1_2;
        } catch (Throwable v1_3) {
            v0_5 = 0;
        }
    }

Method com.e.a.g.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private boolean a(String p4)
    {
        Throwable v0_1 = new StringBuilder();
        v0_1.append("Select track_id From ");
        v0_1.append(com.e.a.e$i.a);
        v0_1.append(" where ");
        v0_1.append("track_id");
        v0_1.append(" = ");
        v0_1.append(p4);
        Throwable v0_2 = 0;
        try {
            Throwable v4_2 = this.getDB().rawQuery(v0_1.toString(), 0);
            try {
                if (v4_2.getCount() < 1) {
                    if (v4_2 == null) {
                        return 0;
                    } else {
                        v4_2.close();
                        return 0;
                    }
                } else {
                    if (v4_2 != null) {
                        v4_2.close();
                    }
                    return 1;
                }
            } catch (Throwable v0_4) {
                v0_2 = v4_2;
                Throwable v4_3 = v0_4;
                if (v0_2 != null) {
                    v0_2.close();
                }
                throw v4_3;
            } catch (Exception) {
                v0_2 = v4_2;
                if (v0_2 == null) {
                    return 0;
                } else {
                    v0_2.close();
                    return 0;
                }
            }
        } catch (Throwable v4_3) {
        } catch (Exception) {
        }
    }

Method com.e.a.f.i() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public void i(String p7)
    {
        if (this.h(p7) > 0) {
            android.database.sqlite.SQLiteDatabase v0_2 = "";
            android.database.Cursor v1 = 0;
            try {
                android.content.ContentValues v2_7 = new StringBuilder();
                v2_7.append("SELECT id FROM ");
                v2_7.append(com.e.a.e$g.a);
                v2_7.append(" WHERE ");
                v2_7.append("track_id");
                v2_7.append("=");
                v2_7.append(p7);
                Throwable v7_2 = this.k().rawQuery(v2_7.toString(), 0);
                try {
                    if (v7_2.moveToFirst()) {
                        do {
                            android.database.sqlite.SQLiteDatabase v0_5 = v7_2.getString(v7_2.getColumnIndex("id"));
                            android.content.ContentValues v2_3 = new StringBuilder();
                            v2_3.append(",");
                            v2_3.append(v0_5);
                            v0_2 = v2_3.toString();
                        } while(v7_2.moveToNext());
                    }
                } catch (android.database.sqlite.SQLiteDatabase v0_1) {
                    v1 = v7_2;
                    if (v1 != null) {
                        v1.close();
                    }
                    throw v0_1;
                }
                if (v7_2 != null) {
                    v7_2.close();
                }
                if (!android.text.TextUtils.isEmpty(v0_2)) {
                    Throwable v7_5 = v0_2.replaceFirst(",", "");
                    android.database.sqlite.SQLiteDatabase v0_6 = this.k();
                    try {
                        v0_6.beginTransaction();
                        android.content.ContentValues v2_9 = new android.content.ContentValues();
                        v2_9.put("has_synced", Integer.valueOf(-1));
                        StringBuilder v4_3 = new StringBuilder();
                        v4_3.append("id IN (");
                        v4_3.append(v7_5);
                        v4_3.append(")");
                        v0_6.update(com.e.a.e$f.a, v2_9, v4_3.toString(), 0);
                        v0_6.setTransactionSuccessful();
                    } catch (Throwable v7_8) {
                        v0_6.endTransaction();
                        throw v7_8;
                    } catch (Exception) {
                    }
                    v0_6.endTransaction();
                }
            } catch (android.database.sqlite.SQLiteDatabase v0_1) {
            }
        }
        return;
    }

Method com.e.a.f.f() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public java.util.ArrayList f(String p7)
    {
        Throwable v0_1 = new java.util.ArrayList();
        boolean v1_3 = this.a(p7);
        if (v1_3 > 0) {
            android.database.Cursor v7_3 = this.k();
            android.database.Cursor v3_1 = 0;
            try {
                StringBuilder v4_1 = new StringBuilder();
                v4_1.append("SELECT track_metadata FROM ");
                v4_1.append(com.e.a.e$g.a);
                v4_1.append("");
                v4_1.append(" where ");
                v4_1.append("id");
                v4_1.append("=");
                v4_1.append(v1_3);
                v4_1.append(" AND ");
                v4_1.append("is_local");
                v4_1.append("=");
                v4_1.append(1);
                android.database.Cursor v7_1 = v7_3.rawQuery(v4_1.toString(), 0);
                try {
                    if (v7_1.moveToFirst()) {
                        do {
                            v0_1.add(((com.gaana.models.Tracks$Track) com.services.n.a(v7_1.getString(v7_1.getColumnIndex("track_metadata")))));
                        } while(v7_1.moveToNext());
                    }
                } catch (Throwable v0_2) {
                    v3_1 = v7_1;
                    v3_1.close();
                    throw v0_2;
                }
                v7_1.close();
            } catch (Throwable v0_2) {
            }
        }
        return v0_1;
    }

Method com.e.a.f.e() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public com.gaana.models.Playlists$Playlist e(String p12)
    {
        long v1_1;
        Throwable v0_1 = new java.util.ArrayList();
        if (!p12.startsWith("-")) {
            v1_1 = this.a(p12);
        } else {
            v1_1 = Long.parseLong(p12.replaceFirst("-", ""));
        }
        com.gaana.models.Playlists$Playlist v6 = 0;
        if (v1_1 > 0) {
            long v5_3 = this.k();
            try {
                int v7_4 = new StringBuilder();
                v7_4.append("SELECT track_metadata FROM ");
                v7_4.append(com.e.a.e$g.a);
                v7_4.append(" where ");
                v7_4.append("id");
                v7_4.append("=");
                v7_4.append(v1_1);
                v7_4.append(" AND ");
                v7_4.append("has_synced");
                v7_4.append("!=");
                v7_4.append(-2);
                v7_4.append(" ORDER BY ");
                v7_4.append("added_on");
                v7_4.append(" DESC");
                long v1_15 = v5_3.rawQuery(v7_4.toString(), 0);
                try {
                    if (v1_15.moveToFirst()) {
                        do {
                            v0_1.add(((com.gaana.models.Tracks$Track) com.services.n.a(v1_15.getString(v1_15.getColumnIndex("track_metadata")))));
                        } while(v1_15.moveToNext());
                    }
                } catch (Throwable v12_1) {
                    v6 = v1_15;
                    v6.close();
                    throw v12_1;
                }
                String v2_9 = new StringBuilder();
                v2_9.append("SELECT * FROM ");
                v2_9.append(com.e.a.e$f.a);
                v2_9.append(" where ");
                v2_9.append("playlist_id");
                v2_9.append("=");
                v2_9.append(p12);
                Throwable v12_3 = v5_3.rawQuery(v2_9.toString(), 0);
                try {
                    if (v12_3.moveToFirst()) {
                        long v1_20 = v12_3.getString(v12_3.getColumnIndex("local_playlist_id"));
                        String v2_0 = v12_3.getString(v12_3.getColumnIndex("playlist_id"));
                        long v5_1 = v12_3.getLong(v12_3.getColumnIndex("id"));
                        int v7_2 = v12_3.getInt(v12_3.getColumnIndex("has_synced"));
                        String v8_2 = v12_3.getString(v12_3.getColumnIndex("name"));
                        String v9_2 = v12_3.getString(v12_3.getColumnIndex("language"));
                        com.gaana.models.Playlists$Playlist v10_4 = ((com.gaana.models.Playlists$Playlist) com.services.n.a(v12_3.getString(v12_3.getColumnIndex("playlist_metadata"))));
                        v10_4.setName(v8_2);
                        v10_4.setLanguage(v9_2);
                        v10_4.setOfflinePlaylistId(v5_1);
                        v10_4.setLocalPlaylistId(v1_20);
                        v10_4.setBusinessObjType(com.managers.URLManager$BusinessObjectType.Playlists);
                        if (android.text.TextUtils.isEmpty(v2_0)) {
                            v2_0 = String.valueOf((0 - v5_1));
                        }
                        v10_4.setPlaylistId(v2_0);
                        v10_4.setSyncStatus(v7_2);
                        v10_4.setArrListBusinessObj(v0_1);
                        v6 = v10_4;
                    }
                } catch (Throwable v0_2) {
                    v6 = v12_3;
                    v12_1 = v0_2;
                }
                v12_3.close();
            } catch (Throwable v12_1) {
            }
        }
        return v6;
    }

Method com.e.a.f.d() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public java.util.ArrayList d()
    {
        Throwable v0_1 = new java.util.ArrayList();
        int v1_1 = this.k();
        try {
            String v3_5 = new StringBuilder();
            v3_5.append("SELECT * FROM ");
            v3_5.append(com.e.a.e$f.a);
            v3_5.append(" WHERE ");
            v3_5.append("has_synced");
            v3_5.append(" NOT IN (");
            v3_5.append(1);
            v3_5.append(")");
            int v1_0 = v1_1.rawQuery(v3_5.toString(), 0);
            try {
                if (v1_0.moveToFirst()) {
                    do {
                        boolean v2_3 = v1_0.getString(v1_0.getColumnIndex("local_playlist_id"));
                        String v3_3 = v1_0.getString(v1_0.getColumnIndex("playlist_id"));
                        long v4_7 = v1_0.getLong(v1_0.getColumnIndex("id"));
                        int v6_2 = v1_0.getInt(v1_0.getColumnIndex("has_synced"));
                        com.gaana.models.Playlists$Playlist v7_2 = v1_0.getString(v1_0.getColumnIndex("playlist_metadata"));
                        String v8_2 = v1_0.getString(v1_0.getColumnIndex("name"));
                        String v9_2 = v1_0.getString(v1_0.getColumnIndex("language"));
                        long v10_2 = v1_0.getLong(v1_0.getColumnIndex("last_sync_time"));
                        com.gaana.models.Playlists$Playlist v7_4 = ((com.gaana.models.Playlists$Playlist) com.services.n.a(v7_2));
                        v7_4.setOfflinePlaylistId(v4_7);
                        v7_4.setLocalPlaylistId(v2_3);
                        v7_4.setPlaylistId(v3_3);
                        v7_4.setSyncStatus(v6_2);
                        v7_4.setBusinessObjType(com.managers.URLManager$BusinessObjectType.Playlists);
                        v7_4.setName(v8_2);
                        v7_4.setLanguage(v9_2);
                        v7_4.setSyncTime(v10_2);
                        v0_1.add(v7_4);
                    } while(v1_0.moveToNext());
                }
            } catch (Throwable v0_2) {
                if (v1_0 != 0) {
                    v1_0.close();
                }
                throw v0_2;
            }
            if (v1_0 != 0) {
                v1_0.close();
            }
            return v0_1;
        } catch (Throwable v0_2) {
            v1_0 = 0;
        }
    }

Method com.e.a.f.c() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public java.util.ArrayList c()
    {
        Throwable v0_1 = new java.util.ArrayList();
        int v1_1 = this.k();
        try {
            String v3_5 = new StringBuilder();
            v3_5.append("SELECT * FROM ");
            v3_5.append(com.e.a.e$f.a);
            v3_5.append(" where ");
            v3_5.append("has_synced");
            v3_5.append("!=");
            v3_5.append(-2);
            v3_5.append(" ORDER BY ");
            v3_5.append("time_stamp");
            v3_5.append(" DESC");
            int v1_0 = v1_1.rawQuery(v3_5.toString(), 0);
            try {
                if (v1_0.moveToFirst()) {
                    do {
                        boolean v2_3 = v1_0.getString(v1_0.getColumnIndex("local_playlist_id"));
                        String v3_3 = v1_0.getString(v1_0.getColumnIndex("playlist_id"));
                        long v4_9 = v1_0.getLong(v1_0.getColumnIndex("id"));
                        int v6_2 = v1_0.getInt(v1_0.getColumnIndex("has_synced"));
                        long v7_2 = v1_0.getString(v1_0.getColumnIndex("name"));
                        String v8_2 = v1_0.getString(v1_0.getColumnIndex("language"));
                        com.gaana.models.Playlists$Playlist v9_4 = ((com.gaana.models.Playlists$Playlist) com.services.n.a(v1_0.getString(v1_0.getColumnIndex("playlist_metadata"))));
                        v9_4.setName(v7_2);
                        v9_4.setLanguage(v8_2);
                        v9_4.setOfflinePlaylistId(v4_9);
                        v9_4.setLocalPlaylistId(v2_3);
                        v9_4.setBusinessObjType(com.managers.URLManager$BusinessObjectType.Playlists);
                        if (android.text.TextUtils.isEmpty(v3_3)) {
                            v3_3 = String.valueOf((0 - v4_9));
                        }
                        v9_4.setPlaylistId(v3_3);
                        v9_4.setSyncStatus(v6_2);
                        v0_1.add(v9_4);
                    } while(v1_0.moveToNext());
                }
            } catch (Throwable v0_2) {
                if (v1_0 != 0) {
                    v1_0.close();
                }
                throw v0_2;
            }
            if (v1_0 != 0) {
                v1_0.close();
            }
            return v0_1;
        } catch (Throwable v0_2) {
            v1_0 = 0;
        }
    }

Method com.e.a.f.c() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public com.gaana.models.Tracks c(com.gaana.models.Playlists$Playlist p8)
    {
        boolean v2_1;
        Throwable v0_1 = new com.gaana.models.Tracks();
        java.util.ArrayList v1_1 = new java.util.ArrayList();
        android.database.Cursor v8_4 = p8.getBusinessObjId();
        if ((android.text.TextUtils.isEmpty(v8_4)) || (!v8_4.startsWith("-"))) {
            v2_1 = this.a(v8_4);
        } else {
            v2_1 = Long.parseLong(v8_4.replaceFirst("-", ""));
        }
        if (v2_1 > 0) {
            android.database.Cursor v8_3 = this.k();
            android.database.Cursor v4_1 = 0;
            try {
                StringBuilder v5_1 = new StringBuilder();
                v5_1.append("SELECT track_metadata FROM ");
                v5_1.append(com.e.a.e$g.a);
                v5_1.append(" where ");
                v5_1.append("id");
                v5_1.append("=");
                v5_1.append(v2_1);
                v5_1.append(" AND ");
                v5_1.append("has_synced");
                v5_1.append("!=");
                v5_1.append(-2);
                v5_1.append(" ORDER BY ");
                v5_1.append("added_on");
                v5_1.append(" DESC");
                android.database.Cursor v8_5 = v8_3.rawQuery(v5_1.toString(), 0);
                try {
                    if (v8_5.moveToFirst()) {
                        do {
                            v1_1.add(((com.gaana.models.Tracks$Track) com.services.n.a(v8_5.getString(v8_5.getColumnIndex("track_metadata")))));
                        } while(v8_5.moveToNext());
                    }
                } catch (Throwable v0_2) {
                    v4_1 = v8_5;
                    v4_1.close();
                    throw v0_2;
                }
                v8_5.close();
            } catch (Throwable v0_2) {
            }
        }
        v0_1.setCount(String.valueOf(v1_1.size()));
        v0_1.setArrListBusinessObj(v1_1);
        return v0_1;
    }

Method com.e.a.f.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public java.util.ArrayList a(com.gaana.models.Playlists$Playlist p7, int p8)
    {
        java.util.ArrayList v0_1 = new java.util.ArrayList();
        android.database.sqlite.SQLiteDatabase v1 = this.k();
        android.database.Cursor v2 = 0;
        try {
            StringBuilder v3_1 = new StringBuilder();
            v3_1.append("SELECT track_metadata FROM ");
            v3_1.append(com.e.a.e$g.a);
            v3_1.append(" WHERE ");
            v3_1.append("id");
            v3_1.append("=");
            v3_1.append(p7.getOfflinePlaylistId());
            v3_1.append(" AND ");
            v3_1.append("has_synced");
            v3_1.append("=");
            v3_1.append(p8);
            android.database.Cursor v7_5 = v1.rawQuery(v3_1.toString(), 0);
            try {
                if (v7_5.moveToFirst()) {
                    do {
                        v0_1.add(((com.gaana.models.Tracks$Track) com.services.n.a(v7_5.getString(v7_5.getColumnIndex("track_metadata")))));
                    } while(v7_5.moveToNext());
                }
            } catch (boolean v8_1) {
                v2 = v7_5;
                if (v2 != null) {
                    v2.close();
                }
                throw v8_1;
            }
            if (v7_5 != null) {
                v7_5.close();
            }
            return v0_1;
        } catch (boolean v8_1) {
        }
    }

Method com.e.a.f.k() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private boolean k(String p4)
    {
        boolean v0_0 = this.k();
        String[] v1_1 = new String[1];
        v1_1[0] = p4;
        android.database.Cursor v4_4 = new StringBuilder();
        v4_4.append("SELECT name FROM ");
        v4_4.append(com.e.a.e$f.a);
        v4_4.append(" WHERE ");
        v4_4.append("name");
        v4_4.append("=?");
        android.database.Cursor v4_2 = v0_0.rawQuery(v4_4.toString(), v1_1);
        boolean v0_1 = v4_2.moveToFirst();
        v4_2.close();
        return v0_1;
    }

Method com.e.a.d.b() calling method android.database.sqlite.SQLiteDatabase.rawQuery()

Couldn't retrieve source code

Method com.e.a.b.b() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public java.util.ArrayList b(int p5)
    {
        Throwable v0_0 = this.getDB();
        boolean v1_1 = new StringBuilder();
        v1_1.append("select business_id from ");
        v1_1.append(com.e.a.e$a.a);
        v1_1.append(" where ");
        v1_1.append("sync_status");
        v1_1.append("=");
        v1_1.append(1);
        v1_1.append(" AND ");
        v1_1.append("entity_type");
        v1_1.append("=");
        v1_1.append(p5);
        v1_1.append(" AND ");
        v1_1.append("sync_type");
        v1_1.append("=");
        v1_1.append(1);
        v1_1.append(" LIMIT 30");
        android.database.Cursor v5_6 = v0_0.rawQuery(v1_1.toString(), 0);
        Throwable v0_2 = new java.util.ArrayList();
        try {
            if (v5_6.moveToFirst()) {
                do {
                    v0_2.add(String.valueOf(v5_6.getInt(v5_6.getColumnIndex("business_id"))));
                } while(v5_6.moveToNext());
            }
        } catch (Throwable v0_3) {
            v5_6.close();
            throw v0_3;
        } catch (android.database.SQLException) {
        }
        v5_6.close();
        return v0_2;
    }

Method com.e.a.b.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public com.gaana.models.DownloadSyncArrays a()
    {
        Throwable v0_1 = new com.gaana.models.DownloadSyncArrays();
        this.getDB();
        int v1_3 = new StringBuilder();
        v1_3.append("select * from ");
        v1_3.append(com.e.a.e$a.a);
        v1_3.append(" where ");
        v1_3.append("sync_status");
        v1_3.append("=");
        v1_3.append(0);
        int v1_1 = this.getDB().rawQuery(v1_3.toString(), 0);
        try {
            if (v1_1.moveToFirst()) {
                do {
                    v0_1.addToSync(v1_1.getInt(v1_1.getColumnIndex("business_id")), v1_1.getInt(v1_1.getColumnIndex("sync_type")), v1_1.getInt(v1_1.getColumnIndex("entity_type")));
                } while(v1_1.moveToNext());
            }
        } catch (Throwable v0_2) {
            v1_1.close();
            throw v0_2;
        } catch (android.database.SQLException) {
        }
        v1_1.close();
        this.a(0, 2);
        return v0_1;
    }

Method com.e.a.b.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    private void a(int p8, int p9, int p10, int p11)
    {
        int v4_1;
        String v3_2;
        android.database.sqlite.SQLiteDatabase v0 = this.getDB();
        android.content.ContentValues v1_3 = new StringBuilder();
        v1_3.append("SELECT * FROM ");
        v1_3.append(com.e.a.e$a.a);
        v1_3.append(" WHERE ");
        v1_3.append("business_id");
        v1_3.append("=?");
        android.content.ContentValues v1_0 = v1_3.toString();
        String v3_0 = new String[1];
        v3_0[0] = String.valueOf(p8);
        android.content.ContentValues v1_2 = v0.rawQuery(v1_0, v3_0);
        if (!v1_2.moveToFirst()) {
            v3_2 = 0;
            v4_1 = 0;
        } else {
            v3_2 = v1_2.getInt(v1_2.getColumnIndex("sync_status"));
            v4_1 = 1;
        }
        v1_2.close();
        try {
            if ((v3_2 != 1) || (p11 != 0)) {
                android.content.ContentValues v1_5 = new android.content.ContentValues();
                v1_5.put("business_id", Integer.valueOf(p8));
                v1_5.put("entity_type", Integer.valueOf(p9));
                v1_5.put("sync_type", Integer.valueOf(p10));
                v1_5.put("sync_status", Integer.valueOf(p11));
                if (v4_1 == 0) {
                    v0.insert(com.e.a.e$a.a, 0, v1_5);
                } else {
                    int v9_5 = new String[1];
                    v9_5[0] = String.valueOf(p8);
                    v0.update(com.e.a.e$a.a, v1_5, "business_id=?", v9_5);
                }
            } else {
                int v9_6 = new String[1];
                v9_6[0] = String.valueOf(p8);
                v0.delete(com.e.a.e$a.a, "business_id=?", v9_6);
                return;
            }
        } catch (String v8_6) {
            throw v8_6;
        } catch (Exception) {
        }
        return;
    }

Method com.facebook.ads.internal.g.d.a() calling method android.database.sqlite.SQLiteDatabase.rawQuery()


    public android.database.Cursor a(int p4)
    {
        ark>com.facebook.ads.internal.g.dark>.c.lock();
        try {
            java.util.concurrent.locks.Lock v0_3 = this.a();
            int v1_2 = new StringBuilder();
            v1_2.append(ark>com.facebook.ads.internal.g.dark>.a);
            v1_2.append(" LIMIT ");
            v1_2.append(String.valueOf(p4));
            Throwable v4_3 = v0_3.rawQuery(v1_2.toString(), 0);
            ark>com.facebook.ads.internal.g.dark>.c.unlock();
            return v4_3;
        } catch (Throwable v4_4) {
            ark>com.facebook.ads.internal.g.dark>.c.unlock();
            throw v4_4;
        }
    }

Method com.facebook.ads.internal.g.h.a() calling method android.database.sqlite.SQLiteDatabase.insertOrThrow()


    String a(String p6)
    {
        if (!android.text.TextUtils.isEmpty(p6)) {
            try {
                int v1_1 = this.f();
                android.content.ContentValues v3_4 = new String[1];
                v3_4[0] = p6;
                int v1_0 = v1_1.rawQuery(ark>com.facebook.ads.internal.g.hark>.f, v3_4);
                try {
                    String v2_1;
                    if (!v1_0.moveToNext()) {
                        v2_1 = 0;
                    } else {
                        v2_1 = v1_0.getString(ark>com.facebook.ads.internal.g.hark>.a.a);
                    }
                } catch (android.database.sqlite.SQLiteDatabase v6_1) {
                    if (v1_0 != 0) {
                        v1_0.close();
                    }
                    throw v6_1;
                }
                if (android.text.TextUtils.isEmpty(v2_1)) {
                    String v2_5 = java.util.UUID.randomUUID().toString();
                    android.content.ContentValues v3_2 = new android.content.ContentValues(2);
                    v3_2.put(ark>com.facebook.ads.internal.g.hark>.a.b, v2_5);
                    v3_2.put(ark>com.facebook.ads.internal.g.hark>.b.b, p6);
                    this.f().insertOrThrow("tokens", 0, v3_2);
                    if (v1_0 != 0) {
                        v1_0.close();
                    }
                    return v2_5;
                } else {
                    if (v1_0 != 0) {
                        v1_0.close();
                    }
                    return v2_1;
                }
            } catch (android.database.sqlite.SQLiteDatabase v6_1) {
                v1_0 = 0;
            }
        } else {
            throw new IllegalArgumentException("Invalid token.");
        }
    }

Method com.facebook.ads.internal.g.c.a() calling method android.database.sqlite.SQLiteDatabase.insertOrThrow()


    String a(String p4, int p5, String p6, double p7, double p9, String p11, java.util.Map p12)
    {
        String v6_1;
        String v0_1 = java.util.UUID.randomUUID().toString();
        android.content.ContentValues v1_1 = new android.content.ContentValues(9);
        v1_1.put(ark>com.facebook.ads.internal.g.cark>.a.b, v0_1);
        v1_1.put(ark>com.facebook.ads.internal.g.cark>.b.b, p4);
        v1_1.put(ark>com.facebook.ads.internal.g.cark>.c.b, Integer.valueOf(p5));
        v1_1.put(ark>com.facebook.ads.internal.g.cark>.d.b, p6);
        v1_1.put(ark>com.facebook.ads.internal.g.cark>.e.b, Double.valueOf(p7));
        v1_1.put(ark>com.facebook.ads.internal.g.cark>.f.b, Double.valueOf(p9));
        v1_1.put(ark>com.facebook.ads.internal.g.cark>.g.b, p11);
        if (p12 == null) {
            v6_1 = 0;
        } else {
            v6_1 = new org.json.JSONObject(p12).toString();
        }
        v1_1.put(ark>com.facebook.ads.internal.g.cark>.h.b, v6_1);
        v1_1.put(ark>com.facebook.ads.internal.g.cark>.i.b, Integer.valueOf(0));
        this.f().insertOrThrow("events", 0, v1_1);
        return v0_1;
    }

Method com.playercache.d.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public long a(com.gaana.models.Tracks$Track p6, boolean p7)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.getDB();
        long v1 = 0;
        try {
            long v6_4;
            v0.beginTransaction();
        } catch (long v6_8) {
            v0.endTransaction();
            throw v6_8;
        } catch (long v6_7) {
            com.google.devtools.build.android.desugar.runtime.ThrowableExtension.printStackTrace(v6_7);
            v0.endTransaction();
            return v1;
        }
        if (p7 == null) {
            String[] v7_4 = new String[1];
            v7_4[0] = String.valueOf(p6.getBusinessObjId());
            v6_4 = ((long) v0.delete(com.e.a.e$j.a, "track_id= ?", v7_4));
        } else {
            String[] v7_2 = new android.content.ContentValues();
            v7_2.put("track_id", p6.getBusinessObjId());
            v7_2.put("track_cache_behaviour", Integer.valueOf(p6.getCachingBehaviour()));
            v7_2.put("track_metadata", this.a.toJson(p6));
            v6_4 = v0.insert(com.e.a.e$j.a, 0, v7_2);
        }
        v1 = v6_4;
        v0.setTransactionSuccessful();
        v0.endTransaction();
        return v1;
    }

Method com.helpshift.support.search.a.b.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public void a(java.util.List p7)
    {
        if (p7 != null) {
            Exception v0_3 = new java.util.ArrayList();
            android.database.sqlite.SQLiteOpenHelper v7_1 = p7.iterator();
            while (v7_1.hasNext()) {
                String v1_6 = ((com.helpshift.support.search.b) v7_1.next());
                String v2_6 = this.a(v1_6.c);
                String v3_6 = new android.content.ContentValues();
                v3_6.put("token", v1_6.a);
                v3_6.put("type", Integer.valueOf(v1_6.b));
                v3_6.put("score", v2_6);
                v0_3.add(v3_6);
            }
            String v1_1 = 0;
            try {
                String v2_1 = ark>com.helpshift.support.search.a.bark>.a.getWritableDatabase();
                try {
                    v2_1.beginTransaction();
                    Exception v0_2 = v0_3.iterator();
                } catch (Exception v0_6) {
                    if (v2_1 != null) {
                        try {
                            if (v2_1.inTransaction()) {
                                v2_1.endTransaction();
                            }
                        } catch (String v1_3) {
                            com.helpshift.util.l.c("Helpshift_SearchToknDao", "Error occurred when calling save method inside finally block", v1_3);
                        }
                    }
                    throw v0_6;
                } catch (Exception v0_1) {
                    v1_1 = v2_1;
                    com.helpshift.util.l.c("Helpshift_SearchToknDao", "Error occurred when calling save method", v0_1);
                    if (v1_1 == null) {
                        return;
                    } else {
                        try {
                            if (!v1_1.inTransaction()) {
                                return;
                            } else {
                                v1_1.endTransaction();
                                return;
                            }
                        } catch (Exception v0_5) {
                            String v1_0 = "Helpshift_SearchToknDao";
                            String v2_2 = "Error occurred when calling save method inside finally block";
                            com.helpshift.util.l.c(v1_0, v2_2, v0_5);
                            return;
                        }
                    }
                }
                while (v0_2.hasNext()) {
                    v2_1.insert("search_token_table", 0, ((android.content.ContentValues) v0_2.next()));
                }
                v2_1.setTransactionSuccessful();
                try {
                    if ((v2_1 == null) || (!v2_1.inTransaction())) {
                        return;
                    } else {
                        v2_1.endTransaction();
                        return;
                    }
                } catch (Exception v0_5) {
                    v1_0 = "Helpshift_SearchToknDao";
                    v2_2 = "Error occurred when calling save method inside finally block";
                }
            } catch (Exception v0_6) {
                v2_1 = v1_1;
            } catch (Exception v0_1) {
            } catch (Exception v0_8) {
                throw v0_8;
            }
        } else {
            return;
        }
    }

Method com.helpshift.support.h.i.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public void a(org.json.JSONArray p8)
    {
        try {
            String v1_2 = this.a.getWritableDatabase();
            try {
                v1_2.beginTransaction();
                String v2_1 = 0;
            } catch (Exception v8_5) {
                if (v1_2 != null) {
                    try {
                        if (v1_2.inTransaction()) {
                            v1_2.endTransaction();
                        }
                    } catch (String v1_3) {
                        com.helpshift.util.l.c("HelpShiftDebug", "Error in storeSections inside finally block", v1_3);
                    }
                }
                throw v8_5;
            } catch (Exception v8_3) {
                com.helpshift.util.l.c("HelpShiftDebug", "Error in storeSections", v8_3);
                if (v1_2 == null) {
                    return;
                } else {
                    try {
                        if (!v1_2.inTransaction()) {
                            return;
                        } else {
                            v1_2.endTransaction();
                            return;
                        }
                    } catch (Exception v8_2) {
                        String v1_1 = "HelpShiftDebug";
                        String v2_0 = "Error in storeSections inside finally block";
                        com.helpshift.util.l.c(v1_1, v2_0, v8_2);
                        return;
                    }
                }
            }
            while (v2_1 < p8.length()) {
                String v3_0 = p8.getJSONObject(v2_1);
                v1_2.insert("sections", 0, ark>com.helpshift.support.h.iark>.a(v3_0));
                org.json.JSONArray v4_2 = v3_0.optJSONArray("faqs");
                if (v4_2 != null) {
                    com.helpshift.support.h.d.a(v1_2, v3_0.getString("publish_id"), v4_2);
                }
                v2_1++;
            }
            v1_2.setTransactionSuccessful();
            try {
                if ((v1_2 == null) || (!v1_2.inTransaction())) {
                    return;
                } else {
                    v1_2.endTransaction();
                    return;
                }
            } catch (Exception v8_2) {
                v1_1 = "HelpShiftDebug";
                v2_0 = "Error in storeSections inside finally block";
            }
        } catch (Exception v8_6) {
            throw v8_6;
        }
    }

Method com.helpshift.support.h.d.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public void a(com.helpshift.support.Faq p6)
    {
        Exception v0_0 = ark>com.helpshift.support.h.dark>.b(p6);
        String v2_3 = new String[1];
        v2_3[0] = p6.a();
        try {
            android.database.sqlite.SQLiteDatabase v3_1 = this.a.getWritableDatabase();
        } catch (Exception v0_2) {
            throw v0_2;
        } catch (Exception v0_1) {
            com.helpshift.util.l.c("HelpShiftDebug", "Error in addFaq", v0_1);
            return;
        }
        if (com.helpshift.util.f.a(v3_1, "faqs", "question_id=?", v2_3)) {
            v3_1.update("faqs", v0_0, "question_id=?", v2_3);
            return;
        } else {
            v3_1.insert("faqs", 0, v0_0);
            return;
        }
    }

Method com.helpshift.support.h.d.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public static void a(android.database.sqlite.SQLiteDatabase p4, String p5, org.json.JSONArray p6)
    {
        int v0 = 0;
        try {
            while (v0 < p6.length()) {
                p4.insert("faqs", 0, ark>com.helpshift.support.h.dark>.a(p5, p6.getJSONObject(v0)));
                v0++;
            }
        } catch (org.json.JSONException v4_1) {
            com.helpshift.util.l.a("HelpShiftDebug", "addFaqsUnsafe", v4_1);
        }
        return;
    }

Method com.helpshift.q.b.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public boolean a(String p8, java.io.Serializable p9)
    {
        if ((!android.text.TextUtils.isEmpty(p8)) && (p9 != null)) {
            long v0_4 = this.a.getWritableDatabase();
            String[] v4 = new String[1];
            v4[0] = p8;
            android.content.ContentValues v5_1 = new android.content.ContentValues();
            v5_1.put("key", p8);
            try {
                v5_1.put("value", com.helpshift.util.c.a(p9));
            } catch (android.database.sqlite.SQLiteException v8_4) {
                com.helpshift.util.l.c("HS_KeyValueDB", "Error in serializing value", v8_4);
                return 0;
            }
            if (!com.helpshift.util.f.a(v0_4, "key_value_store", "key=?", v4)) {
                if (v0_4.insert("key_value_store", 0, v5_1) == -1) {
                    throw new android.database.sqlite.SQLiteException("DB insert failed and return -1");
                }
            } else {
                v0_4.update("key_value_store", v5_1, "key=?", v4);
            }
            return 1;
        } else {
            return 0;
        }
    }

Method com.helpshift.j.b.a.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public void a(com.helpshift.j.d.a p10)
    {
        String v1_0 = 0;
        try {
            String v2_1 = this.a.getWritableDatabase();
            try {
                v2_1.beginTransaction();
                try {
                    int v3_0 = v2_1.rawQuery("SELECT rowid FROM LOG_MESSAGES", 0);
                    try {
                        if ((v3_0 == 0) || (v3_0.getCount() < 100)) {
                            v2_1.insert("LOG_MESSAGES", 0, com.helpshift.j.a.a.a(p10));
                            v2_1.setTransactionSuccessful();
                            if (v2_1 != null) {
                                try {
                                    v2_1.endTransaction();
                                } catch (Exception v10_5) {
                                    android.util.Log.e("LogSqliteStorage", "Error inserting log inside finally block: ", v10_5);
                                }
                            }
                            if (v3_0 == 0) {
                                return;
                            } else {
                                v3_0.close();
                                return;
                            }
                        } else {
                            v3_0.moveToFirst();
                            String[] v8_1 = new String[1];
                            v8_1[0] = String.valueOf(v3_0.getInt(0));
                            v2_1.delete("LOG_MESSAGES", "rowid = ?", v8_1);
                        }
                    } catch (String v4_0) {
                        try {
                            String v6_1 = new StringBuilder();
                            v6_1.append("Error in rotation of logs + ");
                            v6_1.append(v4_0.getMessage());
                            android.util.Log.w("LogSqliteStorage", v6_1.toString());
                            v2_1.delete("LOG_MESSAGES", 0, 0);
                        } catch (Exception v10_1) {
                            v1_0 = v2_1;
                            try {
                                android.util.Log.e("LogSqliteStorage", "Error inserting log : ", v10_1);
                            } catch (Exception v10_2) {
                                v2_1 = v1_0;
                                if (v2_1 != null) {
                                    try {
                                        v2_1.endTransaction();
                                    } catch (String v1_2) {
                                        android.util.Log.e("LogSqliteStorage", "Error inserting log inside finally block: ", v1_2);
                                    }
                                }
                                if (v3_0 != 0) {
                                    v3_0.close();
                                }
                                throw v10_2;
                            }
                            if (v1_0 != null) {
                                try {
                                    v1_0.endTransaction();
                                } catch (Exception v10_3) {
                                    android.util.Log.e("LogSqliteStorage", "Error inserting log inside finally block: ", v10_3);
                                }
                            }
                            if (v3_0 == 0) {
                                return;
                            } else {
                            }
                        }
                    }
                } catch (String v4_0) {
                    v3_0 = 0;
                } catch (Exception v10_2) {
                }
            } catch (Exception v10_2) {
                v3_0 = 0;
            } catch (Exception v10_1) {
                v3_0 = 0;
            }
        } catch (Exception v10_2) {
            v2_1 = 0;
            v3_0 = 0;
        } catch (Exception v10_1) {
            v3_0 = 0;
        } catch (Exception v10_6) {
            throw v10_6;
        }
    }

Method com.helpshift.campaigns.l.j.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public void a(com.helpshift.campaigns.models.f p6)
    {
        if (p6 != null) {
            try {
                String v2_3 = new String[1];
                v2_3[0] = p6.a;
                android.database.sqlite.SQLiteDatabase v3_0 = this.a.getWritableDatabase();
            } catch (android.content.ContentValues v6_4) {
                throw v6_4;
            } catch (android.content.ContentValues v6_3) {
                com.helpshift.util.l.c("Helpshift_SessionDB", "Error storing sessions", v6_3);
                return;
            }
            if (!com.helpshift.util.f.a(v3_0, "sessions", "identifier=?", v2_3)) {
                v3_0.insert("sessions", 0, this.c(p6));
                return;
            } else {
                v3_0.update("sessions", this.c(p6), "identifier=?", v2_3);
                return;
            }
        } else {
            return;
        }
    }

Method com.helpshift.campaigns.l.h.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public void a(String p6, com.helpshift.campaigns.models.PropertyValue p7, String p8)
    {
        if ((!android.text.TextUtils.isEmpty(p6)) && ((p7 != null) && (!android.text.TextUtils.isEmpty(p8)))) {
            Exception v8_3 = this.f(p8);
            try {
                String v1_1 = this.a.getWritableDatabase();
                Exception v8_1 = this.a.a(v8_3);
                String v3_1 = new String[1];
                v3_1[0] = p6;
            } catch (String v6_3) {
                throw v6_3;
            } catch (Exception v8_2) {
                StringBuilder v2_4 = new StringBuilder();
                v2_4.append("Error setProperty key: ");
                v2_4.append(p6);
                v2_4.append(", value : ");
                v2_4.append(p7);
                com.helpshift.util.l.c("Helpshift_PropertyDB", v2_4.toString(), v8_2);
                return;
            }
            if (!com.helpshift.util.f.a(v1_1, v8_1, "key=?", v3_1)) {
                v1_1.insert(v8_1, 0, this.a(p6, p7));
                return;
            } else {
                v1_1.update(v8_1, this.a(p6, p7), "key=?", v3_1);
                return;
            }
        } else {
            return;
        }
    }

Method com.helpshift.campaigns.l.a.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public void a(com.helpshift.campaigns.models.b p8)
    {
        if ((p8 != null) && ((!android.text.TextUtils.isEmpty(p8.k())) && ((!android.text.TextUtils.isEmpty(p8.a)) && ((!android.text.TextUtils.isEmpty(p8.j())) && ((!android.text.TextUtils.isEmpty(p8.i())) && (!android.text.TextUtils.isEmpty(p8.c))))))) {
            java.util.Iterator v1_0 = 1;
            try {
                String v3_1 = this.a.getWritableDatabase();
                String v5_0 = new String[1];
                v5_0[0] = p8.k();
            } catch (Throwable v8_1) {
                throw v8_1;
            } catch (java.util.Iterator v1_1) {
                String v4_3 = new StringBuilder();
                v4_3.append("Exception in adding campaign with id ");
                v4_3.append(p8.k());
                com.helpshift.util.l.c("Helpshift_CampDBStore", v4_3.toString(), v1_1);
                v1_0 = 0;
                if (v1_0 != null) {
                    java.util.Iterator v1_3 = this.b.iterator();
                    while (v1_3.hasNext()) {
                        ((com.helpshift.campaigns.i.f) v1_3.next()).a(p8);
                    }
                }
                return;
            }
            if (com.helpshift.util.f.a(v3_1, "campaigns", "identifier=?", v5_0)) {
            } else {
                v3_1.insert("campaigns", 0, this.b(p8));
            }
        } else {
            return;
        }
    }

Method com.moe.pushlibrary.providers.MoEProvider.insert() calling method android.database.sqlite.SQLiteDatabase.insert()


    public android.net.Uri insert(android.net.Uri p7, android.content.ContentValues p8)
    {
        if (p8 != null) {
            android.net.Uri v8_4;
            long v1_8 = this.mOpenHelper.getWritableDatabase();
            this.updateIfRequired(v1_8);
            String v2_9 = com.moe.pushlibrary.providers.MoEProvider.sUriMatcher.match(p7);
            if (v2_9 == 1) {
                long v1_5 = v1_8.insert("MESSAGES", 0, p8);
                if (v1_5 <= 0) {
                    v8_4 = 0;
                } else {
                    v8_4 = android.content.ContentUris.withAppendedId(com.moe.pushlibrary.providers.MoEDataContract$MessageEntity.getContentUri(this.getContext()), v1_5);
                }
            } else {
                if (v2_9 == 3) {
                    long v1_7 = v1_8.insert("DATAPOINTS", 0, p8);
                    if (v1_7 <= 0) {
                    } else {
                        v8_4 = android.content.ContentUris.withAppendedId(com.moe.pushlibrary.providers.MoEDataContract$DatapointEntity.getContentUri(this.getContext()), v1_7);
                    }
                } else {
                    if (v2_9 == 5) {
                        long v1_9 = v1_8.insert("INAPPMSG", 0, p8);
                        if (v1_9 <= 0) {
                        } else {
                            v8_4 = android.content.ContentUris.withAppendedId(com.moe.pushlibrary.providers.MoEDataContract$InAppMessageEntity.getContentUri(this.getContext()), v1_9);
                        }
                    } else {
                        if (v2_9 == 9) {
                            long v1_10 = v1_8.insert("USERATTRIBUTES", 0, p8);
                            if (v1_10 <= 0) {
                            } else {
                                v8_4 = android.content.ContentUris.withAppendedId(com.moe.pushlibrary.providers.MoEDataContract$UserAttributeEntity.getContentUri(this.getContext()), v1_10);
                            }
                        } else {
                            if (v2_9 == 11) {
                                long v1_11 = v1_8.insert("CAMPAIGNLIST", 0, p8);
                                if (v1_11 <= 0) {
                                } else {
                                    v8_4 = android.content.ContentUris.withAppendedId(com.moe.pushlibrary.providers.MoEDataContract$UserAttributeEntity.getContentUri(this.getContext()), v1_11);
                                }
                            } else {
                                if (v2_9 == 13) {
                                    long v1_12 = v1_8.insert("BATCH_DATA", 0, p8);
                                    if (v1_12 <= 0) {
                                    } else {
                                        v8_4 = android.content.ContentUris.withAppendedId(com.moe.pushlibrary.providers.MoEDataContract$BatchDataEntity.getContentUri(this.getContext()), v1_12);
                                    }
                                } else {
                                    android.net.Uri v8_21 = new StringBuilder();
                                    v8_21.append("Unknown URI ");
                                    v8_21.append(p7);
                                    com.moengage.core.Logger.f(v8_21.toString());
                                }
                            }
                        }
                    }
                }
            }
            if (v8_4 == null) {
                com.moengage.core.Logger.f("MoEProvider: Failed to add new record");
            } else {
                long v1_1 = new StringBuilder();
                v1_1.append("MoEProvider: Added new record : ");
                v1_1.append(v8_4.toString());
                com.moengage.core.Logger.v(v1_1.toString());
                this.getContext().getContentResolver().notifyChange(p7, 0);
            }
            return v8_4;
        } else {
            return 0;
        }
    }

Method com.moe.pushlibrary.providers.MoEProvider.portDataFromv2() calling method android.database.sqlite.SQLiteDatabase.insert()


    private void portDataFromv2(android.database.sqlite.SQLiteDatabase p7)
    {
        try {
            p7.beginTransaction();
            Exception v0_1 = p7.rawQuery("SELECT * FROM moemsgs", 0);
        } catch (Exception v0_3) {
            if (p7 != null) {
                p7.endTransaction();
            }
            throw v0_3;
        } catch (Exception v0_2) {
            com.moengage.core.Logger.f("MoEProvider: portDatafromv2", v0_2);
            if (p7 == null) {
                return;
            } else {
                p7.endTransaction();
                return;
            }
            p7.setTransactionSuccessful();
            if (p7 == null) {
                return;
            } else {
            }
        }
        if ((v0_1 != null) && (v0_1.moveToFirst())) {
            do {
                boolean v2_0 = new android.content.ContentValues();
                v2_0.put("msg", v0_1.getString(1));
                v2_0.put("msgclicked", Integer.valueOf(v0_1.getInt(2)));
                v2_0.put("msgttl", Long.valueOf(Long.parseLong(v0_1.getString(3))));
                v2_0.put("gtime", Long.valueOf(Long.parseLong(v0_1.getString(4))));
                boolean v2_1 = p7.insert("MESSAGES", 0, v2_0);
                StringBuilder v4_14 = new StringBuilder();
                v4_14.append("MoEProvider:onUpgrade: Porting message data: ");
                v4_14.append(v2_1);
                com.moengage.core.Logger.v(v4_14.toString());
            } while(v0_1.moveToNext());
            v0_1.close();
        }
    }

Method com.moe.pushlibrary.providers.MoEProvider.populateDatapoints() calling method android.database.sqlite.SQLiteDatabase.insert()


    private void populateDatapoints(android.database.sqlite.SQLiteDatabase p9)
    {
        if (p9 != null) {
            try {
                com.moengage.core.Logger.d("Started porting DATA - FOR DATAPOINTS");
                p9.beginTransaction();
                Exception v0_4 = p9.rawQuery("SELECT _id, action, attrs, gtime, ltime FROM EVENTS", 0);
            } catch (Exception v0_3) {
                p9.endTransaction();
                throw v0_3;
            } catch (Exception v0_2) {
                com.moengage.core.Logger.f("MoEProvider: populateDatapoints", v0_2);
                p9.endTransaction();
                return;
            }
            if ((v0_4 != null) && (v0_4.moveToFirst())) {
                do {
                    boolean v2_2 = new android.content.ContentValues();
                    String v3_2 = com.moe.pushlibrary.utils.MoEHelperUtils.getDatapointJSON(v0_4.getString(1), new org.json.JSONObject(v0_4.getString(2)), Long.toString(v0_4.getLong(3)), v0_4.getString(4));
                    if (v3_2 != null) {
                        v2_2.put("details", v3_2.toString());
                        v2_2.put("gtime", Long.valueOf(v0_4.getLong(3)));
                        boolean v2_3 = p9.insert("DATAPOINTS", 0, v2_2);
                        StringBuilder v4_6 = new StringBuilder();
                        v4_6.append("MoEProvider:onUpgrade: Porting event data: ");
                        v4_6.append(v2_3);
                        com.moengage.core.Logger.v(v4_6.toString());
                    }
                } while(v0_4.moveToNext());
                v0_4.close();
            }
            p9.setTransactionSuccessful();
            p9.endTransaction();
            return;
        } else {
            return;
        }
    }

Method com.helpshift.support.h.g.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public declared_synchronized void a(com.helpshift.account.dao.ProfileDTO p5)
    {
        try {
            String v1_2 = new String[1];
            v1_2[0] = p5.c;
            android.database.sqlite.SQLiteDatabase v2_2 = this.a.getWritableDatabase();
            String v5_1 = this.b(p5);
            try {
                if (com.helpshift.util.f.a(v2_2, "profiles", "IDENTIFIER=?", v1_2)) {
                    v2_2.update("profiles", v5_1, "IDENTIFIER=?", v1_2);
                } else {
                    v2_2.insert("profiles", 0, v5_1);
                }
            } catch (String v5_2) {
                com.helpshift.util.l.c("Helpshift_ProfileDB", "Error in addProfile", v5_2);
            }
            com.helpshift.util.e.a("__hs__db_profiles");
            return;
        } catch (String v5_3) {
            throw v5_3;
        }
    }

Method com.helpshift.common.a.a.c() calling method android.database.sqlite.SQLiteDatabase.insert()


    public declared_synchronized java.util.List c(java.util.List p6)
    {
        try {
            String v1_0 = 0;
        } catch (Throwable v6_4) {
            throw v6_4;
        }
        if (p6.size() != 0) {
            Exception v0_5 = new java.util.ArrayList();
            Throwable v6_5 = p6.iterator();
            while (v6_5.hasNext()) {
                v0_5.add(this.c(((com.helpshift.conversation.activeconversation.message.j) v6_5.next())));
            }
            Throwable v6_2 = new java.util.ArrayList();
            try {
                String v2_1 = this.z.getWritableDatabase();
                try {
                    v2_1.beginTransaction();
                    Exception v0_2 = v0_5.iterator();
                } catch (Throwable v6_3) {
                    if (v2_1 != null) {
                        try {
                            v2_1.endTransaction();
                        } catch (Exception v0_6) {
                            com.helpshift.util.l.c("Helpshift_ConverDB", "Error in insert messages inside finally block", v0_6);
                        }
                    }
                    throw v6_3;
                } catch (Exception v0_1) {
                    v1_0 = v2_1;
                    com.helpshift.util.l.c("Helpshift_ConverDB", "Error in insert messages", v0_1);
                    if (v1_0 == null) {
                        return v6_2;
                    } else {
                        try {
                            v1_0.endTransaction();
                        } catch (Exception v0_3) {
                            String v1_1 = "Helpshift_ConverDB";
                            String v2_2 = "Error in insert messages inside finally block";
                            com.helpshift.util.l.c(v1_1, v2_2, v0_3);
                        }
                        return v6_2;
                    }
                }
                while (v0_2.hasNext()) {
                    v6_2.add(Long.valueOf(v2_1.insert("messages", 0, ((android.content.ContentValues) v0_2.next()))));
                }
                v2_1.setTransactionSuccessful();
                if (v2_1 == null) {
                    return v6_2;
                } else {
                    try {
                        v2_1.endTransaction();
                    } catch (Exception v0_3) {
                        v1_1 = "Helpshift_ConverDB";
                        v2_2 = "Error in insert messages inside finally block";
                    }
                    return v6_2;
                }
            } catch (Throwable v6_3) {
                v2_1 = v1_0;
            } catch (Exception v0_1) {
            }
        } else {
            return 0;
        }
    }

Method com.helpshift.common.a.a.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public declared_synchronized java.util.List a(java.util.List p6)
    {
        try {
            String v1_0 = 0;
        } catch (Throwable v6_4) {
            throw v6_4;
        }
        if (p6.size() != 0) {
            Exception v0_5 = new java.util.ArrayList();
            Throwable v6_5 = p6.iterator();
            while (v6_5.hasNext()) {
                v0_5.add(this.c(((com.helpshift.conversation.activeconversation.a) v6_5.next())));
            }
            Throwable v6_2 = new java.util.ArrayList();
            try {
                String v2_1 = this.z.getWritableDatabase();
                try {
                    v2_1.beginTransaction();
                    Exception v0_2 = v0_5.iterator();
                } catch (Throwable v6_3) {
                    if (v2_1 != null) {
                        try {
                            v2_1.endTransaction();
                        } catch (Exception v0_6) {
                            com.helpshift.util.l.c("Helpshift_ConverDB", "Error in insert conversations inside finally block", v0_6);
                        }
                    }
                    throw v6_3;
                } catch (Exception v0_1) {
                    v1_0 = v2_1;
                    com.helpshift.util.l.c("Helpshift_ConverDB", "Error in insert conversations", v0_1);
                    if (v1_0 == null) {
                        return v6_2;
                    } else {
                        try {
                            v1_0.endTransaction();
                        } catch (Exception v0_3) {
                            String v1_1 = "Helpshift_ConverDB";
                            String v2_2 = "Error in insert conversations inside finally block";
                            com.helpshift.util.l.c(v1_1, v2_2, v0_3);
                        }
                        return v6_2;
                    }
                }
                while (v0_2.hasNext()) {
                    Long v3_2 = ((android.content.ContentValues) v0_2.next());
                    this.y.getClass();
                    v6_2.add(Long.valueOf(v2_1.insert("issues", 0, v3_2)));
                }
                v2_1.setTransactionSuccessful();
                if (v2_1 == null) {
                    return v6_2;
                } else {
                    try {
                        v2_1.endTransaction();
                    } catch (Exception v0_3) {
                        v1_1 = "Helpshift_ConverDB";
                        v2_2 = "Error in insert conversations inside finally block";
                    }
                    return v6_2;
                }
            } catch (Throwable v6_3) {
                v2_1 = v1_0;
            } catch (Exception v0_1) {
            }
        } else {
            return 0;
        }
    }

Method com.helpshift.common.a.a.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public declared_synchronized com.helpshift.conversation.dto.a.a a(com.helpshift.conversation.dto.a.a p6)
    {
        try {
            String v0_1 = new StringBuilder();
            this.y.getClass();
            v0_1.append("profile_id");
            v0_1.append(" = ?");
            String v0_5 = v0_1.toString();
            String v1_1 = new String[1];
            v1_1[0] = String.valueOf(p6.a);
            String v2_1 = this.b(p6);
            try {
                android.database.sqlite.SQLiteDatabase v3_3 = this.z.getWritableDatabase();
                this.y.getClass();
            } catch (String v0_4) {
                com.helpshift.util.l.c("Helpshift_ConverDB", "Error in store conversation inbox record", v0_4);
                return p6;
            }
            if (!this.a(v3_3, "conversation_inbox", v0_5, v1_1)) {
                this.y.getClass();
                v3_3.insert("conversation_inbox", 0, v2_1);
                return p6;
            } else {
                this.y.getClass();
                v3_3.update("conversation_inbox", v2_1, v0_5, v1_1);
                return p6;
            }
        } catch (Throwable v6_1) {
            throw v6_1;
        }
    }

Method com.helpshift.common.a.a.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public declared_synchronized long a(com.helpshift.conversation.activeconversation.message.j p6)
    {
        try {
            try {
                long v0 = this.z.getWritableDatabase().insert("messages", 0, this.c(p6));
            } catch (Exception v6_2) {
                com.helpshift.util.l.c("Helpshift_ConverDB", "Error in insert message", v6_2);
            }
            return v0;
        } catch (Exception v6_3) {
            throw v6_3;
        }
    }

Method com.helpshift.common.a.a.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public declared_synchronized long a(com.helpshift.conversation.activeconversation.a p6)
    {
        try {
            Exception v6_1 = this.c(p6);
            try {
                String v2_3 = this.z.getWritableDatabase();
                this.y.getClass();
                long v0 = v2_3.insert("issues", 0, v6_1);
            } catch (Exception v6_2) {
                com.helpshift.util.l.c("Helpshift_ConverDB", "Error in insert conversation", v6_2);
            }
            return v0;
        } catch (Exception v6_3) {
            throw v6_3;
        }
    }

Method com.google.android.gms.internal.measurement.zzbf.zzc() calling method android.database.sqlite.SQLiteDatabase.insert()


    public final void zzc(com.google.android.gms.internal.measurement.zzck p9)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p9);
        com.google.android.gms.analytics.zzk.zzaf();
        this.zzcl();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p9);
        Long v0_3 = new android.net.Uri$Builder();
        android.database.sqlite.SQLiteDatabase v1_0 = p9.zzcw().entrySet().iterator();
        while (v1_0.hasNext()) {
            String v2_1 = ((java.util.Map$Entry) v1_0.next());
            int v3_1 = ((String) v2_1.getKey());
            if ((!"ht".equals(v3_1)) && ((!"qt".equals(v3_1)) && (!"AppUID".equals(v3_1)))) {
                v0_3.appendQueryParameter(v3_1, ((String) v2_1.getValue()));
            }
        }
        Long v0_1 = v0_3.build().getEncodedQuery();
        if (v0_1 == null) {
            v0_1 = "";
        }
        if (v0_1.length() <= 8192) {
            android.database.sqlite.SQLiteDatabase v1_5 = ((Integer) com.google.android.gms.internal.measurement.zzcf.zzza.get()).intValue();
            String v2_6 = this.zzcv();
            if (v2_6 > ((long) (v1_5 - 1))) {
                android.database.sqlite.SQLiteDatabase v1_7 = this.zzc(((v2_6 - ((long) v1_5)) + 1));
                this.zzd("Store full, deleting hits to make room, count", Integer.valueOf(v1_7.size()));
                this.zza(v1_7);
            }
            int v3_11;
            android.database.sqlite.SQLiteDatabase v1_8 = this.getWritableDatabase();
            String v2_9 = new android.content.ContentValues();
            v2_9.put("hit_string", v0_1);
            v2_9.put("hit_time", Long.valueOf(p9.zzer()));
            v2_9.put("hit_app_id", Integer.valueOf(p9.zzep()));
            if (!p9.zzet()) {
                v3_11 = com.google.android.gms.internal.measurement.zzbx.zzee();
            } else {
                v3_11 = com.google.android.gms.internal.measurement.zzbx.zzed();
            }
            v2_9.put("hit_url", v3_11);
            try {
                Long v0_8 = v1_8.insert("hits2", 0, v2_9);
            } catch (String v9_2) {
                this.zze("Error storing a hit", v9_2);
                return;
            }
            if (v0_8 != -1) {
                this.zzb("Hit saved to database. db-id, hit", Long.valueOf(v0_8), p9);
                return;
            } else {
                this.zzu("Failed to insert a hit (got -1)");
                return;
            }
        } else {
            this.zzby().zza(p9, "Hit length exceeds the maximum allowed size");
            return;
        }
    }

Method com.google.android.gms.tagmanager.zzeb.zzb() calling method android.database.sqlite.SQLiteDatabase.insert()


    public final void zzb(long p10, String p12)
    {
        android.database.sqlite.SQLiteDatabase v0_3 = this.zzrz.currentTimeMillis();
        if (v0_3 > (this.zzbdt + 86400000)) {
            this.zzbdt = v0_3;
            android.database.sqlite.SQLiteDatabase v0_2 = this.zzdl("Error opening database for deleteStaleHits.");
            if (v0_2 != null) {
                android.content.ContentValues v1_4;
                String[] v5_1 = new String[1];
                v5_1[0] = Long.toString((this.zzrz.currentTimeMillis() - 1.280618154e-314));
                v0_2.delete("gtm_hits", "HIT_TIME < ?", v5_1);
                if (this.zzpj() != 0) {
                    v1_4 = 0;
                } else {
                    v1_4 = 1;
                }
                this.zzbdr.zzo(v1_4);
            }
        }
        android.database.sqlite.SQLiteDatabase v0_7 = ((this.zzpj() - this.zzbdu) + 1);
        if (v0_7 > null) {
            android.database.sqlite.SQLiteDatabase v0_8 = this.zzab(v0_7);
            android.content.ContentValues v1_6 = v0_8.size();
            StringBuilder v3_1 = new StringBuilder(51);
            v3_1.append("Store full, deleting ");
            v3_1.append(v1_6);
            v3_1.append(" hits to make room.");
            com.google.android.gms.tagmanager.zzdi.v(v3_1.toString());
            android.content.ContentValues v1_9 = new String[0];
            this.zza(((String[]) v0_8.toArray(v1_9)));
        }
        android.database.sqlite.SQLiteDatabase v0_12 = this.zzdl("Error opening database for putHit");
        if (v0_12 != null) {
            android.content.ContentValues v1_11 = new android.content.ContentValues();
            v1_11.put("hit_time", Long.valueOf(p10));
            v1_11.put("hit_url", p12);
            v1_11.put("hit_first_send_time", Integer.valueOf(0));
            try {
                v0_12.insert("gtm_hits", 0, v1_11);
                this.zzbdr.zzo(0);
                return;
            } catch (android.database.sqlite.SQLiteException) {
                com.google.android.gms.tagmanager.zzdi.zzab("Error storing hit");
            }
        }
        return;
    }

Method com.google.android.gms.tagmanager.zzat.zzb() calling method android.database.sqlite.SQLiteDatabase.insert()


    private final declared_synchronized void zzb(java.util.List p11, long p12)
    {
        try {
            android.content.ContentValues v0_1 = this.zzrz.currentTimeMillis();
            this.zzap(v0_1);
            String v3_0 = ((this.zzoj() - this.zzbbm) + p11.size());
        } catch (Throwable v11_2) {
            this.zzok();
            throw v11_2;
        } catch (Throwable v11_3) {
            throw v11_3;
        }
        if (v3_0 > null) {
            String v2_0 = this.zzw(v3_0);
            String v3_1 = v2_0.size();
            String v5_1 = new StringBuilder(64);
            v5_1.append("DataLayer store full, deleting ");
            v5_1.append(v3_1);
            v5_1.append(" entries to make room.");
            com.google.android.gms.tagmanager.zzdi.zzdm(v5_1.toString());
            int v4_2 = new String[0];
            String v2_2 = ((String[]) v2_0.toArray(v4_2));
            if (v2_2 != null) {
                if (v2_2.length != 0) {
                    int v4_5 = this.zzdl("Error opening database for deleteEntries.");
                    if (v4_5 != 0) {
                        Object[] v6_1 = new Object[2];
                        v6_1[0] = "ID";
                        v6_1[1] = android.text.TextUtils.join(",", java.util.Collections.nCopies(v2_2.length, "?"));
                        v4_5.delete("datalayer", String.format("%s in (%s)", v6_1), v2_2);
                    }
                } else {
                }
            }
        }
        String v2_8 = (v0_1 + p12);
        android.database.sqlite.SQLiteDatabase v12_2 = this.zzdl("Error opening database for writeEntryToDatabase.");
        if (v12_2 != null) {
            Throwable v11_1 = p11.iterator();
            while (v11_1.hasNext()) {
                String v13_4 = ((com.google.android.gms.tagmanager.zzay) v11_1.next());
                android.content.ContentValues v0_3 = new android.content.ContentValues();
                v0_3.put("expires", Long.valueOf(v2_8));
                v0_3.put("key", v13_4.zzoj);
                v0_3.put("value", v13_4.zzbbs);
                v12_2.insert("datalayer", 0, v0_3);
            }
        }
        this.zzok();
        return;
    }

Method com.gaana.localmedia.LocalMediaActivityDbHelper.insertFeed() calling method android.database.sqlite.SQLiteDatabase.insert()


    public void insertFeed(String p4, String p5, String p6, String p7, String p8, String p9)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.getDB();
        try {
            v0.beginTransaction();
            android.content.ContentValues v1_1 = new android.content.ContentValues();
            v1_1.put("item_id", p4);
            v1_1.put("item_name", p5);
            v1_1.put("item_parent_id", p7);
            v1_1.put("item_parent_type", p6);
            v1_1.put("item_parent_name", p8);
            v1_1.put("item_activity_type", p9);
            v0.insert(com.e.a.e$e.a, "item_id", v1_1);
            v0.setTransactionSuccessful();
        } catch (Throwable v4_5) {
            v0.endTransaction();
            throw v4_5;
        } catch (Exception) {
        }
        v0.endTransaction();
        return;
    }

Method com.e.a.h.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    private void a(com.gaana.models.Tracks$Track p4, int p5, int p6, int p7, boolean p8)
    {
        try {
            if (!p4.isLocalMedia()) {
                android.content.ContentValues v0_2 = new android.content.ContentValues();
                v0_2.put("track_id", p4.getBusinessObjId());
                v0_2.put("playlist_id", Integer.valueOf(p5));
                v0_2.put("track_position_in_playlist", Integer.valueOf(p6));
                v0_2.put("has_downloaded", Integer.valueOf(p7));
                this.getDB().insert(com.e.a.e$k.a, 0, v0_2);
                if (p8) {
                    this.a(p4, p7);
                }
            }
        } catch (Exception) {
        }
        return;
    }

Method com.e.a.h.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    private void a(com.gaana.models.Tracks$Track p9, int p10)
    {
        try {
            int v1_3 = this.getDB();
            com.managers.DownloadManager v2_9 = new StringBuilder();
            v2_9.append("select track_id from ");
            v2_9.append(com.e.a.e$l.a);
            v2_9.append(" where track_id=");
            v2_9.append(p9.getBusinessObjId());
            int v1_0 = v1_3.rawQuery(v2_9.toString(), 0);
            try {
                if (v1_0.moveToFirst()) {
                    String v3_20 = new String[1];
                    v3_20[0] = String.valueOf(p9.getBusinessObjId());
                    String v4_20 = new android.content.ContentValues();
                    v4_20.put("track_metadata", com.library.util.Serializer.serialize(p9));
                    v4_20.put("track_name", p9.getRawName());
                    if (android.text.TextUtils.isEmpty(p9.getLanguage())) {
                        v4_20.put("track_language", "English");
                    } else {
                        v4_20.put("track_language", p9.getLanguage());
                    }
                    v4_20.put("has_downloaded", Integer.valueOf(p10));
                    if (p10 == null) {
                        v4_20.put("download_time", Long.valueOf(System.currentTimeMillis()));
                    }
                    v4_20.put("artist_name", p9.getArtistRawNames());
                    v4_20.put("album_name", p9.getRawAlbumTitle());
                    v4_20.put("track_artwork", p9.getArtwork());
                    v4_20.put("smart_download", Integer.valueOf(p9.getSmartDownload()));
                    v4_20.put("parental_warn", Integer.valueOf(p9.isParentalWarningEnabled()));
                    v4_20.put("free_download", Boolean.valueOf(p9.isFreeDownloadEnabled()));
                    this.getDB().update(com.e.a.e$l.a, v4_20, "track_id=?", v3_20);
                    ark>com.e.a.hark>.a.put(p9.getBusinessObjId(), p9);
                } else {
                    com.managers.DownloadManager v2_1 = new android.content.ContentValues();
                    v2_1.put("track_id", p9.getBusinessObjId());
                    v2_1.put("has_downloaded", Integer.valueOf(p10));
                    if (p10 == null) {
                        v2_1.put("download_time", Long.valueOf(System.currentTimeMillis()));
                    }
                    v2_1.put("track_metadata", com.library.util.Serializer.serialize(p9));
                    v2_1.put("track_name", p9.getRawName());
                    if (android.text.TextUtils.isEmpty(p9.getLanguage())) {
                        v2_1.put("track_language", "English");
                    } else {
                        v2_1.put("track_language", p9.getLanguage());
                    }
                    v2_1.put("artist_name", p9.getArtistRawNames());
                    v2_1.put("album_name", p9.getRawAlbumTitle());
                    v2_1.put("track_artwork", p9.getArtwork());
                    v2_1.put("parental_warn", Integer.valueOf(p9.isParentalWarningEnabled()));
                    v2_1.put("smart_download", Integer.valueOf(p9.getSmartDownload()));
                    v2_1.put("free_download", Boolean.valueOf(p9.isFreeDownloadEnabled()));
                    this.getDB().insert(com.e.a.e$l.a, 0, v2_1);
                    ark>com.e.a.hark>.a.put(p9.getBusinessObjId(), p9);
                }
            } catch (boolean v9_1) {
                if (v1_0 != 0) {
                    if (!v1_0.isClosed()) {
                        v1_0.close();
                    }
                }
                throw v9_1;
            }
            if ((v1_0 != 0) && (!v1_0.isClosed())) {
                v1_0.close();
            }
            int v1_2 = Integer.parseInt(p9.getBusinessObjId());
            com.managers.DownloadManager.c().a(v1_2, p10, 0);
            com.managers.DownloadManager.c().a(v1_2, p9.isFreeDownloadEnabled());
            return;
        } catch (boolean v9_1) {
            v1_0 = 0;
        }
    }

Method com.e.a.h.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    private void a(int p6, int p7, com.gaana.models.BusinessObject p8, int p9)
    {
        java.util.ArrayList v0 = p8.getArrListBusinessObj();
        p8.setArrListBusinessObj(0);
        try {
            android.content.ContentValues v2_1 = new android.content.ContentValues();
            v2_1.put("playlist_id", Integer.valueOf(p6));
            v2_1.put("download_status", Integer.valueOf(p9));
            v2_1.put("playlist_content", com.library.util.Serializer.serialize(p8));
            v2_1.put("playlist_name", p8.getRawName());
            v2_1.put("playlist_type", Integer.valueOf(p7));
        } catch (Throwable v6_1) {
            p8.setArrListBusinessObj(v0);
            throw v6_1;
        } catch (Exception) {
            p8.setArrListBusinessObj(v0);
            return;
        }
        if ((p9 == 1) || (p9 == 0)) {
            v2_1.put("download_time", Long.valueOf(System.currentTimeMillis()));
        }
        this.getDB().insert(com.e.a.e$h.a, 0, v2_1);
        com.managers.DownloadManager.c().a(p6, p9, 0, 0);
        p8.setArrListBusinessObj(v0);
        return;
    }

Method com.e.a.g.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public void a(com.gaana.models.Tracks$Track p5)
    {
        StringBuilder v0_1 = new android.content.ContentValues();
        android.database.sqlite.SQLiteDatabase v1 = this.getDB();
        try {
            v1.beginTransaction();
        } catch (String v5_7) {
            v1.endTransaction();
            throw v5_7;
        } catch (String v5_6) {
            com.google.devtools.build.android.desugar.runtime.ThrowableExtension.printStackTrace(v5_6);
            v1.endTransaction();
            return;
        }
        if (this.a(p5.getBusinessObjId())) {
            StringBuilder v0_3 = new StringBuilder();
            v0_3.append("update ");
            v0_3.append(com.e.a.e$i.a);
            v0_3.append(" set ");
            v0_3.append("time_stamp");
            v0_3.append(" = ");
            v0_3.append(System.currentTimeMillis());
            v0_3.append(" where ");
            v0_3.append("track_id");
            v0_3.append(" = ");
            v0_3.append(p5.getBusinessObjId());
            v1.execSQL(v0_3.toString());
            v1.setTransactionSuccessful();
            v1.endTransaction();
            return;
        } else {
            v0_1.put("track_id", p5.getBusinessObjId());
            v0_1.put("track_metadata", com.services.n.a(p5));
            v0_1.put("time_stamp", Long.valueOf(System.currentTimeMillis()));
            v1.insert(com.e.a.e$i.a, 0, v0_1);
            v1.setTransactionSuccessful();
            v1.endTransaction();
            return;
        }
    }

Method com.e.a.f.c() calling method android.database.sqlite.SQLiteDatabase.insert()


    public long c(String p6)
    {
        if (!this.k(p6)) {
            long v0_1 = this.k();
            try {
                v0_1.beginTransaction();
                long v1_2 = new android.content.ContentValues();
                v1_2.put("name", p6);
                int v2_1 = new com.gaana.models.Playlists$Playlist();
                v2_1.setName(p6);
                v2_1.setBusinessObjType(com.managers.URLManager$BusinessObjectType.Playlists);
                String v6_4 = ((com.gaana.application.GaanaApplication) com.gaana.application.GaanaApplication.getContext()).getCurrentUser();
                v2_1.setCreatedby(v6_4.getUserProfile().getFullname());
                v2_1.setCreatedbyUserId(v6_4.getUserProfile().getUserId());
                v1_2.put("playlist_metadata", com.services.n.a(v2_1));
                v1_2.put("time_stamp", new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new java.util.Date(System.currentTimeMillis())));
                long v1_0 = v0_1.insert(com.e.a.e$f.a, 0, v1_2);
                v0_1.setTransactionSuccessful();
                v0_1.endTransaction();
                return v1_0;
            } catch (String v6_14) {
                v0_1.endTransaction();
                throw v6_14;
            } catch (String v6_12) {
                v6_12.getMessage().toString();
                v0_1.endTransaction();
                v0_1 = -1;
                return -1;
            }
        } else {
            return -2;
        }
    }

Method com.e.a.f.b() calling method android.database.sqlite.SQLiteDatabase.insert()


    public long b(com.gaana.models.Playlists$Playlist p7)
    {
        long v0 = this.k();
        try {
            v0.beginTransaction();
            long v1_1 = new android.content.ContentValues();
            v1_1.put("name", p7.getName());
            v1_1.put("language", p7.getLanguage());
            v1_1.put("playlist_id", p7.getBusinessObjId());
            v1_1.put("time_stamp", new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new java.util.Date(System.currentTimeMillis())));
        } catch (String v7_2) {
            v0.endTransaction();
            throw v7_2;
        } catch (String v7_1) {
            com.google.devtools.build.android.desugar.runtime.ThrowableExtension.printStackTrace(v7_1);
            v0.endTransaction();
            v0 = -1;
            return -1;
        }
        if (!android.text.TextUtils.isEmpty(p7.getLocalPlaylistId())) {
            v1_1.put("local_playlist_id", p7.getLocalPlaylistId());
        }
        v1_1.put("playlist_metadata", com.services.n.a(p7));
        long v1_2 = v0.insert(com.e.a.e$f.a, 0, v1_1);
        v0.setTransactionSuccessful();
        v0.endTransaction();
        return v1_2;
    }

Method com.e.a.f.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public void a(com.gaana.models.Playlists$Playlist p9, java.util.ArrayList p10)
    {
        String v0_0 = p9.getOfflinePlaylistId();
        if (v0_0 <= 0) {
            v0_0 = this.a(p9.getBusinessObjId());
        }
        if (v0_0 > 0) {
            android.database.sqlite.SQLiteDatabase v9_1 = this.k();
            try {
                v9_1.beginTransaction();
                String[] v2_1 = (p10.size() - 1);
            } catch (android.content.ContentValues v10_4) {
                v9_1.endTransaction();
                throw v10_4;
            } catch (android.content.ContentValues v10_3) {
                com.google.devtools.build.android.desugar.runtime.ThrowableExtension.printStackTrace(v10_3);
                v9_1.endTransaction();
            }
            while (v2_1 >= null) {
                Integer v4_4 = ((com.gaana.models.Tracks$Track) p10.get(v2_1));
                android.content.ContentValues v5_1 = new android.content.ContentValues();
                v5_1.put("id", Long.valueOf(v0_0));
                v5_1.put("track_id", v4_4.getBusinessObjId());
                v5_1.put("track_metadata", com.services.n.a(v4_4));
                v5_1.put("added_on", Long.valueOf(System.currentTimeMillis()));
                v9_1.insert(com.e.a.e$g.a, "id", v5_1);
                v2_1--;
            }
            android.content.ContentValues v10_2 = new android.content.ContentValues();
            v10_2.put("has_synced", Integer.valueOf(-1));
            String[] v2_4 = new String[1];
            v2_4[0] = String.valueOf(v0_0);
            v10_2.put("time_stamp", new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new java.util.Date(System.currentTimeMillis())));
            v9_1.update(com.e.a.e$f.a, v10_2, "id=? AND has_synced!=0", v2_4);
            v9_1.setTransactionSuccessful();
        }
        return;
    }

Method com.e.a.f.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public void a(com.gaana.models.Playlists$Playlist p9, com.gaana.models.Tracks p10)
    {
        long v0 = p9.getOfflinePlaylistId();
        if (v0 <= 0) {
            v0 = this.a(p9.getBusinessObjId());
        }
        android.database.sqlite.SQLiteDatabase v9_1 = this.k();
        try {
            v9_1.beginTransaction();
            int v3_1 = new StringBuilder();
            v3_1.append("id=");
            v3_1.append(v0);
            v9_1.delete(com.e.a.e$g.a, v3_1.toString(), 0);
        } catch (java.util.ArrayList v10_2) {
            v9_1.endTransaction();
            throw v10_2;
        } catch (Exception) {
            v9_1.endTransaction();
            return;
        }
        if ((p10 != null) && (p10.getArrListBusinessObj() != null)) {
            java.util.ArrayList v10_1 = p10.getArrListBusinessObj();
            int v2_4 = (v10_1.size() - 1);
            while (v2_4 >= 0) {
                String v4_4 = ((com.gaana.models.Tracks$Track) v10_1.get(v2_4));
                android.content.ContentValues v5_1 = new android.content.ContentValues();
                v5_1.put("id", Long.valueOf(v0));
                v5_1.put("track_id", v4_4.getBusinessObjId());
                v5_1.put("track_metadata", com.services.n.a(v4_4));
                v5_1.put("added_on", Long.valueOf(System.currentTimeMillis()));
                v5_1.put("has_synced", Integer.valueOf(1));
                v9_1.insert(com.e.a.e$g.a, "id", v5_1);
                v2_4--;
            }
        }
        v9_1.setTransactionSuccessful();
        v9_1.endTransaction();
        return;
    }

Method com.e.a.f.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public long a(String p5, String p6)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.k();
        try {
            v0.beginTransaction();
            android.content.ContentValues v1_1 = new android.content.ContentValues();
            v1_1.put("local_playlist_id", p6);
            v1_1.put("name", p5);
            String v2_0 = new com.gaana.models.Playlists$Playlist();
            v2_0.setName(p5);
            v2_0.setLocalPlaylistId(p6);
            v2_0.setBusinessObjType(com.managers.URLManager$BusinessObjectType.Playlists);
            long v5_4 = ((com.gaana.application.GaanaApplication) com.gaana.application.GaanaApplication.getContext()).getCurrentUser();
            v2_0.setCreatedby(v5_4.getUserProfile().getFullname());
            v2_0.setCreatedbyUserId(v5_4.getUserProfile().getUserId());
            v1_1.put("playlist_metadata", com.services.n.a(v2_0));
            v1_1.put("time_stamp", new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new java.util.Date(System.currentTimeMillis())));
            long v5_12 = v0.insert(com.e.a.e$f.a, "playlist_id", v1_1);
            v0.setTransactionSuccessful();
            v0.endTransaction();
            return v5_12;
        } catch (long v5_14) {
            v0.endTransaction();
            throw v5_14;
        } catch (Exception) {
            v0.endTransaction();
            return -1;
        }
    }

Method com.e.a.f.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public long a(com.gaana.models.Playlists$Playlist p8)
    {
        android.database.sqlite.SQLiteDatabase v0_1 = this.a(p8.getBusinessObjId());
        if (v0_1 == -1) {
            android.database.sqlite.SQLiteDatabase v0_2 = this.k();
            try {
                v0_2.beginTransaction();
                android.content.ContentValues v1_1 = new android.content.ContentValues();
                v1_1.put("name", p8.getName());
                v1_1.put("language", p8.getLanguage());
                v1_1.put("playlist_id", p8.getBusinessObjId());
            } catch (String v8_2) {
                v0_2.endTransaction();
                throw v8_2;
            } catch (String v8_1) {
                com.google.devtools.build.android.desugar.runtime.ThrowableExtension.printStackTrace(v8_1);
                v0_2.endTransaction();
                return -1;
            }
            if (!android.text.TextUtils.isEmpty(p8.getLocalPlaylistId())) {
                v1_1.put("local_playlist_id", p8.getLocalPlaylistId());
            }
            v1_1.put("playlist_metadata", com.services.n.a(p8));
            v1_1.put("time_stamp", new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new java.util.Date(System.currentTimeMillis())));
            long v4_12 = v0_2.insert(com.e.a.e$f.a, 0, v1_1);
            v0_2.setTransactionSuccessful();
            v0_2.endTransaction();
            return v4_12;
        } else {
            return v0_1;
        }
    }

Method com.e.a.c.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public void a(java.util.List p8)
    {
        if (p8 != null) {
            int v0 = p8.size();
            android.database.sqlite.SQLiteDatabase v1 = this.k();
            v1.beginTransaction();
            int v2 = 0;
            while (v2 < v0) {
                android.content.ContentValues v3_1 = ((com.gaana.models.BusinessObject) p8.get(v2));
                if ((v3_1 != null) && ((v3_1 instanceof com.gaana.models.FavoriteOccasions$FavoriteOccasion))) {
                    v3_1.setBusinessObjId(((com.gaana.models.FavoriteOccasions$FavoriteOccasion) v3_1).getEntityId());
                }
                android.content.ContentValues v3_2 = this.c(v3_1);
                v3_2.put("favourite_status", Integer.valueOf(1));
                v3_2.put("has_synced", Integer.valueOf(1));
                v1.insert("local_favorite_table", 0, v3_2);
                v2++;
            }
            v1.setTransactionSuccessful();
            v1.endTransaction();
        }
        return;
    }

Method com.e.a.c.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    public long a(com.gaana.models.BusinessObject p4, boolean p5, boolean p6, int p7)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.k();
        long v1 = 0;
        try {
            long v4_4;
            v0.beginTransaction();
        } catch (long v4_7) {
            v0.endTransaction();
            throw v4_7;
        } catch (long v4_6) {
            com.google.devtools.build.android.desugar.runtime.ThrowableExtension.printStackTrace(v4_6);
            v0.endTransaction();
            return v1;
        }
        if (p6 == null) {
            String[] v5_5 = new String[2];
            v5_5[0] = String.valueOf(p4.getBusinessObjId());
            v5_5[1] = this.b(p4);
            v4_4 = ((long) v0.delete("local_favorite_table", "id= ? AND type= ?", v5_5));
        } else {
            long v4_5 = this.c(p4);
            v4_5.put("favourite_status", Integer.valueOf(p5));
            v4_5.put("has_synced", Integer.valueOf(p7));
            v4_4 = v0.insert("local_favorite_table", 0, v4_5);
        }
        v1 = v4_4;
        v0.setTransactionSuccessful();
        v0.endTransaction();
        return v1;
    }

Method com.e.a.b.a() calling method android.database.sqlite.SQLiteDatabase.insert()


    private void a(int p8, int p9, int p10, int p11)
    {
        int v4_1;
        String v3_2;
        android.database.sqlite.SQLiteDatabase v0 = this.getDB();
        android.content.ContentValues v1_3 = new StringBuilder();
        v1_3.append("SELECT * FROM ");
        v1_3.append(com.e.a.e$a.a);
        v1_3.append(" WHERE ");
        v1_3.append("business_id");
        v1_3.append("=?");
        android.content.ContentValues v1_0 = v1_3.toString();
        String v3_0 = new String[1];
        v3_0[0] = String.valueOf(p8);
        android.content.ContentValues v1_2 = v0.rawQuery(v1_0, v3_0);
        if (!v1_2.moveToFirst()) {
            v3_2 = 0;
            v4_1 = 0;
        } else {
            v3_2 = v1_2.getInt(v1_2.getColumnIndex("sync_status"));
            v4_1 = 1;
        }
        v1_2.close();
        try {
            if ((v3_2 != 1) || (p11 != 0)) {
                android.content.ContentValues v1_5 = new android.content.ContentValues();
                v1_5.put("business_id", Integer.valueOf(p8));
                v1_5.put("entity_type", Integer.valueOf(p9));
                v1_5.put("sync_type", Integer.valueOf(p10));
                v1_5.put("sync_status", Integer.valueOf(p11));
                if (v4_1 == 0) {
                    v0.insert(com.e.a.e$a.a, 0, v1_5);
                } else {
                    int v9_5 = new String[1];
                    v9_5[0] = String.valueOf(p8);
                    v0.update(com.e.a.e$a.a, v1_5, "business_id=?", v9_5);
                }
            } else {
                int v9_6 = new String[1];
                v9_6[0] = String.valueOf(p8);
                v0.delete(com.e.a.e$a.a, "business_id=?", v9_6);
                return;
            }
        } catch (String v8_6) {
            throw v8_6;
        } catch (Exception) {
        }
        return;
    }

Method com.helpshift.j.b.a.b() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void b()
    {
        try {
            this.a.getWritableDatabase().execSQL("DELETE FROM LOG_MESSAGES");
        } catch (Exception v1_1) {
            throw v1_1;
        } catch (Exception v1_3) {
            android.util.Log.e("LogSqliteStorage", "Error deleting all logs from db", v1_3);
        }
        return;
    }

Method com.moe.pushlibrary.providers.MoEProvider$DatabaseHelper.onUpgrade() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onUpgrade(android.database.sqlite.SQLiteDatabase p5, int p6, int p7)
    {
        com.moengage.core.Logger.v("MoEProvider: Provider upgrading DB ");
        int v0_1 = (p6 + 1);
        while (v0_1 <= p7) {
            switch (v0_1) {
                case 3:
                    p5.beginTransaction();
                    try {
                        this.createDataPointsTable(p5);
                        this.createMessagesTable(p5);
                        this.createInAppTable(p5);
                        com.moe.pushlibrary.providers.MoEProvider.access$000(this.this$0, p5);
                        p5.execSQL("DROP TABLE IF EXISTS moeints");
                        p5.execSQL("DROP TABLE IF EXISTS moemsgs");
                        p5.execSQL("DROP TABLE IF EXISTS moeinappmsgs");
                        p5.setTransactionSuccessful();
                    } catch (Throwable v6_1) {
                        p5.endTransaction();
                        throw v6_1;
                    } catch (String v1_0) {
                        com.moengage.core.Logger.f("MoEProvider: failed to port data. FROM V2.", v1_0);
                    }
                    p5.endTransaction();
                case 4:
                    break;
                case 5:
                    p5.beginTransaction();
                    try {
                        p5.execSQL("DROP TABLE IF EXISTS CHATS");
                        p5.setTransactionSuccessful();
                    } catch (Throwable v6_5) {
                        p5.endTransaction();
                        throw v6_5;
                    } catch (String v1_20) {
                        com.moengage.core.Logger.f("MoEProvider: failed to port data.. FOR UBOX", v1_20);
                    }
                    p5.endTransaction();
                    break;
                case 6:
                    p5.beginTransaction();
                    try {
                        if (!this.this$0.isTableExists(p5, "INAPPS")) {
                            p5.setTransactionSuccessful();
                        } else {
                            p5.execSQL(" ALTER TABLE INAPPS ADD COLUMN TYPE INTEGER");
                        }
                        p5.endTransaction();
                    } catch (Throwable v6_4) {
                        p5.endTransaction();
                        throw v6_4;
                    } catch (String v1_18) {
                        com.moengage.core.Logger.f("MoEProvider: failed to add column INAPPS", v1_18);
                    }
                    break;
                case 7:
                    p5.beginTransaction();
                    try {
                        this.createDataPointsTable(p5);
                        com.moe.pushlibrary.providers.MoEProvider.access$100(this.this$0, p5);
                        p5.execSQL("DROP TABLE IF EXISTS EVENTS");
                        p5.setTransactionSuccessful();
                    } catch (Throwable v6_3) {
                        p5.endTransaction();
                        throw v6_3;
                    } catch (String v1_14) {
                        com.moengage.core.Logger.f("MoEProvider: failed to populate Datapoints ", v1_14);
                    }
                    p5.endTransaction();
                    break;
                case 8:
                    p5.beginTransaction();
                    try {
                        if (this.this$0.isFieldExist("MESSAGES", "msg_tag", p5)) {
                            p5.setTransactionSuccessful();
                        } else {
                            p5.execSQL(" ALTER TABLE MESSAGES ADD COLUMN msg_tag TEXT");
                        }
                        p5.endTransaction();
                    } catch (Throwable v6_2) {
                        p5.endTransaction();
                        throw v6_2;
                    } catch (String v1_11) {
                        com.moengage.core.Logger.f("MoEProvider: failed to add columns to UINBOX / MESSAGES", v1_11);
                    }
                    break;
                case 9:
                    p5.execSQL("DROP TABLE IF EXISTS INAPPS");
                    this.createInAppTable(p5);
                    if (this.this$0.isFieldExist("MESSAGES", "msg_tag", p5)) {
                    } else {
                        p5.execSQL(" ALTER TABLE MESSAGES ADD COLUMN msg_tag TEXT");
                    }
                    break;
                case 10:
                    this.createUserAttributeTable(p5);
                    break;
                case 11:
                    this.createCampaignListTable(p5);
                    break;
                case 12:
                    this.createBatchDataTable(p5);
                    break;
                default:
                    String v1_2 = new StringBuilder();
                    v1_2.append("Failed to upgrade from DB version");
                    v1_2.append(p6);
                    v1_2.append("to DB version");
                    v1_2.append(p7);
                    com.moengage.core.Logger.v(v1_2.toString());
            }
            v0_1++;
        }
        com.moengage.core.ConfigurationProvider.getInstance(this.this$0.getContext()).setNewDBVersion(12);
        com.moengage.core.Logger.v("MoEProvider: Database Upgraded");
        return;
    }

Method com.moe.pushlibrary.providers.MoEProvider$DatabaseHelper.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onCreate(android.database.sqlite.SQLiteDatabase p3)
    {
        this.createInAppTable(p3);
        this.createUserAttributeTable(p3);
        this.createCampaignListTable(p3);
        p3.execSQL("CREATE TABLE IF NOT EXISTS MESSAGES ( _id INTEGER PRIMARY KEY, msg TEXT, msgclicked INTEGER DEFAULT 0, msgttl INTEGER, gtime INTEGER, msg_tag TEXT); ");
        p3.execSQL("CREATE TABLE IF NOT EXISTS DATAPOINTS ( _id INTEGER PRIMARY KEY, gtime INTEGER, details TEXT ); ");
        this.createBatchDataTable(p3);
        com.moengage.core.Logger.i("MoEProvider: Database created");
        return;
    }

Method com.moe.pushlibrary.providers.MoEProvider$DatabaseHelper.addMSGTagIfRequiredInbox() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void addMSGTagIfRequiredInbox(android.database.sqlite.SQLiteDatabase p4)
    {
        if (!this.this$0.isFieldExist("MESSAGES", "msg_tag", p4)) {
            com.moengage.core.Logger.v("MoEProvider : addMSGTagIfRequiredInbox : updating inbox table");
            p4.execSQL(" ALTER TABLE MESSAGES ADD COLUMN msg_tag TEXT");
        }
        return;
    }

Method com.moe.pushlibrary.providers.MoEProvider$DatabaseHelper.createUserAttributeTable() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void createUserAttributeTable(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE TABLE IF NOT EXISTS USERATTRIBUTES ( _id INTEGER PRIMARY KEY, attribute_name TEXT, attribute_value TEXT ); ");
        return;
    }

Method com.moe.pushlibrary.providers.MoEProvider$DatabaseHelper.createMessagesTable() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void createMessagesTable(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE TABLE IF NOT EXISTS MESSAGES ( _id INTEGER PRIMARY KEY, msg TEXT, msgclicked INTEGER DEFAULT 0, msgttl INTEGER, gtime INTEGER )");
        return;
    }

Method com.moe.pushlibrary.providers.MoEProvider$DatabaseHelper.createInAppTable() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void createInAppTable(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE TABLE IF NOT EXISTS INAPPMSG ( _id INTEGER PRIMARY KEY, gtime INTEGER, campaign_id TEXT, align_type TEXT, inapp_type TEXT, ttl INTEGER DEFAULT 0, min_delay INTEGER DEFAULT 0, max_times INTEGER DEFAULT 0, shown_count INTEGER DEFAULT 0, persistent INTEGER DEFAULT 0, priority INTEGER DEFAULT 0, context TEXT, last_shown INTEGER DEFAULT 0, is_clicked INTEGER DEFAULT 0, has_errors INTEGER DEFAULT 0, auto_dismiss INTEGER DEFAULT 0, cancelable INTEGER DEFAULT 0, content TEXT, show_only_in TEXT, status TEXT, dim_style TEXT );");
        return;
    }

Method com.moe.pushlibrary.providers.MoEProvider$DatabaseHelper.createDataPointsTable() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void createDataPointsTable(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE TABLE IF NOT EXISTS DATAPOINTS ( _id INTEGER PRIMARY KEY, gtime INTEGER, details TEXT ); ");
        return;
    }

Method com.moe.pushlibrary.providers.MoEProvider$DatabaseHelper.createCampaignListTable() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void createCampaignListTable(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE TABLE IF NOT EXISTS CAMPAIGNLIST ( _id INTEGER PRIMARY KEY, campaign_id TEXT, ttl INTEGER );");
        return;
    }

Method com.moe.pushlibrary.providers.MoEProvider$DatabaseHelper.createBatchDataTable() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void createBatchDataTable(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE TABLE IF NOT EXISTS BATCH_DATA ( _id INTEGER PRIMARY KEY, batch_data TEXT );");
        return;
    }

Method com.inmobi.commons.core.d.b.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public final declared_synchronized void a(String p3, String p4)
    {
        try {
            String v0_2 = new StringBuilder("CREATE TABLE IF NOT EXISTS ");
            v0_2.append(p3);
            v0_2.append(p4);
            v0_2.append(";");
            this.f.execSQL(v0_2.toString());
            return;
        } catch (String v3_3) {
            throw v3_3;
        } catch (String v3_1) {
            new StringBuilder("SDK encountered unexpected error in DbStore.createTableIfNotExists() method; ").append(v3_1.getMessage());
            return;
        }
    }

Method com.helpshift.support.search.a.a.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onCreate(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE TABLE search_token_table (token TEXT  PRIMARY KEY , type INTEGER , score TEXT  NOT NULL  )");
        return;
    }

Method com.helpshift.support.h.l.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onCreate(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE TABLE key_value_store(key text primary key,value blob not null);");
        return;
    }

Method com.helpshift.support.h.l.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void a(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("DROP TABLE IF EXISTS key_value_store;");
        return;
    }

Method com.helpshift.support.h.f.onUpgrade() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onUpgrade(android.database.sqlite.SQLiteDatabase p1, int p2, int p3)
    {
        if (p1.isOpen()) {
            if (p2 < 2) {
                p1.execSQL("ALTER TABLE profiles ADD uid TEXT");
                p1.execSQL("ALTER TABLE profiles ADD did TEXT");
            }
            if (p2 < 3) {
                p1.execSQL("ALTER TABLE profiles ADD push_token_sync INTEGER");
            }
        }
        return;
    }

Method com.helpshift.support.h.f.onDowngrade() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onDowngrade(android.database.sqlite.SQLiteDatabase p1, int p2, int p3)
    {
        if (p1.isOpen()) {
            p1.execSQL("DROP TABLE IF EXISTS profiles");
            this.onCreate(p1);
        }
        return;
    }

Method com.helpshift.support.h.f.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onCreate(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE TABLE profiles(_id INTEGER PRIMARY KEY AUTOINCREMENT, IDENTIFIER TEXT NOT NULL UNIQUE, profile_id TEXT UNIQUE, name TEXT, email TEXT, salt TEXT, uid TEXT, did TEXT, push_token_sync INTEGER );");
        return;
    }

Method com.helpshift.support.h.c.c() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void c(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("DROP TABLE IF EXISTS faqs");
        p2.execSQL("DROP TABLE IF EXISTS sections");
        return;
    }

Method com.helpshift.support.h.c.b() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void b(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE TABLE faqs (_id INTEGER PRIMARY KEY AUTOINCREMENT,question_id TEXT NOT NULL,publish_id TEXT NOT NULL,section_id TEXT NOT NULL,title TEXT NOT NULL,body TEXT NOT NULL,helpful INTEGER,rtl INTEGER,tags TEXT,c_tags TEXT,FOREIGN KEY(section_id) REFERENCES sections (_id));");
        p2.execSQL("CREATE TABLE sections (_id INTEGER PRIMARY KEY AUTOINCREMENT,section_id TEXT NOT NULL,publish_id INTEGER NOT NULL,title TEXT NOT NULL);");
        return;
    }

Method com.helpshift.q.c.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onCreate(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE TABLE key_value_store(key text primary key,value blob not null);");
        return;
    }

Method com.helpshift.q.c.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void a(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("DROP TABLE IF EXISTS key_value_store;");
        return;
    }

Method com.helpshift.l.a.a.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onCreate(android.database.sqlite.SQLiteDatabase p5)
    {
        if (p5.isOpen()) {
            try {
                p5.beginTransaction();
                String v0_11 = this.a.a().iterator();
            } catch (String v0_9) {
                try {
                    if (p5.inTransaction()) {
                        p5.endTransaction();
                    }
                } catch (Exception v5_2) {
                    com.helpshift.util.l.c("Helpshift_ConversationDB", "Error in onCreate inside finally block, ", v5_2);
                }
                throw v0_9;
            } catch (String v0_2) {
                String v2_1 = new StringBuilder();
                v2_1.append("Exception while creating tables: ");
                v2_1.append(v0_2);
                v2_1.append(", version: ");
                v2_1.append(com.helpshift.common.a.b.a);
                com.helpshift.util.l.c("Helpshift_ConversationDB", v2_1.toString());
                if (p5.inTransaction()) {
                    p5.endTransaction();
                }
            } catch (Exception v5_1) {
                com.helpshift.util.l.c("Helpshift_ConversationDB", "Error in onCreate inside finally block, ", v5_1);
            }
            while (v0_11.hasNext()) {
                p5.execSQL(((String) v0_11.next()));
            }
            p5.setTransactionSuccessful();
            if (p5.inTransaction()) {
                p5.endTransaction();
            }
        }
        return;
    }

Method com.helpshift.l.a.a.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void a(android.database.sqlite.SQLiteDatabase p5)
    {
        if (p5.isOpen()) {
            try {
                p5.beginTransaction();
                boolean v0_14 = this.a.b().iterator();
            } catch (boolean v0_12) {
                try {
                    if (p5.inTransaction()) {
                        p5.endTransaction();
                    }
                } catch (Exception v5_2) {
                    com.helpshift.util.l.c("Helpshift_ConversationDB", "Error in dropAndCreateDatabase inside finally block, ", v5_2);
                }
                throw v0_12;
            } catch (boolean v0_5) {
                String v2_1 = new StringBuilder();
                v2_1.append("Exception while upgrading tables: ");
                v2_1.append(v0_5);
                v2_1.append(", version: ");
                v2_1.append(com.helpshift.common.a.b.a);
                com.helpshift.util.l.c("Helpshift_ConversationDB", v2_1.toString());
                if (p5.inTransaction()) {
                    p5.endTransaction();
                }
            } catch (Exception v5_1) {
                com.helpshift.util.l.c("Helpshift_ConversationDB", "Error in dropAndCreateDatabase inside finally block, ", v5_1);
            }
            while (v0_14.hasNext()) {
                p5.execSQL(((String) v0_14.next()));
            }
            boolean v0_3 = this.a.a().iterator();
            while (v0_3.hasNext()) {
                p5.execSQL(((String) v0_3.next()));
            }
            p5.setTransactionSuccessful();
            if (p5.inTransaction()) {
                p5.endTransaction();
            }
        }
        return;
    }

Method com.helpshift.j.b.c.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onCreate(android.database.sqlite.SQLiteDatabase p4)
    {
        try {
            p4.beginTransaction();
            p4.execSQL("CREATE TABLE IF NOT EXISTS LOG_MESSAGES( TIMESTAMP TEXT, MESSAGE TEXT, LEVEL TEXT, STACKTRACE TEXT, EXTRAS TEXT  );");
            p4.setTransactionSuccessful();
        } catch (Exception v0_2) {
            p4.endTransaction();
            throw v0_2;
        } catch (Exception v0_1) {
            android.util.Log.e("LogSQLiteHelper", "Error creating log storage: ", v0_1);
        }
        p4.endTransaction();
        return;
    }

Method com.helpshift.campaigns.l.k.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onCreate(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE TABLE sessions(identifier text primary key, device_identifier text not null, user_identifier text not null, start_time int, end_time int, durations blob, sync_status int, extras blob );");
        return;
    }

Method com.helpshift.campaigns.l.k.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void a(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("DROP TABLE IF EXISTS sessions;");
        return;
    }

Method com.helpshift.campaigns.l.g.b() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void b(android.database.sqlite.SQLiteDatabase p3, String p4)
    {
        StringBuilder v0_1 = new StringBuilder();
        v0_1.append("DROP TABLE IF EXISTS ");
        v0_1.append(this.a(p4));
        v0_1.append(";");
        p3.execSQL(v0_1.toString());
        return;
    }

Method com.helpshift.campaigns.l.g.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public declared_synchronized void a(android.database.sqlite.SQLiteDatabase p3, String p4)
    {
        try {
            this.b.add(p4);
            StringBuilder v0_2 = new StringBuilder();
            v0_2.append("CREATE TABLE IF NOT EXISTS ");
            v0_2.append(this.a(p4));
            v0_2.append(" (");
            v0_2.append("key");
            v0_2.append(" text primary key, ");
            v0_2.append("value");
            v0_2.append(" blob, ");
            v0_2.append("type");
            v0_2.append(" text, ");
            v0_2.append("sync_status");
            v0_2.append(" int, ");
            v0_2.append("extras");
            v0_2.append(" blob");
            v0_2.append(");");
            p3.execSQL(v0_2.toString());
            return;
        } catch (Throwable v3_1) {
            throw v3_1;
        }
    }

Method com.helpshift.campaigns.l.b.onUpgrade() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onUpgrade(android.database.sqlite.SQLiteDatabase p1, int p2, int p3)
    {
        if ((p1 != null) && ((p1.isOpen()) && (p2 < 2))) {
            try {
                p1.execSQL("ALTER TABLE campaigns ADD expiry_time_stamp INT DEFAULT 9223372036854775807");
            } catch (Exception v1_1) {
                com.helpshift.util.l.c("Helpshift_CampDBHelper", "Exception while upgrading campaigns database", v1_1);
            }
        }
        return;
    }

Method com.helpshift.campaigns.l.b.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onCreate(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("CREATE TABLE IF NOT EXISTS campaigns(identifier text primary key, user_identifier text not null, title text not null, body text not null, cover_image_url text, cover_image_file_path text, icon_image_url text not null, icon_image_file_path text, background_color text, title_color text, text_color text, actions blob, messages blob, read_status int, seen_status int, created_at int, extra_data text, expiry_time_stamp int default 9223372036854775807);");
        return;
    }

Method com.helpshift.campaigns.l.b.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    void a(android.database.sqlite.SQLiteDatabase p2)
    {
        p2.execSQL("DROP TABLE IF EXISTS campaigns;");
        return;
    }

Method com.google.android.gms.tagmanager.zzed.onOpen() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public final void onOpen(android.database.sqlite.SQLiteDatabase p5)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            String v0_10 = p5.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_10.moveToFirst();
                v0_10.close();
            } catch (android.database.sqlite.SQLiteException v5_15) {
                v0_10.close();
                throw v5_15;
            }
        }
        if (com.google.android.gms.tagmanager.zzed.zza("gtm_hits", p5)) {
            android.database.sqlite.SQLiteException v5_1 = p5.rawQuery("SELECT * FROM gtm_hits WHERE 0", 0);
            String v0_5 = new java.util.HashSet();
            try {
                String[] v1_1 = v5_1.getColumnNames();
                int v2_1 = 0;
            } catch (String v0_6) {
                v5_1.close();
                throw v0_6;
            }
            while (v2_1 < v1_1.length) {
                v0_5.add(v1_1[v2_1]);
                v2_1++;
            }
            v5_1.close();
            if ((v0_5.remove("hit_id")) && ((v0_5.remove("hit_url")) && ((v0_5.remove("hit_time")) && (v0_5.remove("hit_first_send_time"))))) {
                if (v0_5.isEmpty()) {
                    return;
                } else {
                    throw new android.database.sqlite.SQLiteException("Database has extra columns");
                }
            } else {
                throw new android.database.sqlite.SQLiteException("Database column missing");
            }
        } else {
            p5.execSQL(com.google.android.gms.tagmanager.zzeb.zzpl());
            return;
        }
    }

Method com.google.android.gms.tagmanager.zzax.onOpen() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public final void onOpen(android.database.sqlite.SQLiteDatabase p5)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            String v0_10 = p5.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_10.moveToFirst();
                v0_10.close();
            } catch (android.database.sqlite.SQLiteException v5_15) {
                v0_10.close();
                throw v5_15;
            }
        }
        if (com.google.android.gms.tagmanager.zzax.zza("datalayer", p5)) {
            android.database.sqlite.SQLiteException v5_1 = p5.rawQuery("SELECT * FROM datalayer WHERE 0", 0);
            String v0_5 = new java.util.HashSet();
            try {
                String[] v1_1 = v5_1.getColumnNames();
                int v2_1 = 0;
            } catch (String v0_6) {
                v5_1.close();
                throw v0_6;
            }
            while (v2_1 < v1_1.length) {
                v0_5.add(v1_1[v2_1]);
                v2_1++;
            }
            v5_1.close();
            if ((v0_5.remove("key")) && ((v0_5.remove("value")) && ((v0_5.remove("ID")) && (v0_5.remove("expires"))))) {
                if (v0_5.isEmpty()) {
                    return;
                } else {
                    throw new android.database.sqlite.SQLiteException("Database has extra columns");
                }
            } else {
                throw new android.database.sqlite.SQLiteException("Database column missing");
            }
        } else {
            p5.execSQL(com.google.android.gms.tagmanager.zzat.zzol());
            return;
        }
    }

Method com.google.android.gms.internal.measurement.zzbg.onOpen() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public final void onOpen(android.database.sqlite.SQLiteDatabase p11)
    {
        if (android.os.Build$VERSION.SDK_INT < 15) {
            String v0_13 = p11.rawQuery("PRAGMA journal_mode=memory", 0);
            try {
                v0_13.moveToFirst();
                v0_13.close();
            } catch (android.database.sqlite.SQLiteException v11_9) {
                v0_13.close();
                throw v11_9;
            }
        }
        int v4 = 0;
        if (this.zza(p11, "hits2")) {
            String v0_7 = com.google.android.gms.internal.measurement.zzbg.zzb(p11, "hits2");
            int v6_0 = new String[4];
            v6_0[0] = "hit_id";
            v6_0[1] = "hit_string";
            v6_0[2] = "hit_time";
            v6_0[3] = "hit_url";
            int v7_4 = 0;
            while (v7_4 < 4) {
                String v8 = v6_0[v7_4];
                if (v0_7.remove(v8)) {
                    v7_4++;
                } else {
                    String v0_14;
                    String v1_7 = String.valueOf(v8);
                    if (v1_7.length() == 0) {
                        v0_14 = new String("Database hits2 is missing required column: ");
                    } else {
                        v0_14 = "Database hits2 is missing required column: ".concat(v1_7);
                    }
                    throw new android.database.sqlite.SQLiteException(v0_14);
                }
            }
            int v6_3 = (v0_7.remove("hit_app_id") ^ 1);
            if (v0_7.isEmpty()) {
                if (v6_3 != 0) {
                    p11.execSQL("ALTER TABLE hits2 ADD COLUMN hit_app_id INTEGER");
                }
            } else {
                throw new android.database.sqlite.SQLiteException("Database hits2 has extra columns");
            }
        } else {
            p11.execSQL(com.google.android.gms.internal.measurement.zzbf.zzde());
        }
        if (this.zza(p11, "properties")) {
            android.database.sqlite.SQLiteException v11_8 = com.google.android.gms.internal.measurement.zzbg.zzb(p11, "properties");
            int v6_4 = new String[6];
            v6_4[0] = "app_uid";
            v6_4[1] = "cid";
            v6_4[2] = "tid";
            v6_4[3] = "params";
            v6_4[4] = "adid";
            v6_4[5] = "hits_count";
            while (v4 < 6) {
                String v1_1 = v6_4[v4];
                if (v11_8.remove(v1_1)) {
                    v4++;
                } else {
                    String v0_2;
                    String v1_2 = String.valueOf(v1_1);
                    if (v1_2.length() == 0) {
                        v0_2 = new String("Database properties is missing required column: ");
                    } else {
                        v0_2 = "Database properties is missing required column: ".concat(v1_2);
                    }
                    throw new android.database.sqlite.SQLiteException(v0_2);
                }
            }
            if (v11_8.isEmpty()) {
                return;
            } else {
                throw new android.database.sqlite.SQLiteException("Database properties table has extra columns");
            }
        } else {
            p11.execSQL("CREATE TABLE IF NOT EXISTS properties ( app_uid INTEGER NOT NULL, cid TEXT NOT NULL, tid TEXT NOT NULL, params TEXT NOT NULL, adid INTEGER NOT NULL, hits_count INTEGER NOT NULL, PRIMARY KEY (app_uid, cid, tid)) ;");
            return;
        }
    }

Method com.facebook.ads.internal.g.h.d() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void d()
    {
        try {
            this.f().execSQL(com.facebook.ads.internal.g.h.g);
        } catch (android.database.SQLException) {
        }
        return;
    }

Method com.e.a.h.s() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void s()
    {
        android.database.sqlite.SQLiteDatabase v0 = this.getDB();
        v0.beginTransaction();
        try {
            Throwable v1_6 = new StringBuilder();
            v1_6.append("DROP TABLE IF EXISTS ");
            v1_6.append(com.e.a.e$k.a);
            v0.execSQL(v1_6.toString());
            Throwable v1_2 = new StringBuilder();
            v1_2.append("DROP TABLE IF EXISTS ");
            v1_2.append(com.e.a.e$h.a);
            v0.execSQL(v1_2.toString());
            this.onCreate(v0);
            v0.setTransactionSuccessful();
        } catch (Throwable v1_4) {
            v0.endTransaction();
            throw v1_4;
        } catch (Exception) {
        }
        v0.endTransaction();
        return;
    }

Method com.e.a.g.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void a(com.gaana.models.Tracks$Track p5)
    {
        StringBuilder v0_1 = new android.content.ContentValues();
        android.database.sqlite.SQLiteDatabase v1 = this.getDB();
        try {
            v1.beginTransaction();
        } catch (String v5_7) {
            v1.endTransaction();
            throw v5_7;
        } catch (String v5_6) {
            com.google.devtools.build.android.desugar.runtime.ThrowableExtension.printStackTrace(v5_6);
            v1.endTransaction();
            return;
        }
        if (this.a(p5.getBusinessObjId())) {
            StringBuilder v0_3 = new StringBuilder();
            v0_3.append("update ");
            v0_3.append(com.e.a.e$i.a);
            v0_3.append(" set ");
            v0_3.append("time_stamp");
            v0_3.append(" = ");
            v0_3.append(System.currentTimeMillis());
            v0_3.append(" where ");
            v0_3.append("track_id");
            v0_3.append(" = ");
            v0_3.append(p5.getBusinessObjId());
            v1.execSQL(v0_3.toString());
            v1.setTransactionSuccessful();
            v1.endTransaction();
            return;
        } else {
            v0_1.put("track_id", p5.getBusinessObjId());
            v0_1.put("track_metadata", com.services.n.a(p5));
            v0_1.put("time_stamp", Long.valueOf(System.currentTimeMillis()));
            v1.insert(com.e.a.e$i.a, 0, v0_1);
            v1.setTransactionSuccessful();
            v1.endTransaction();
            return;
        }
    }

Method com.e.a.d.b() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void b()
    {
        android.database.sqlite.SQLiteDatabase v0 = this.getDB();
        try {
            v0.beginTransaction();
            Exception v1_10 = new StringBuilder();
            v1_10.append("DROP TABLE IF EXISTS ");
            v1_10.append(com.e.a.e$n.a);
            v0.execSQL(v1_10.toString());
            Exception v1_2 = new StringBuilder();
            v1_2.append("DROP TABLE IF EXISTS ");
            v1_2.append(com.e.a.e$f.a);
            v0.execSQL(v1_2.toString());
            Exception v1_5 = new StringBuilder();
            v1_5.append("DROP TABLE IF EXISTS ");
            v1_5.append(com.e.a.e$g.a);
            v0.execSQL(v1_5.toString());
            v0.setTransactionSuccessful();
        } catch (Exception v1_9) {
            v0.endTransaction();
            throw v1_9;
        } catch (Exception v1_8) {
            com.google.devtools.build.android.desugar.runtime.ThrowableExtension.printStackTrace(v1_8);
        }
        v0.endTransaction();
        return;
    }

Method com.e.a.c.c() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public long c(String p4, String p5)
    {
        android.database.sqlite.SQLiteDatabase v0_1 = new StringBuilder();
        v0_1.append("DELETE FROM local_favorite_table WHERE id IN (%s) AND type=\"");
        v0_1.append(p5);
        v0_1.append("\" ;");
        String v5_2 = v0_1.toString();
        android.database.sqlite.SQLiteDatabase v0_2 = this.k();
        Object[] v1_1 = new Object[1];
        v1_1[0] = p4;
        v0_2.execSQL(String.format(v5_2, v1_1));
        return 1;
    }

Method android.arch.persistence.a.a.a.c() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void c(String p2)
    {
        this.c.execSQL(p2);
        return;
    }

Method com.facebook.ads.internal.g.g.b() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void b(android.database.sqlite.SQLiteDatabase p3)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("DROP TABLE IF EXISTS ");
        v0_1.append(this.a());
        p3.execSQL(v0_1.toString());
        return;
    }

Method com.facebook.ads.internal.g.g.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void a(android.database.sqlite.SQLiteDatabase p3)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("CREATE TABLE ");
        v0_1.append(this.a());
        v0_1.append(" (");
        v0_1.append(this.c());
        v0_1.append(")");
        p3.execSQL(v0_1.toString());
        return;
    }

Method com.facebook.ads.internal.g.e.onUpgrade() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onUpgrade(android.database.sqlite.SQLiteDatabase p3, int p4, int p5)
    {
        if ((p4 == 2) && (p5 >= 3)) {
            p3.execSQL("DROP TABLE IF EXISTS crashes");
        }
        if ((p4 <= 3) && (p5 >= 4)) {
            String v4_5 = com.facebook.ads.internal.g.c.i;
            StringBuilder v5_2 = new StringBuilder();
            v5_2.append("ALTER TABLE events ADD COLUMN ");
            v5_2.append(v4_5.b);
            v5_2.append(" ");
            v5_2.append(v4_5.c);
            v5_2.append(" DEFAULT 0");
            p3.execSQL(v5_2.toString());
        }
        return;
    }

Method com.facebook.ads.internal.g.e.onOpen() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onOpen(android.database.sqlite.SQLiteDatabase p2)
    {
        super.onOpen(p2);
        if (!p2.isReadOnly()) {
            p2.execSQL("PRAGMA foreign_keys = ON;");
        }
        return;
    }

Method com.facebook.ads.internal.g.d.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public boolean a(String p6)
    {
        ark>com.facebook.ads.internal.g.dark>.d.lock();
        try {
            String v2_2 = new StringBuilder();
            v2_2.append("UPDATE ");
            v2_2.append("events");
            v2_2.append(" SET ");
            v2_2.append(com.facebook.ads.internal.g.c.i.b);
            v2_2.append("=");
            v2_2.append(com.facebook.ads.internal.g.c.i.b);
            v2_2.append("+1");
            v2_2.append(" WHERE ");
            v2_2.append(com.facebook.ads.internal.g.c.a.b);
            v2_2.append("=?");
            android.database.sqlite.SQLiteDatabase v3_11 = this.a();
            String v2_0 = v2_2.toString();
            String[] v4 = new String[1];
            v4[0] = p6;
            v3_11.execSQL(v2_0, v4);
        } catch (android.database.sqlite.SQLiteException) {
        }
        ark>com.facebook.ads.internal.g.dark>.d.unlock();
        return 1;
    }

Method com.e.a.a.onDowngrade() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onDowngrade(android.database.sqlite.SQLiteDatabase p1, int p2, int p3)
    {
        String v2_1 = new StringBuilder();
        v2_1.append("DROP TABLE IF EXISTS ");
        v2_1.append(com.e.a.e$b.a);
        p1.execSQL(v2_1.toString());
        String v2_2 = new StringBuilder();
        v2_2.append("DROP TABLE IF EXISTS ");
        v2_2.append(com.e.a.e$k.a);
        p1.execSQL(v2_2.toString());
        String v2_5 = new StringBuilder();
        v2_5.append("DROP TABLE IF EXISTS ");
        v2_5.append(com.e.a.e$h.a);
        p1.execSQL(v2_5.toString());
        String v2_8 = new StringBuilder();
        v2_8.append("DROP TABLE IF EXISTS ");
        v2_8.append(com.e.a.e$m.a);
        p1.execSQL(v2_8.toString());
        this.onCreate(p1);
        return;
    }

Method com.e.a.a.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onCreate(android.database.sqlite.SQLiteDatabase p9)
    {
        String v0_1 = new StringBuilder();
        v0_1.append("CREATE TABLE IF NOT EXISTS ");
        v0_1.append(com.e.a.e$b.a);
        v0_1.append(" (");
        v0_1.append("feed_id");
        v0_1.append(" INTEGER PRIMARY KEY , ");
        v0_1.append("feed_url");
        v0_1.append(" TEXT , ");
        v0_1.append("feed_content");
        v0_1.append(" TEXT, ");
        v0_1.append("feed_time_stamp");
        v0_1.append(" TEXT, ");
        v0_1.append("is_dynamic_cache");
        v0_1.append(" INTEGER, ");
        v0_1.append("feed_user_type");
        v0_1.append(" INTEGER");
        v0_1.append(")");
        String v0_2 = v0_1.toString();
        String v1_14 = com.e.a.e.a(com.e.a.e$k.a);
        String v2_1 = com.e.a.e.a(com.e.a.e$h.a);
        String v3_1 = com.e.a.e.a(com.e.a.e$l.a);
        String v4_1 = com.e.a.e.a(com.e.a.e$a.a);
        com.e.a.e.a(com.e.a.e$e.a);
        String v5_2 = com.e.a.e.a(com.e.a.e$d.a);
        String v6_1 = com.e.a.e.a(com.e.a.e$i.a);
        String v7_1 = com.e.a.e.a(com.e.a.e$j.a);
        p9.execSQL(v1_14);
        p9.execSQL(v2_1);
        p9.execSQL(v3_1);
        p9.execSQL(v4_1);
        p9.execSQL(v5_2);
        p9.execSQL(v6_1);
        p9.execSQL(v7_1);
        p9.execSQL(v0_2);
        return;
    }

Method com.e.a.a.handleUpgradeForTrackMetadataTable() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void handleUpgradeForTrackMetadataTable(android.database.sqlite.SQLiteDatabase p4, int p5, int p6)
    {
        if (p5 >= 5) {
            if (p5 < 9) {
                String v0_19 = System.currentTimeMillis();
                String v6_28 = new StringBuilder();
                v6_28.append("ALTER TABLE ");
                v6_28.append(com.e.a.e$l.a);
                v6_28.append(" ADD ");
                v6_28.append("download_time");
                v6_28.append(" TIMESTAMP DEFAULT ");
                v6_28.append(v0_19);
                v6_28.append(";");
                p4.execSQL(v6_28.toString());
            }
            if (p5 < 11) {
                String v6_19 = new StringBuilder();
                v6_19.append("ALTER TABLE ");
                v6_19.append(com.e.a.e$l.a);
                v6_19.append(" ADD ");
                v6_19.append("album_name");
                v6_19.append(" TEXT");
                p4.execSQL(v6_19.toString());
                String v6_22 = new StringBuilder();
                v6_22.append("ALTER TABLE ");
                v6_22.append(com.e.a.e$l.a);
                v6_22.append(" ADD ");
                v6_22.append("track_artwork");
                v6_22.append(" TEXT");
                p4.execSQL(v6_22.toString());
            }
            if (p5 < 12) {
                String v0_21 = System.currentTimeMillis();
                String v6_27 = new StringBuilder();
                v6_27.append("ALTER TABLE ");
                v6_27.append(com.e.a.e$l.a);
                v6_27.append(" ADD ");
                v6_27.append("offline_play_time");
                v6_27.append(" TIMESTAMP DEFAULT ");
                v6_27.append(v0_21);
                p4.execSQL(v6_27.toString());
                String v6_31 = new StringBuilder();
                v6_31.append("ALTER TABLE ");
                v6_31.append(com.e.a.e$l.a);
                v6_31.append(" ADD ");
                v6_31.append("offline_play_count");
                v6_31.append(" INTEGER NOT NULL DEFAULT (1) ");
                p4.execSQL(v6_31.toString());
            }
            if (p5 < 13) {
                String v6_35 = new StringBuilder();
                v6_35.append("ALTER TABLE ");
                v6_35.append(com.e.a.e$l.a);
                v6_35.append(" ADD ");
                v6_35.append("parental_warn");
                v6_35.append(" INTEGER NOT NULL DEFAULT (0) ");
                p4.execSQL(v6_35.toString());
            }
            if (p5 < 14) {
                String v0_3 = new StringBuilder();
                v0_3.append("ALTER TABLE ");
                v0_3.append(com.e.a.e$l.a);
                v0_3.append(" ADD ");
                v0_3.append("track_language");
                v0_3.append(" TEXT DEFAULT ");
                v0_3.append("English");
                p4.execSQL(v0_3.toString());
            }
            if (p5 < 16) {
                String v6_7 = new StringBuilder();
                v6_7.append("ALTER TABLE ");
                v6_7.append(com.e.a.e$l.a);
                v6_7.append(" ADD ");
                v6_7.append("smart_download");
                v6_7.append(" INTEGER NOT NULL DEFAULT (0) ");
                p4.execSQL(v6_7.toString());
            }
            if (p5 < 17) {
                String v5_2 = new StringBuilder();
                v5_2.append("ALTER TABLE ");
                v5_2.append(com.e.a.e$l.a);
                v5_2.append(" ADD ");
                v5_2.append("free_download");
                v5_2.append(" INTEGER NOT NULL DEFAULT (0) ");
                p4.execSQL(v5_2.toString());
            }
        } else {
            p4.execSQL(com.e.a.e.a(com.e.a.e$l.a));
        }
        return;
    }

Method com.e.a.a.handleUpgradeForTrackMappingTable() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void handleUpgradeForTrackMappingTable(android.database.sqlite.SQLiteDatabase p1, int p2, int p3)
    {
        if (p2 < 7) {
            p1.execSQL(com.e.a.e.a(com.e.a.e$g.a));
        }
        return;
    }

Method com.e.a.a.handleUpgradeForTrackDetailsTable() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void handleUpgradeForTrackDetailsTable(android.database.sqlite.SQLiteDatabase p1, int p2, int p3)
    {
        if (p2 < 4) {
            String v2_3 = new StringBuilder();
            v2_3.append("ALTER TABLE ");
            v2_3.append(com.e.a.e$k.a);
            v2_3.append(" ADD \'encryption_scheme\' INTEGER NOT NULL DEFAULT (1)");
            p1.execSQL(v2_3.toString());
        }
        return;
    }

Method com.e.a.a.handleUpgradeForTrackCacheTable() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void handleUpgradeForTrackCacheTable(android.database.sqlite.SQLiteDatabase p1, int p2, int p3)
    {
        if (p2 < 18) {
            p1.execSQL(com.e.a.e.a(com.e.a.e$j.a));
        }
        return;
    }

Method com.e.a.a.handleUpgradeForSongsIdentifierHistoryTable() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void handleUpgradeForSongsIdentifierHistoryTable(android.database.sqlite.SQLiteDatabase p1, int p2, int p3)
    {
        if (p2 < 15) {
            p1.execSQL(com.e.a.e.a(com.e.a.e$i.a));
        }
        return;
    }

Method com.e.a.a.handleUpgradeForPlaylistMetadataTable() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void handleUpgradeForPlaylistMetadataTable(android.database.sqlite.SQLiteDatabase p1, int p2, int p3)
    {
        if (p2 >= 7) {
            if (p2 < 8) {
                StringBuilder v1_3 = new StringBuilder();
                v1_3.append("ALTER IGNORE TABLE ");
                v1_3.append(com.e.a.e$f.a);
                v1_3.append(" ADD UNIQUE (");
                v1_3.append("playlist_id");
                v1_3.append(")");
                v1_3.toString();
            }
        } else {
            p1.execSQL(com.e.a.e.a(com.e.a.e$f.a));
        }
        return;
    }

Method com.e.a.a.handleUpgradeForPlaylistDetailsTable() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void handleUpgradeForPlaylistDetailsTable(android.database.sqlite.SQLiteDatabase p3, int p4, int p5)
    {
        if (p4 < 3) {
            int v5_9 = new StringBuilder();
            v5_9.append("ALTER TABLE ");
            v5_9.append(com.e.a.e$h.a);
            v5_9.append(" ADD \'playlist_content\' TEXT");
            p3.execSQL(v5_9.toString());
        }
        if (p4 < 5) {
            int v5_4 = new StringBuilder();
            v5_4.append("ALTER TABLE ");
            v5_4.append(com.e.a.e$h.a);
            v5_4.append(" ADD \'playlist_name\' TEXT");
            p3.execSQL(v5_4.toString());
            int v5_8 = new StringBuilder();
            v5_8.append("ALTER TABLE ");
            v5_8.append(com.e.a.e$h.a);
            v5_8.append(" ADD \'playlist_type\' INTEGER");
            p3.execSQL(v5_8.toString());
            int v5_12 = new StringBuilder();
            v5_12.append("ALTER TABLE ");
            v5_12.append(com.e.a.e$h.a);
            v5_12.append(" ADD \'artist_name\' TEXT");
            p3.execSQL(v5_12.toString());
        }
        if (p4 < 9) {
            String v4_1 = System.currentTimeMillis();
            StringBuilder v0_11 = new StringBuilder();
            v0_11.append("ALTER TABLE ");
            v0_11.append(com.e.a.e$h.a);
            v0_11.append(" ADD ");
            v0_11.append("download_time");
            v0_11.append(" TIMESTAMP DEFAULT ");
            v0_11.append(v4_1);
            v0_11.append(";");
            p3.execSQL(v0_11.toString());
        }
        return;
    }

Method com.e.a.a.handleUpgradeForLastHeardSongsTable() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void handleUpgradeForLastHeardSongsTable(android.database.sqlite.SQLiteDatabase p2, int p3, int p4)
    {
        if (p3 >= 10) {
            if (p3 < 14) {
                StringBuilder v4_3 = new StringBuilder();
                v4_3.append("ALTER TABLE ");
                v4_3.append(com.e.a.e$d.a);
                v4_3.append(" ADD ");
                v4_3.append("track_language");
                v4_3.append(" TEXT DEFAULT ");
                v4_3.append("English");
                p2.execSQL(v4_3.toString());
            }
        } else {
            p2.execSQL(com.e.a.e.a(com.e.a.e$d.a));
        }
        return;
    }

Method com.e.a.a.handleUpgradeForFeedTable() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void handleUpgradeForFeedTable(android.database.sqlite.SQLiteDatabase p1, int p2, int p3)
    {
        if (p2 < 6) {
            String v2_3 = new StringBuilder();
            v2_3.append("ALTER TABLE ");
            v2_3.append(com.e.a.e$b.a);
            v2_3.append(" ADD ");
            v2_3.append("is_dynamic_cache");
            v2_3.append(" INTEGER");
            p1.execSQL(v2_3.toString());
        }
        return;
    }

Method com.e.a.a.handleUpgradeForDownloadSyncDetailsTable() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void handleUpgradeForDownloadSyncDetailsTable(android.database.sqlite.SQLiteDatabase p1, int p2, int p3)
    {
        if (p2 < 5) {
            p1.execSQL(com.e.a.e.a(com.e.a.e$a.a));
        }
        return;
    }

Method com.e.a.a.handleDbUpgrade() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void handleDbUpgrade(android.database.sqlite.SQLiteDatabase p3, int p4, int p5)
    {
        if (p4 < 5) {
            String v0_5 = new StringBuilder();
            v0_5.append("DROP TABLE IF EXISTS ");
            v0_5.append(com.e.a.e$m.a);
            p3.execSQL(v0_5.toString());
        }
        if (p4 < 7) {
            p3.execSQL(com.e.a.e.a(com.e.a.e$n.a));
        }
        this.handleUpgradeForFeedTable(p3, p4, p5);
        this.handleUpgradeForTrackDetailsTable(p3, p4, p5);
        this.handleUpgradeForTrackMappingTable(p3, p4, p5);
        this.handleUpgradeForPlaylistMetadataTable(p3, p4, p5);
        this.handleUpgradeForPlaylistDetailsTable(p3, p4, p5);
        this.handleUpgradeForTrackMetadataTable(p3, p4, p5);
        this.handleUpgradeForDownloadSyncDetailsTable(p3, p4, p5);
        this.handleUpgradeForLocalMediaActivityTable(p3, p4, p5);
        this.handleUpgradeForLastHeardSongsTable(p3, p4, p5);
        this.handleUpgradeForSongsIdentifierHistoryTable(p3, p4, p5);
        this.handleUpgradeForTrackCacheTable(p3, p4, p5);
        return;
    }

Method com.e.a.a.a.onCreate() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    public void onCreate(android.database.sqlite.SQLiteDatabase p5)
    {
        String v0_1 = com.e.a.e.a(com.e.a.e$f.a);
        String v1_1 = com.e.a.e.a(com.e.a.e$g.a);
        String v2_1 = com.e.a.e.a("local_favorite_table");
        String v3_0 = com.e.a.e.a("social_feed_table");
        p5.execSQL(v0_1);
        p5.execSQL(v1_1);
        p5.execSQL(v2_1);
        p5.execSQL(v3_0);
        return;
    }

Method com.e.a.a.a.a() calling method android.database.sqlite.SQLiteDatabase.execSQL()


    private void a(android.database.sqlite.SQLiteDatabase p2, int p3, int p4)
    {
        if (p3 < 3) {
            try {
                p2.beginTransaction();
                p2.execSQL("DROP TABLE IF EXISTS social_feed_table");
                p2.setTransactionSuccessful();
            } catch (Exception v3_6) {
                p2.endTransaction();
                throw v3_6;
            } catch (Exception v4_8) {
                com.google.devtools.build.android.desugar.runtime.ThrowableExtension.printStackTrace(v4_8);
            }
            p2.endTransaction();
            try {
                p2.beginTransaction();
                p2.execSQL(com.e.a.e.a("social_feed_table"));
                p2.setTransactionSuccessful();
            } catch (Exception v3_1) {
                p2.endTransaction();
                throw v3_1;
            } catch (Exception v4_3) {
                com.google.devtools.build.android.desugar.runtime.ThrowableExtension.printStackTrace(v4_3);
            }
            p2.endTransaction();
        }
        if (p3 < 4) {
            Exception v4_6 = new StringBuilder();
            v4_6.append("ALTER TABLE ");
            v4_6.append(com.e.a.e$f.a);
            v4_6.append(" ADD ");
            v4_6.append("language");
            v4_6.append(" TEXT DEFAULT ");
            v4_6.append("English");
            Exception v3_3 = v4_6.toString();
            try {
                p2.beginTransaction();
                p2.execSQL(v3_3);
                p2.setTransactionSuccessful();
            } catch (Exception v3_5) {
                p2.endTransaction();
                throw v3_5;
            } catch (Exception v3_4) {
                com.google.devtools.build.android.desugar.runtime.ThrowableExtension.printStackTrace(v3_4);
            }
            p2.endTransaction();
        }
        return;
    }

Method com.playercache.d.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public long a(String p6)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.getDB();
        try {
            v0.beginTransaction();
            String[] v3_1 = new String[1];
            v3_1[0] = String.valueOf(p6);
            long v1 = ((long) v0.delete(com.e.a.e$j.a, "track_id= ?", v3_1));
            v0.setTransactionSuccessful();
        } catch (Exception v6_4) {
            v0.endTransaction();
            throw v6_4;
        } catch (Exception v6_3) {
            com.google.devtools.build.android.desugar.runtime.ThrowableExtension.printStackTrace(v6_3);
        }
        v0.endTransaction();
        return v1;
    }

Method com.playercache.d.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public long a(com.gaana.models.Tracks$Track p6, boolean p7)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.getDB();
        long v1 = 0;
        try {
            long v6_4;
            v0.beginTransaction();
        } catch (long v6_8) {
            v0.endTransaction();
            throw v6_8;
        } catch (long v6_7) {
            com.google.devtools.build.android.desugar.runtime.ThrowableExtension.printStackTrace(v6_7);
            v0.endTransaction();
            return v1;
        }
        if (p7 == null) {
            String[] v7_4 = new String[1];
            v7_4[0] = String.valueOf(p6.getBusinessObjId());
            v6_4 = ((long) v0.delete(com.e.a.e$j.a, "track_id= ?", v7_4));
        } else {
            String[] v7_2 = new android.content.ContentValues();
            v7_2.put("track_id", p6.getBusinessObjId());
            v7_2.put("track_cache_behaviour", Integer.valueOf(p6.getCachingBehaviour()));
            v7_2.put("track_metadata", this.a.toJson(p6));
            v6_4 = v0.insert(com.e.a.e$j.a, 0, v7_2);
        }
        v1 = v6_4;
        v0.setTransactionSuccessful();
        v0.endTransaction();
        return v1;
    }

Method com.helpshift.support.search.a.b.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void a()
    {
        try {
            ark>com.helpshift.support.search.a.bark>.a.getWritableDatabase().delete("search_token_table", 0, 0);
        } catch (Exception v1_1) {
            throw v1_1;
        } catch (Exception v1_3) {
            com.helpshift.util.l.c("Helpshift_SearchToknDao", "Error occurred when calling clear method", v1_3);
        }
        return;
    }

Method com.helpshift.support.h.d.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void a(String p5)
    {
        if (!android.text.TextUtils.isEmpty(p5)) {
            try {
                String v2_2 = new String[1];
                v2_2[0] = p5;
                this.a.getWritableDatabase().delete("faqs", "publish_id=?", v2_2);
            } catch (Exception v5_3) {
                throw v5_3;
            } catch (Exception v5_2) {
                com.helpshift.util.l.c("HelpShiftDebug", "Error in removeFaq", v5_2);
            }
        }
        return;
    }

Method com.helpshift.q.b.b() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void b(String p5)
    {
        if (!android.text.TextUtils.isEmpty(p5)) {
            android.database.sqlite.SQLiteDatabase v0_2 = this.a.getWritableDatabase();
            String[] v2_1 = new String[1];
            v2_1[0] = p5;
            v0_2.delete("key_value_store", "key=?", v2_1);
            return;
        } else {
            return;
        }
    }

Method com.helpshift.q.b.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void a()
    {
        this.a.getWritableDatabase().delete("key_value_store", 0, 0);
        return;
    }

Method com.helpshift.j.b.a.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void a(com.helpshift.j.d.a p10)
    {
        String v1_0 = 0;
        try {
            String v2_1 = this.a.getWritableDatabase();
            try {
                v2_1.beginTransaction();
                try {
                    int v3_0 = v2_1.rawQuery("SELECT rowid FROM LOG_MESSAGES", 0);
                    try {
                        if ((v3_0 == 0) || (v3_0.getCount() < 100)) {
                            v2_1.insert("LOG_MESSAGES", 0, com.helpshift.j.a.a.a(p10));
                            v2_1.setTransactionSuccessful();
                            if (v2_1 != null) {
                                try {
                                    v2_1.endTransaction();
                                } catch (Exception v10_5) {
                                    android.util.Log.e("LogSqliteStorage", "Error inserting log inside finally block: ", v10_5);
                                }
                            }
                            if (v3_0 == 0) {
                                return;
                            } else {
                                v3_0.close();
                                return;
                            }
                        } else {
                            v3_0.moveToFirst();
                            String[] v8_1 = new String[1];
                            v8_1[0] = String.valueOf(v3_0.getInt(0));
                            v2_1.delete("LOG_MESSAGES", "rowid = ?", v8_1);
                        }
                    } catch (String v4_0) {
                        try {
                            String v6_1 = new StringBuilder();
                            v6_1.append("Error in rotation of logs + ");
                            v6_1.append(v4_0.getMessage());
                            android.util.Log.w("LogSqliteStorage", v6_1.toString());
                            v2_1.delete("LOG_MESSAGES", 0, 0);
                        } catch (Exception v10_1) {
                            v1_0 = v2_1;
                            try {
                                android.util.Log.e("LogSqliteStorage", "Error inserting log : ", v10_1);
                            } catch (Exception v10_2) {
                                v2_1 = v1_0;
                                if (v2_1 != null) {
                                    try {
                                        v2_1.endTransaction();
                                    } catch (String v1_2) {
                                        android.util.Log.e("LogSqliteStorage", "Error inserting log inside finally block: ", v1_2);
                                    }
                                }
                                if (v3_0 != 0) {
                                    v3_0.close();
                                }
                                throw v10_2;
                            }
                            if (v1_0 != null) {
                                try {
                                    v1_0.endTransaction();
                                } catch (Exception v10_3) {
                                    android.util.Log.e("LogSqliteStorage", "Error inserting log inside finally block: ", v10_3);
                                }
                            }
                            if (v3_0 == 0) {
                                return;
                            } else {
                            }
                        }
                    }
                } catch (String v4_0) {
                    v3_0 = 0;
                } catch (Exception v10_2) {
                }
            } catch (Exception v10_2) {
                v3_0 = 0;
            } catch (Exception v10_1) {
                v3_0 = 0;
            }
        } catch (Exception v10_2) {
            v2_1 = 0;
            v3_0 = 0;
        } catch (Exception v10_1) {
            v3_0 = 0;
        } catch (Exception v10_6) {
            throw v10_6;
        }
    }

Method com.helpshift.campaigns.l.j.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void a(String[] p6)
    {
        if (p6 != null) {
            String v1_1 = 0;
            try {
                Exception v6_8 = com.helpshift.util.f.a(900, java.util.Arrays.asList(p6));
                String v2_0 = this.a.getWritableDatabase();
                try {
                    v2_0.beginTransaction();
                    Exception v6_2 = v6_8.iterator();
                } catch (Exception v6_6) {
                    if (v2_0 != null) {
                        try {
                            if (v2_0.inTransaction()) {
                                v2_0.endTransaction();
                            }
                        } catch (String v1_8) {
                            com.helpshift.util.l.c("Helpshift_SessionDB", "Error removing sessions inside finally block, ", v1_8);
                        }
                    }
                    throw v6_6;
                } catch (Exception v6_1) {
                    v1_1 = v2_0;
                    com.helpshift.util.l.c("Helpshift_SessionDB", "Error removing sessions", v6_1);
                    if (v1_1 == null) {
                        return;
                    } else {
                        try {
                            if (!v1_1.inTransaction()) {
                                return;
                            } else {
                                v1_1.endTransaction();
                                return;
                            }
                        } catch (Exception v6_4) {
                            String v1_2 = "Helpshift_SessionDB";
                            String v2_1 = "Error removing sessions inside finally block, ";
                            com.helpshift.util.l.c(v1_2, v2_1, v6_4);
                            return;
                        }
                    }
                }
                while (v6_2.hasNext()) {
                    String v1_4 = ((java.util.List) v6_2.next());
                    String v3_1 = new String[v1_4.size()];
                    String v1_6 = ((String[]) v1_4.toArray(v3_1));
                    String v3_3 = new StringBuilder();
                    v3_3.append("identifier in (");
                    v3_3.append(com.helpshift.util.f.a(v1_6.length));
                    v3_3.append(")");
                    v2_0.delete("sessions", v3_3.toString(), v1_6);
                }
                v2_0.setTransactionSuccessful();
                try {
                    if ((v2_0 == null) || (!v2_0.inTransaction())) {
                        return;
                    } else {
                        v2_0.endTransaction();
                        return;
                    }
                } catch (Exception v6_4) {
                    v1_2 = "Helpshift_SessionDB";
                    v2_1 = "Error removing sessions inside finally block, ";
                }
            } catch (Exception v6_6) {
                v2_0 = v1_1;
            } catch (Exception v6_1) {
            } catch (Exception v6_9) {
                throw v6_9;
            }
        } else {
            return;
        }
    }

Method com.helpshift.campaigns.l.j.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public int a()
    {
        try {
            int v1_1 = this.a.getWritableDatabase().delete("sessions", "end_time=0", 0);
        } catch (int v1_2) {
            throw v1_2;
        } catch (int v1_3) {
            com.helpshift.util.l.c("Helpshift_SessionDB", "Error cleaning up invalid sessions", v1_3);
            v1_1 = 0;
        }
        return v1_1;
    }

Method com.helpshift.campaigns.l.a.e() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void e(String p8)
    {
        if (!android.text.TextUtils.isEmpty(p8)) {
            java.util.Iterator v1_1 = 1;
            try {
                String v3_2 = this.a.getWritableDatabase();
                String v5_0 = new String[1];
                v5_0[0] = p8;
                v3_2.delete("campaigns", "identifier=?", v5_0);
            } catch (Throwable v8_1) {
                throw v8_1;
            } catch (java.util.Iterator v1_0) {
                String v4_1 = new StringBuilder();
                v4_1.append("Exception in deleting campaign for id ");
                v4_1.append(p8);
                com.helpshift.util.l.c("Helpshift_CampDBStore", v4_1.toString(), v1_0);
                v1_1 = 0;
            }
            if (v1_1 != null) {
                java.util.Iterator v1_3 = this.b.iterator();
                while (v1_3.hasNext()) {
                    ((com.helpshift.campaigns.i.f) v1_3.next()).c(p8);
                }
            }
            return;
        } else {
            return;
        }
    }

Method com.helpshift.campaigns.l.a.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void a(String[] p8)
    {
        if ((p8 != null) && (p8.length != 0)) {
            try {
                java.util.Iterator v2_5 = this.a.getWritableDatabase();
                com.helpshift.campaigns.i.f v3_6 = new StringBuilder();
                v3_6.append("identifier in (");
                v3_6.append(com.helpshift.util.f.a(p8.length));
                v3_6.append(")");
                v2_5.delete("campaigns", v3_6.toString(), p8);
                java.util.Iterator v2_0 = 1;
            } catch (Throwable v8_1) {
                throw v8_1;
            } catch (java.util.Iterator v2_1) {
                com.helpshift.util.l.c("Helpshift_CampDBStore", "Exception in deleting campaigns ", v2_1);
                v2_0 = 0;
            }
            if (v2_0 != null) {
                java.util.Iterator v2_3 = this.b.iterator();
                while (v2_3.hasNext()) {
                    com.helpshift.campaigns.i.f v3_3 = v2_3.next();
                    int v4_6 = p8.length;
                    int v5 = 0;
                    while (v5 < v4_6) {
                        ((com.helpshift.campaigns.i.f) v3_3).c(p8[v5]);
                        v5++;
                    }
                }
            }
            return;
        } else {
            return;
        }
    }

Method com.moe.pushlibrary.providers.MoEProvider.delete() calling method android.database.sqlite.SQLiteDatabase.delete()


    public int delete(android.net.Uri p6, String p7, String[] p8)
    {
        int v0_0 = 0;
        if (p6 != null) {
            android.database.sqlite.SQLiteDatabase v1_1 = this.mOpenHelper.getWritableDatabase();
            this.updateIfRequired(v1_1);
            switch (com.moe.pushlibrary.providers.MoEProvider.sUriMatcher.match(p6)) {
                case 1:
                    v0_0 = v1_1.delete("MESSAGES", p7, p8);
                    break;
                case 2:
                    String v7_5;
                    int v0_20 = ((String) p6.getPathSegments().get(1));
                    StringBuilder v3_5 = new StringBuilder();
                    v3_5.append("_id=");
                    v3_5.append(v0_20);
                    if (android.text.TextUtils.isEmpty(p7)) {
                        v7_5 = "";
                    } else {
                        int v0_23 = new StringBuilder();
                        v0_23.append(" AND ");
                        v0_23.append(p7);
                        v7_5 = v0_23.toString();
                    }
                    v3_5.append(v7_5);
                    v0_0 = v1_1.delete("MESSAGES", v3_5.toString(), p8);
                    break;
                case 3:
                    v0_0 = v1_1.delete("DATAPOINTS", p7, p8);
                    break;
                case 4:
                    String v7_3;
                    int v0_11 = ((String) p6.getPathSegments().get(1));
                    StringBuilder v3_3 = new StringBuilder();
                    v3_3.append("_id = ");
                    v3_3.append(v0_11);
                    if (android.text.TextUtils.isEmpty(p7)) {
                        v7_3 = "";
                    } else {
                        int v0_15 = new StringBuilder();
                        v0_15.append(" AND ");
                        v0_15.append(p7);
                        v7_3 = v0_15.toString();
                    }
                    v3_3.append(v7_3);
                    v0_0 = v1_1.delete("DATAPOINTS", v3_3.toString(), p8);
                    break;
                case 5:
                    v0_0 = v1_1.delete("INAPPMSG", p7, p8);
                    break;
                case 6:
                    String v7_1;
                    int v0_3 = ((String) p6.getPathSegments().get(1));
                    StringBuilder v3_1 = new StringBuilder();
                    v3_1.append("_id=");
                    v3_1.append(v0_3);
                    if (android.text.TextUtils.isEmpty(p7)) {
                        v7_1 = "";
                    } else {
                        int v0_6 = new StringBuilder();
                        v0_6.append(" AND ");
                        v0_6.append(p7);
                        v7_1 = v0_6.toString();
                    }
                    v3_1.append(v7_1);
                    v0_0 = v1_1.delete("INAPPMSG", v3_1.toString(), p8);
                    break;
                case 7:
                case 8:
                default:
                    String v7_8 = new StringBuilder();
                    v7_8.append("Unknown URI ");
                    v7_8.append(p6);
                    com.moengage.core.Logger.f(v7_8.toString());
                    break;
                case 9:
                    v0_0 = v1_1.delete("USERATTRIBUTES", p7, p8);
                    break;
                case 10:
                    String v7_18;
                    int v0_38 = ((String) p6.getPathSegments().get(1));
                    StringBuilder v3_11 = new StringBuilder();
                    v3_11.append("_id=");
                    v3_11.append(v0_38);
                    if (android.text.TextUtils.isEmpty(p7)) {
                        v7_18 = "";
                    } else {
                        int v0_41 = new StringBuilder();
                        v0_41.append(" AND ");
                        v0_41.append(p7);
                        v7_18 = v0_41.toString();
                    }
                    v3_11.append(v7_18);
                    v0_0 = v1_1.delete("USERATTRIBUTES", v3_11.toString(), p8);
                    break;
                case 11:
                    v0_0 = v1_1.delete("CAMPAIGNLIST", p7, p8);
                    break;
                case 12:
                    String v7_16;
                    int v0_31 = ((String) p6.getPathSegments().get(1));
                    StringBuilder v3_9 = new StringBuilder();
                    v3_9.append("_id=");
                    v3_9.append(v0_31);
                    if (android.text.TextUtils.isEmpty(p7)) {
                        v7_16 = "";
                    } else {
                        int v0_34 = new StringBuilder();
                        v0_34.append(" AND ");
                        v0_34.append(p7);
                        v7_16 = v0_34.toString();
                    }
                    v3_9.append(v7_16);
                    v0_0 = v1_1.delete("CAMPAIGNLIST", v3_9.toString(), p8);
                    break;
                case 13:
                    v0_0 = v1_1.delete("BATCH_DATA", p7, p8);
                    break;
                case 14:
                    String v7_14;
                    int v0_16 = ((String) p6.getPathSegments().get(1));
                    StringBuilder v3_7 = new StringBuilder();
                    v3_7.append("_id=");
                    v3_7.append(v0_16);
                    if (android.text.TextUtils.isEmpty(p7)) {
                        v7_14 = "";
                    } else {
                        int v0_27 = new StringBuilder();
                        v0_27.append(" AND ");
                        v0_27.append(p7);
                        v7_14 = v0_27.toString();
                    }
                    v3_7.append(v7_14);
                    v0_0 = v1_1.delete("BATCH_DATA", v3_7.toString(), p8);
                    break;
            }
            this.getContext().getContentResolver().notifyChange(p6, 0);
            String v7_13 = new StringBuilder();
            v7_13.append("MoEProvider: Deleted ");
            v7_13.append(v0_0);
            v7_13.append(" record(s) for URI: ");
            v7_13.append(p6.toString());
            com.moengage.core.Logger.v(v7_13.toString());
            return v0_0;
        } else {
            return 0;
        }
    }

Method com.inmobi.commons.core.d.b.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final declared_synchronized int a(String p2, String p3, String[] p4)
    {
        try {
            return this.f.delete(p2, p3, p4);
        } catch (int v2_2) {
            throw v2_2;
        } catch (int v2_4) {
            new StringBuilder("SDK encountered an unexpected error in DbStore.delete() method; ").append(v2_4.getMessage());
            return -1;
        }
    }

Method com.google.android.gms.internal.measurement.zzbi.zzbr() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void zzbr()
    {
        com.google.android.gms.analytics.zzk.zzaf();
        this.zzcl();
        this.zzq("Delete all hits from local store");
        try {
            String v0_7 = this.zzxl;
            com.google.android.gms.analytics.zzk.zzaf();
            v0_7.zzcl();
            v0_7.getWritableDatabase().delete("hits2", 0, 0);
            String v0_0 = this.zzxl;
            com.google.android.gms.analytics.zzk.zzaf();
            v0_0.zzcl();
            v0_0.getWritableDatabase().delete("properties", 0, 0);
            this.zzdm();
        } catch (String v0_3) {
            this.zzd("Failed to delete hits from store", v0_3);
        }
        this.zzdj();
        if (this.zzxo.zzcx()) {
            this.zzq("Device service unavailable. Can\'t clear hits stored on the device service.");
        }
        return;
    }

Method com.google.android.gms.internal.measurement.zzbi.zza() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final long zza(com.google.android.gms.internal.measurement.zzaz p11, boolean p12)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p11);
        this.zzcl();
        com.google.android.gms.analytics.zzk.zzaf();
        try {
            this.zzxl.beginTransaction();
            String v12_8 = this.zzxl;
            long v2_6 = p11.zzcs();
            String v4_0 = p11.zzbd();
            com.google.android.gms.common.internal.Preconditions.checkNotEmpty(v4_0);
            v12_8.zzcl();
            com.google.android.gms.analytics.zzk.zzaf();
            int v5_1 = v12_8.getWritableDatabase();
            long v8_3 = new String[2];
            v8_3[0] = String.valueOf(v2_6);
            v8_3[1] = v4_0;
            long v2_2 = v5_1.delete("properties", "app_uid=? AND cid<>?", v8_3);
        } catch (android.database.sqlite.SQLiteException v11_10) {
            try {
                this.zzxl.endTransaction();
            } catch (String v12_4) {
                this.zze("Failed to end transaction", v12_4);
            }
            throw v11_10;
        } catch (android.database.sqlite.SQLiteException v11_7) {
            this.zze("Failed to update Analytics property", v11_7);
            try {
                this.zzxl.endTransaction();
            } catch (android.database.sqlite.SQLiteException v11_9) {
                this.zze("Failed to end transaction", v11_9);
            }
            return -1;
        }
        if (v2_2 > 0) {
            v12_8.zza("Deleted property records", Integer.valueOf(v2_2));
        }
        long v2_5 = this.zzxl.zza(p11.zzcs(), p11.zzbd(), p11.zzct());
        p11.zzb((v2_5 + 1));
        String v12_7 = this.zzxl;
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p11);
        v12_7.zzcl();
        com.google.android.gms.analytics.zzk.zzaf();
        String v4_5 = v12_7.getWritableDatabase();
        int v5_3 = p11.zzcw();
        com.google.android.gms.common.internal.Preconditions.checkNotNull(v5_3);
        android.content.ContentValues v6_3 = new android.net.Uri$Builder();
        int v5_5 = v5_3.entrySet().iterator();
        while (v5_5.hasNext()) {
            int v7_2 = ((java.util.Map$Entry) v5_5.next());
            v6_3.appendQueryParameter(((String) v7_2.getKey()), ((String) v7_2.getValue()));
        }
        int v5_7 = v6_3.build().getEncodedQuery();
        if (v5_7 == 0) {
            v5_7 = "";
        }
        android.content.ContentValues v6_5 = new android.content.ContentValues();
        v6_5.put("app_uid", Long.valueOf(p11.zzcs()));
        v6_5.put("cid", p11.zzbd());
        v6_5.put("tid", p11.zzct());
        v6_5.put("adid", Integer.valueOf(p11.zzcu()));
        v6_5.put("hits_count", Long.valueOf(p11.zzcv()));
        v6_5.put("params", v5_7);
        try {
            if (v4_5.insertWithOnConflict("properties", 0, v6_5, 5) == -1) {
                v12_7.zzu("Failed to insert/update a property (got -1)");
            }
        } catch (android.database.sqlite.SQLiteException v11_2) {
            v12_7.zze("Error storing a property", v11_2);
        }
        this.zzxl.setTransactionSuccessful();
        try {
            this.zzxl.endTransaction();
        } catch (android.database.sqlite.SQLiteException v11_6) {
            this.zze("Failed to end transaction", v11_6);
        }
        return v2_5;
    }

Method com.google.android.gms.internal.measurement.zzbf.zzdb() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final int zzdb()
    {
        com.google.android.gms.analytics.zzk.zzaf();
        this.zzcl();
        if (this.zzxi.zzj(86400000)) {
            this.zzxi.start();
            this.zzq("Deleting stale hits (if any)");
            int v0_1 = this.getWritableDatabase();
            String[] v4_2 = new String[1];
            v4_2[0] = Long.toString((this.zzbx().currentTimeMillis() - 1.280618154e-314));
            int v0_3 = v0_1.delete("hits2", "hit_time < ?", v4_2);
            this.zza("Deleted stale hits, count", Integer.valueOf(v0_3));
            return v0_3;
        } else {
            return 0;
        }
    }

Method com.google.android.gms.internal.measurement.zzbf.zza() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void zza(java.util.List p9)
    {
        com.google.android.gms.common.internal.Preconditions.checkNotNull(p9);
        com.google.android.gms.analytics.zzk.zzaf();
        this.zzcl();
        if (!p9.isEmpty()) {
            String v0_5 = new StringBuilder("hit_id");
            v0_5.append(" in (");
            int v1_0 = 0;
            while (v1_0 < p9.size()) {
                String v2_6 = ((Long) p9.get(v1_0));
                if ((v2_6 != null) && (v2_6.longValue() != 0)) {
                    if (v1_0 > 0) {
                        v0_5.append(",");
                    }
                    v0_5.append(v2_6);
                    v1_0++;
                } else {
                    throw new android.database.sqlite.SQLiteException("Invalid hit id");
                }
            }
            v0_5.append(")");
            String v0_0 = v0_5.toString();
            try {
                int v1_2 = this.getWritableDatabase();
                this.zza("Deleting dispatched hits. count", Integer.valueOf(p9.size()));
                int v1_3 = v1_2.delete("hits2", v0_0, 0);
            } catch (Integer v9_3) {
                this.zze("Error deleting hits", v9_3);
                throw v9_3;
            }
            if (v1_3 != p9.size()) {
                this.zzb("Deleted fewer hits then expected", Integer.valueOf(p9.size()), Integer.valueOf(v1_3), v0_0);
            }
            return;
        } else {
            return;
        }
    }

Method com.google.android.gms.tagmanager.zzeb.zzb() calling method android.database.sqlite.SQLiteDatabase.delete()


    public final void zzb(long p10, String p12)
    {
        android.database.sqlite.SQLiteDatabase v0_3 = this.zzrz.currentTimeMillis();
        if (v0_3 > (this.zzbdt + 86400000)) {
            this.zzbdt = v0_3;
            android.database.sqlite.SQLiteDatabase v0_2 = this.zzdl("Error opening database for deleteStaleHits.");
            if (v0_2 != null) {
                android.content.ContentValues v1_4;
                String[] v5_1 = new String[1];
                v5_1[0] = Long.toString((this.zzrz.currentTimeMillis() - 1.280618154e-314));
                v0_2.delete("gtm_hits", "HIT_TIME < ?", v5_1);
                if (this.zzpj() != 0) {
                    v1_4 = 0;
                } else {
                    v1_4 = 1;
                }
                this.zzbdr.zzo(v1_4);
            }
        }
        android.database.sqlite.SQLiteDatabase v0_7 = ((this.zzpj() - this.zzbdu) + 1);
        if (v0_7 > null) {
            android.database.sqlite.SQLiteDatabase v0_8 = this.zzab(v0_7);
            android.content.ContentValues v1_6 = v0_8.size();
            StringBuilder v3_1 = new StringBuilder(51);
            v3_1.append("Store full, deleting ");
            v3_1.append(v1_6);
            v3_1.append(" hits to make room.");
            com.google.android.gms.tagmanager.zzdi.v(v3_1.toString());
            android.content.ContentValues v1_9 = new String[0];
            this.zza(((String[]) v0_8.toArray(v1_9)));
        }
        android.database.sqlite.SQLiteDatabase v0_12 = this.zzdl("Error opening database for putHit");
        if (v0_12 != null) {
            android.content.ContentValues v1_11 = new android.content.ContentValues();
            v1_11.put("hit_time", Long.valueOf(p10));
            v1_11.put("hit_url", p12);
            v1_11.put("hit_first_send_time", Integer.valueOf(0));
            try {
                v0_12.insert("gtm_hits", 0, v1_11);
                this.zzbdr.zzo(0);
                return;
            } catch (android.database.sqlite.SQLiteException) {
                com.google.android.gms.tagmanager.zzdi.zzab("Error storing hit");
            }
        }
        return;
    }

Method com.google.android.gms.tagmanager.zzeb.zza() calling method android.database.sqlite.SQLiteDatabase.delete()


    private final void zza(String[] p9)
    {
        if ((p9 != null) && (p9.length != 0)) {
            int v0_3 = this.zzdl("Error opening database for deleteHits.");
            if (v0_3 != 0) {
                int v2 = 1;
                String v3_1 = new Object[1];
                v3_1[0] = android.text.TextUtils.join(",", java.util.Collections.nCopies(p9.length, "?"));
                try {
                    v0_3.delete("gtm_hits", String.format("HIT_ID in (%s)", v3_1), p9);
                } catch (android.database.sqlite.SQLiteException) {
                    com.google.android.gms.tagmanager.zzdi.zzab("Error deleting hits");
                    return;
                }
                if (this.zzpj() != 0) {
                    v2 = 0;
                } else {
                }
                this.zzbdr.zzo(v2);
                return;
            } else {
                return;
            }
        } else {
            return;
        }
    }

Method com.google.android.gms.tagmanager.zzat.zzdk() calling method android.database.sqlite.SQLiteDatabase.delete()


    private final void zzdk(String p8)
    {
        String v0_2 = this.zzdl("Error opening database for clearKeysWithPrefix.");
        if (v0_2 != null) {
            try {
                String[] v3_1 = new String[2];
                v3_1[0] = p8;
                v3_1[1] = String.valueOf(p8).concat(".%");
                String v0_1 = v0_2.delete("datalayer", "key = ? OR key LIKE ?", v3_1);
                StringBuilder v2_1 = new StringBuilder(25);
                v2_1.append("Cleared ");
                v2_1.append(v0_1);
                v2_1.append(" items");
                com.google.android.gms.tagmanager.zzdi.v(v2_1.toString());
                this.zzok();
                return;
            } catch (String v8_4) {
                this.zzok();
                throw v8_4;
            } catch (String v0_5) {
                String v0_6 = String.valueOf(v0_5);
                StringBuilder v2_7 = new StringBuilder(((44 + String.valueOf(p8).length()) + String.valueOf(v0_6).length()));
                v2_7.append("Error deleting entries with key prefix: ");
                v2_7.append(p8);
                v2_7.append(" (");
                v2_7.append(v0_6);
                v2_7.append(").");
                com.google.android.gms.tagmanager.zzdi.zzab(v2_7.toString());
                this.zzok();
                return;
            }
        } else {
            return;
        }
    }

Method com.google.android.gms.tagmanager.zzat.zzb() calling method android.database.sqlite.SQLiteDatabase.delete()


    private final declared_synchronized void zzb(java.util.List p11, long p12)
    {
        try {
            android.content.ContentValues v0_1 = this.zzrz.currentTimeMillis();
            this.zzap(v0_1);
            String v3_0 = ((this.zzoj() - this.zzbbm) + p11.size());
        } catch (Throwable v11_2) {
            this.zzok();
            throw v11_2;
        } catch (Throwable v11_3) {
            throw v11_3;
        }
        if (v3_0 > null) {
            String v2_0 = this.zzw(v3_0);
            String v3_1 = v2_0.size();
            String v5_1 = new StringBuilder(64);
            v5_1.append("DataLayer store full, deleting ");
            v5_1.append(v3_1);
            v5_1.append(" entries to make room.");
            com.google.android.gms.tagmanager.zzdi.zzdm(v5_1.toString());
            int v4_2 = new String[0];
            String v2_2 = ((String[]) v2_0.toArray(v4_2));
            if (v2_2 != null) {
                if (v2_2.length != 0) {
                    int v4_5 = this.zzdl("Error opening database for deleteEntries.");
                    if (v4_5 != 0) {
                        Object[] v6_1 = new Object[2];
                        v6_1[0] = "ID";
                        v6_1[1] = android.text.TextUtils.join(",", java.util.Collections.nCopies(v2_2.length, "?"));
                        v4_5.delete("datalayer", String.format("%s in (%s)", v6_1), v2_2);
                    }
                } else {
                }
            }
        }
        String v2_8 = (v0_1 + p12);
        android.database.sqlite.SQLiteDatabase v12_2 = this.zzdl("Error opening database for writeEntryToDatabase.");
        if (v12_2 != null) {
            Throwable v11_1 = p11.iterator();
            while (v11_1.hasNext()) {
                String v13_4 = ((com.google.android.gms.tagmanager.zzay) v11_1.next());
                android.content.ContentValues v0_3 = new android.content.ContentValues();
                v0_3.put("expires", Long.valueOf(v2_8));
                v0_3.put("key", v13_4.zzoj);
                v0_3.put("value", v13_4.zzbbs);
                v12_2.insert("datalayer", 0, v0_3);
            }
        }
        this.zzok();
        return;
    }

Method com.google.android.gms.tagmanager.zzat.zzap() calling method android.database.sqlite.SQLiteDatabase.delete()


    private final void zzap(long p6)
    {
        StringBuilder v0_3 = this.zzdl("Error opening database for deleteOlderThan.");
        if (v0_3 != null) {
            try {
                String[] v3_1 = new String[1];
                v3_1[0] = Long.toString(p6);
                String v6_2 = v0_3.delete("datalayer", "expires <= ?", v3_1);
                StringBuilder v0_2 = new StringBuilder(33);
                v0_2.append("Deleted ");
                v0_2.append(v6_2);
                v0_2.append(" expired items");
                com.google.android.gms.tagmanager.zzdi.v(v0_2.toString());
                return;
            } catch (android.database.sqlite.SQLiteException) {
                com.google.android.gms.tagmanager.zzdi.zzab("Error deleting old entries.");
                return;
            }
        } else {
            return;
        }
    }

Method com.facebook.ads.internal.g.c.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    boolean a(String p7)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.f();
        String v2_2 = new StringBuilder();
        v2_2.append(ark>com.facebook.ads.internal.g.cark>.a.b);
        v2_2.append(" = ?");
        String v2_0 = v2_2.toString();
        String[] v4 = new String[1];
        v4[0] = p7;
        if (v0.delete("events", v2_0, v4) <= 0) {
            return 0;
        } else {
            return 1;
        }
    }

Method com.e.a.h.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public boolean a(com.gaana.models.Playlists$Playlist p9, int p10)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.getDB();
        int v1_1 = 0;
        try {
            String v3_8 = new StringBuilder();
            v3_8.append("select * from ");
            v3_8.append(com.e.a.e$h.a);
            v3_8.append(" where ");
            v3_8.append("playlist_id");
            v3_8.append("=");
            v3_8.append(p10);
            String v3_6 = v0.rawQuery(v3_8.toString(), 0);
            try {
                if (v3_6.moveToFirst()) {
                    String vtmp13 = v3_6.getString(v3_6.getColumnIndex("playlist_content"));
                    if (p9 != null) {
                        this.a(p9.getArrListBusinessObj(), p10, com.e.a.e$c.b);
                    } else {
                        p9 = ((com.gaana.models.Playlists$Playlist) com.library.util.Serializer.deserialize(vtmp13));
                    }
                    int v4_1 = v3_6.getInt(v3_6.getColumnIndex("download_status"));
                    if ((v3_6 != null) && (!v3_6.isClosed())) {
                        v3_6.close();
                    }
                    try {
                        String v3_10 = new StringBuilder();
                        v3_10.append("select * from ");
                        v3_10.append(com.e.a.e$k.a);
                        v3_10.append(" where ");
                        v3_10.append("playlist_id");
                        v3_10.append("=");
                        v3_10.append(p10);
                        v3_10.append(" AND ");
                        v3_10.append("has_downloaded");
                        v3_10.append("=");
                        v3_10.append(0);
                        String v3_12 = v0.rawQuery(v3_10.toString(), 0);
                        try {
                            if (v3_12.moveToFirst()) {
                                if ((v3_12 != null) && (!v3_12.isClosed())) {
                                    v3_12.close();
                                }
                                if ((this.p() != -1) || (v4_1 == -2)) {
                                    if (v4_1 == -1) {
                                        v4_1 = 1;
                                    }
                                } else {
                                    v4_1 = 0;
                                }
                                v0.beginTransaction();
                                try {
                                    String[] v5_2 = new String[1];
                                    v5_2[0] = String.valueOf(p10);
                                    v0.delete("playlist_details", "playlist_id=?", v5_2);
                                } catch (Throwable v9_1) {
                                    v0.endTransaction();
                                    throw v9_1;
                                } catch (Exception) {
                                    v0.endTransaction();
                                    return 0;
                                }
                                if (this.h(p10) != 0) {
                                    p9.setPlaylistId(String.valueOf(p10));
                                    p9.setArrListBusinessObj(0);
                                    this.a(p10, com.e.a.e$c.b, p9, v4_1);
                                }
                                v0.setTransactionSuccessful();
                                v0.endTransaction();
                                return 1;
                            } else {
                                v3_12.close();
                                if ((v3_12 != null) && (!v3_12.isClosed())) {
                                    v3_12.close();
                                }
                                return 0;
                            }
                        } catch (Throwable v9_7) {
                            v1_1 = v3_12;
                            if (v1_1 != 0) {
                                if (!v1_1.isClosed()) {
                                    v1_1.close();
                                }
                            }
                            throw v9_7;
                        } catch (Exception) {
                            v1_1 = v3_12;
                            if (v1_1 != 0) {
                                if (!v1_1.isClosed()) {
                                    v1_1.close();
                                }
                            }
                            return 0;
                        }
                    } catch (Throwable v9_7) {
                    } catch (Exception) {
                    }
                } else {
                    v3_6.close();
                    if ((v3_6 != null) && (!v3_6.isClosed())) {
                        v3_6.close();
                    }
                    return 0;
                }
            } catch (Throwable v9_4) {
                v1_1 = v3_6;
                if (v1_1 != 0) {
                    if (!v1_1.isClosed()) {
                        v1_1.close();
                    }
                }
                throw v9_4;
            } catch (Exception) {
                v1_1 = v3_6;
                if (v1_1 != 0) {
                    if (!v1_1.isClosed()) {
                        v1_1.close();
                    }
                }
                return 0;
            }
        } catch (Throwable v9_4) {
        } catch (Exception) {
        }
    }

Method com.e.a.h.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public boolean a(com.gaana.models.Albums$Album p9, int p10)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.getDB();
        int v1_0 = 0;
        if (p9 != null) {
            String v3_13 = new java.util.ArrayList();
            int v4_15 = p9.getArrListBusinessObj();
            String[] v5_21 = 0;
            while (v5_21 < v4_15.size()) {
                v3_13.add(Integer.valueOf(((com.gaana.models.BusinessObject) v4_15.get(v5_21)).getBusinessObjId()));
                v5_21++;
            }
            try {
                int v4_4 = new StringBuilder();
                v4_4.append("select track_id from ");
                v4_4.append(com.e.a.e$k.a);
                v4_4.append(" where ");
                v4_4.append("playlist_id");
                v4_4.append("=");
                v4_4.append(p10);
                int v4_6 = v0.rawQuery(v4_4.toString(), 0);
                try {
                    while (v4_6.moveToNext()) {
                        v3_13.remove(Integer.valueOf(v4_6.getInt(v4_6.getColumnIndex("track_id"))));
                    }
                } catch (Throwable v9_6) {
                    v1_0 = v4_6;
                    if (v1_0 != 0) {
                        if (!v1_0.isClosed()) {
                            v1_0.close();
                        }
                    }
                    throw v9_6;
                }
                if ((v4_6 == 0) || (v4_6.isClosed())) {
                    if (v3_13.size() == 0) {
                        return 0;
                    }
                } else {
                    v4_6.close();
                }
            } catch (Throwable v9_6) {
            } catch (Exception) {
                v4_6 = 0;
            }
        }
        try {
            String v3_12 = new StringBuilder();
            v3_12.append("select * from ");
            v3_12.append(com.e.a.e$h.a);
            v3_12.append(" where ");
            v3_12.append("playlist_id");
            v3_12.append("=");
            v3_12.append(p10);
            String v3_15 = v0.rawQuery(v3_12.toString(), 0);
            try {
                if (v3_15.moveToFirst()) {
                    String vtmp27 = v3_15.getString(v3_15.getColumnIndex("playlist_content"));
                    if (p9 != null) {
                        this.a(p9.getArrListBusinessObj(), p10, com.e.a.e$c.a);
                    } else {
                        p9 = ((com.gaana.models.Albums$Album) com.library.util.Serializer.deserialize(vtmp27));
                    }
                    int v4_2 = v3_15.getInt(v3_15.getColumnIndex("download_status"));
                    if ((v3_15 != null) && (!v3_15.isClosed())) {
                        v3_15.close();
                    }
                    try {
                        String v3_1 = new StringBuilder();
                        v3_1.append("select * from ");
                        v3_1.append(com.e.a.e$k.a);
                        v3_1.append(" where ");
                        v3_1.append("playlist_id");
                        v3_1.append("=");
                        v3_1.append(p10);
                        v3_1.append(" AND ");
                        v3_1.append("has_downloaded");
                        v3_1.append("=");
                        v3_1.append(0);
                        String v3_3 = v0.rawQuery(v3_1.toString(), 0);
                        try {
                            if (v3_3.moveToFirst()) {
                                if ((v3_3 != null) && (!v3_3.isClosed())) {
                                    v3_3.close();
                                }
                                if ((this.p() != -1) || (v4_2 == -2)) {
                                    if (v4_2 == -1) {
                                        v4_2 = 1;
                                    }
                                } else {
                                    v4_2 = 0;
                                }
                                v0.beginTransaction();
                                try {
                                    String[] v5_14 = new String[1];
                                    v5_14[0] = String.valueOf(p10);
                                    v0.delete("playlist_details", "playlist_id=?", v5_14);
                                } catch (Throwable v9_3) {
                                    v0.endTransaction();
                                    throw v9_3;
                                } catch (Exception) {
                                    v0.endTransaction();
                                    return 0;
                                }
                                if (this.h(p10) != 0) {
                                    p9.setBusinessObjId(String.valueOf(p10));
                                    p9.setArrListBusinessObj(0);
                                    this.a(p10, com.e.a.e$c.a, p9, v4_2);
                                }
                                v0.setTransactionSuccessful();
                                v0.endTransaction();
                                return 1;
                            } else {
                                v3_3.close();
                                if ((v3_3 != null) && (!v3_3.isClosed())) {
                                    v3_3.close();
                                }
                                return 0;
                            }
                        } catch (Throwable v9_1) {
                            v1_0 = v3_3;
                            if (v1_0 != 0) {
                                if (!v1_0.isClosed()) {
                                    v1_0.close();
                                }
                            }
                            throw v9_1;
                        } catch (Exception) {
                            v1_0 = v3_3;
                            if (v1_0 != 0) {
                                if (!v1_0.isClosed()) {
                                    v1_0.close();
                                }
                            }
                            return 0;
                        }
                    } catch (Throwable v9_1) {
                    } catch (Exception) {
                    }
                } else {
                    v3_15.close();
                    if ((v3_15 != null) && (!v3_15.isClosed())) {
                        v3_15.close();
                    }
                    return 0;
                }
            } catch (Throwable v9_7) {
                v1_0 = v3_15;
                if (v1_0 != 0) {
                    if (!v1_0.isClosed()) {
                        v1_0.close();
                    }
                }
                throw v9_7;
            } catch (Exception) {
                v1_0 = v3_15;
                if (v1_0 != 0) {
                    if (!v1_0.isClosed()) {
                        v1_0.close();
                    }
                }
                return 0;
            }
        } catch (Throwable v9_7) {
        } catch (Exception) {
        }
    }

Method com.e.a.h.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void a(String p9, com.gaana.models.BusinessObject p10)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.getDB();
        com.gaana.models.BusinessObject v1_0 = 0;
        try {
            android.database.Cursor v2_3 = new StringBuilder();
            v2_3.append("select * from ");
            v2_3.append(com.e.a.e$h.a);
            v2_3.append(" where ");
            v2_3.append("playlist_id");
            v2_3.append("=");
            v2_3.append(p9);
            android.database.Cursor v2_1 = v0.rawQuery(v2_3.toString(), 0);
            try {
                if (v2_1.moveToFirst()) {
                    com.gaana.models.BusinessObject v1_6 = ((com.gaana.models.BusinessObject) com.library.util.Serializer.deserialize(v2_1.getString(v2_1.getColumnIndex("playlist_content"))));
                    int v3_2 = com.e.a.e$c.b;
                    if (!(v1_6 instanceof com.gaana.models.Playlists$Playlist)) {
                        if ((v1_6 instanceof com.gaana.models.Albums$Album)) {
                            int v3_4 = ((com.gaana.models.Albums$Album) v1_6);
                            v3_4.setFavoriteCount(((com.gaana.models.Albums$Album) p10).getFavoriteCount());
                            v3_4.setName(p10.getName());
                            v3_2 = com.e.a.e$c.a;
                        }
                    } else {
                        String v4_6 = ((com.gaana.models.Playlists$Playlist) v1_6);
                        v4_6.setFavoriteCount(((com.gaana.models.Playlists$Playlist) p10).getFavoriteCount());
                        v4_6.setName(p10.getName());
                    }
                    boolean v10_5 = v2_1.getInt(v2_1.getColumnIndex("download_status"));
                    v0.beginTransaction();
                    try {
                        String[] v5_4 = new String[1];
                        v5_4[0] = String.valueOf(p9);
                        v0.delete("playlist_details", "playlist_id=?", v5_4);
                        this.a(Integer.parseInt(p9), v3_2, v1_6, v10_5);
                        v0.setTransactionSuccessful();
                    } catch (Exception) {
                        if (v2_1 == null) {
                            v0.endTransaction();
                            return;
                        } else {
                            if (v2_1.isClosed()) {
                                v0.endTransaction();
                                return;
                            } else {
                                v2_1.close();
                                v0.endTransaction();
                                return;
                            }
                        }
                    } catch (boolean v9_4) {
                        if (v2_1 != null) {
                            if (!v2_1.isClosed()) {
                                v2_1.close();
                            }
                        }
                        v0.endTransaction();
                        throw v9_4;
                    }
                    if ((v2_1 == null) || (v2_1.isClosed())) {
                        v0.endTransaction();
                        return;
                    } else {
                    }
                } else {
                    v2_1.close();
                    return;
                }
            } catch (Exception) {
                v1_0 = v2_1;
                if (v1_0 != null) {
                    if (!v1_0.isClosed()) {
                        v1_0.close();
                    }
                }
                return;
            }
        } catch (Exception) {
        }
    }

Method com.e.a.h.v() calling method android.database.sqlite.SQLiteDatabase.delete()


    private int v(int p5)
    {
        String[] v1_1 = new String[1];
        v1_1[0] = String.valueOf(p5);
        com.managers.DownloadManager.c().c(p5);
        return this.getDB().delete(com.e.a.e$h.a, "playlist_id=?", v1_1);
    }

Method com.e.a.h.u() calling method android.database.sqlite.SQLiteDatabase.delete()


    private int u(int p5)
    {
        String[] v1_1 = new String[1];
        v1_1[0] = String.valueOf(p5);
        com.managers.DownloadManager.c().b(p5);
        return this.getDB().delete(com.e.a.e$l.a, "track_id=?", v1_1);
    }

Method com.e.a.h.g() calling method android.database.sqlite.SQLiteDatabase.delete()


    private int g(int p5, int p6)
    {
        int v5_2;
        if (p5 != -9999) {
            String v3_3 = new String[2];
            v3_3[0] = String.valueOf(p5);
            v3_3[1] = String.valueOf(p6);
            v5_2 = v3_3;
        } else {
            v5_2 = new String[1];
            v5_2[0] = String.valueOf(p6);
        }
        int v5_3 = this.getDB().delete(com.e.a.e$k.a, "playlist_id=? and track_id=?", v5_2);
        if (v5_3 > 0) {
            com.managers.l.a().a(p6, com.e.a.e$c.c, 0);
        }
        return v5_3;
    }

Method com.e.a.h.a() calling method android.database.sqlite.SQLiteDatabase.delete()

Couldn't retrieve source code

Method com.e.a.f.d() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void d(com.gaana.models.Playlists$Playlist p7)
    {
        String v0_0 = p7.getOfflinePlaylistId();
        if (v0_0 <= 0) {
            v0_0 = this.a(p7.getBusinessObjId());
        }
        if (v0_0 > 0) {
            android.database.sqlite.SQLiteDatabase v7_1 = this.k();
            StringBuilder v3_1 = new StringBuilder();
            v3_1.append("id=");
            v3_1.append(v0_0);
            v7_1.delete(com.e.a.e$f.a, v3_1.toString(), 0);
            android.database.sqlite.SQLiteDatabase v7_2 = this.k();
            StringBuilder v3_4 = new StringBuilder();
            v3_4.append("id=");
            v3_4.append(v0_0);
            v7_2.delete(com.e.a.e$g.a, v3_4.toString(), 0);
        }
        return;
    }

Method com.e.a.f.b() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void b(long p9, java.util.ArrayList p11)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.k();
        try {
            v0.beginTransaction();
            java.util.Iterator v11_1 = p11.iterator();
        } catch (Throwable v9_1) {
            v0.endTransaction();
            throw v9_1;
        } catch (Exception) {
            v0.endTransaction();
            return;
        }
        while (v11_1.hasNext()) {
            String v1_1 = ((com.gaana.models.Tracks$Track) v11_1.next());
            String v4_0 = new String[2];
            v4_0[0] = String.valueOf(v1_1.getBusinessObjId());
            v4_0[1] = String.valueOf(p9);
            if (v0.delete(com.e.a.e$g.a, "track_id= ? AND id= ?", v4_0) == 0) {
                String[] v2_6 = new String[2];
                v2_6[0] = String.valueOf(com.utilities.Util.a(v1_1.getName(), v1_1.getDuration(), v1_1.getArtistNames()));
                v2_6[1] = String.valueOf(p9);
                v0.delete(com.e.a.e$g.a, "track_id= ? AND id= ?", v2_6);
            }
        }
        v0.setTransactionSuccessful();
        v0.endTransaction();
        return;
    }

Method com.e.a.f.b() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void b()
    {
        this.k().delete(com.e.a.e$g.a, 0, 0);
        this.k().delete(com.e.a.e$f.a, 0, 0);
        return;
    }

Method com.e.a.f.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void a(com.gaana.models.Playlists$Playlist p9, com.gaana.models.Tracks p10)
    {
        long v0 = p9.getOfflinePlaylistId();
        if (v0 <= 0) {
            v0 = this.a(p9.getBusinessObjId());
        }
        android.database.sqlite.SQLiteDatabase v9_1 = this.k();
        try {
            v9_1.beginTransaction();
            int v3_1 = new StringBuilder();
            v3_1.append("id=");
            v3_1.append(v0);
            v9_1.delete(com.e.a.e$g.a, v3_1.toString(), 0);
        } catch (java.util.ArrayList v10_2) {
            v9_1.endTransaction();
            throw v10_2;
        } catch (Exception) {
            v9_1.endTransaction();
            return;
        }
        if ((p10 != null) && (p10.getArrListBusinessObj() != null)) {
            java.util.ArrayList v10_1 = p10.getArrListBusinessObj();
            int v2_4 = (v10_1.size() - 1);
            while (v2_4 >= 0) {
                String v4_4 = ((com.gaana.models.Tracks$Track) v10_1.get(v2_4));
                android.content.ContentValues v5_1 = new android.content.ContentValues();
                v5_1.put("id", Long.valueOf(v0));
                v5_1.put("track_id", v4_4.getBusinessObjId());
                v5_1.put("track_metadata", com.services.n.a(v4_4));
                v5_1.put("added_on", Long.valueOf(System.currentTimeMillis()));
                v5_1.put("has_synced", Integer.valueOf(1));
                v9_1.insert(com.e.a.e$g.a, "id", v5_1);
                v2_4--;
            }
        }
        v9_1.setTransactionSuccessful();
        v9_1.endTransaction();
        return;
    }

Method com.e.a.d.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void a(String p5)
    {
        int v0_0 = 0;
        try {
            int v1 = this.getDB();
            try {
                v1.beginTransaction();
                String[] v2_1 = new String[1];
                v2_1[0] = String.valueOf(p5);
                v1.delete("feed_table", "feed_url=?", v2_1);
                v1.setTransactionSuccessful();
                v1.endTransaction();
            } catch (android.database.sqlite.SQLiteException v5_4) {
                v1.endTransaction();
                throw v5_4;
            } catch (android.database.sqlite.SQLiteException v5_3) {
                v0_0 = v1;
                com.google.devtools.build.android.desugar.runtime.ThrowableExtension.printStackTrace(v5_3);
                v0_0.endTransaction();
            }
            return;
        } catch (android.database.sqlite.SQLiteException v5_4) {
            v1 = v0_0;
        } catch (android.database.sqlite.SQLiteException v5_3) {
        }
    }

Method com.e.a.d.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void a()
    {
        android.database.sqlite.SQLiteDatabase v0 = this.getDB();
        try {
            v0.beginTransaction();
            v0.delete("feed_table", "feed_user_type!=2", 0);
        } catch (Throwable v1_1) {
            v0.setTransactionSuccessful();
            v0.endTransaction();
            throw v1_1;
        } catch (Exception) {
        }
        v0.setTransactionSuccessful();
        v0.endTransaction();
        return;
    }

Method com.e.a.d.c() calling method android.database.sqlite.SQLiteDatabase.delete()

Couldn't retrieve source code

Method com.e.a.c.b() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void b()
    {
        this.k().delete("local_favorite_table", 0, 0);
        return;
    }

Method com.e.a.c.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public long a(String p4, String p5)
    {
        String[] v1_1 = new String[2];
        v1_1[0] = p4;
        v1_1[1] = p5;
        return ((long) this.k().delete("local_favorite_table", "id=? AND type=?", v1_1));
    }

Method com.e.a.c.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public long a(com.gaana.models.BusinessObject p4, boolean p5, boolean p6, int p7)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.k();
        long v1 = 0;
        try {
            long v4_4;
            v0.beginTransaction();
        } catch (long v4_7) {
            v0.endTransaction();
            throw v4_7;
        } catch (long v4_6) {
            com.google.devtools.build.android.desugar.runtime.ThrowableExtension.printStackTrace(v4_6);
            v0.endTransaction();
            return v1;
        }
        if (p6 == null) {
            String[] v5_5 = new String[2];
            v5_5[0] = String.valueOf(p4.getBusinessObjId());
            v5_5[1] = this.b(p4);
            v4_4 = ((long) v0.delete("local_favorite_table", "id= ? AND type= ?", v5_5));
        } else {
            long v4_5 = this.c(p4);
            v4_5.put("favourite_status", Integer.valueOf(p5));
            v4_5.put("has_synced", Integer.valueOf(p7));
            v4_4 = v0.insert("local_favorite_table", 0, v4_5);
        }
        v1 = v4_4;
        v0.setTransactionSuccessful();
        v0.endTransaction();
        return v1;
    }

Method com.e.a.b.d() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void d()
    {
        android.database.sqlite.SQLiteDatabase v0 = this.getDB();
        try {
            v0.beginTransaction();
            v0.delete(com.e.a.e$a.a, 0, 0);
            v0.setTransactionSuccessful();
        } catch (Throwable v1_1) {
            v0.endTransaction();
            throw v1_1;
        } catch (Exception) {
        }
        v0.endTransaction();
        return;
    }

Method com.e.a.b.b() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void b(java.util.ArrayList p5)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.getDB();
        try {
            v0.beginTransaction();
            Throwable v5_2 = p5.iterator();
        } catch (Throwable v5_1) {
            v0.endTransaction();
            throw v5_1;
        } catch (Exception) {
            v0.endTransaction();
            return;
        }
        while (v5_2.hasNext()) {
            String[] v2_1 = new String[1];
            v2_1[0] = ((String) v5_2.next());
            v0.delete(com.e.a.e$a.a, "business_id=?", v2_1);
        }
        v0.setTransactionSuccessful();
        v0.endTransaction();
        return;
    }

Method com.e.a.b.b() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void b()
    {
        android.database.sqlite.SQLiteDatabase v0 = this.getDB();
        try {
            v0.beginTransaction();
            Throwable v1_2 = new String[1];
            v1_2[0] = String.valueOf(2);
            v0.delete(com.e.a.e$a.a, "sync_status=?", v1_2);
            v0.setTransactionSuccessful();
        } catch (Throwable v1_0) {
            v0.endTransaction();
            throw v1_0;
        } catch (Exception) {
        }
        v0.endTransaction();
        return;
    }

Method com.e.a.b.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void a(java.util.ArrayList p5)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.getDB();
        try {
            v0.beginTransaction();
            Throwable v5_2 = p5.iterator();
        } catch (Throwable v5_1) {
            v0.endTransaction();
            throw v5_1;
        } catch (Exception) {
            v0.endTransaction();
            return;
        }
        while (v5_2.hasNext()) {
            String[] v2_1 = new String[1];
            v2_1[0] = ((com.gaana.models.BusinessObject) v5_2.next()).getBusinessObjId();
            v0.delete(com.e.a.e$a.a, "business_id=?", v2_1);
        }
        v0.setTransactionSuccessful();
        v0.endTransaction();
        return;
    }

Method com.e.a.b.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    public void a(String p4)
    {
        android.database.sqlite.SQLiteDatabase v0 = this.getDB();
        try {
            v0.beginTransaction();
            String[] v1_1 = new String[1];
            v1_1[0] = String.valueOf(p4);
            v0.delete(com.e.a.e$a.a, "business_id=?", v1_1);
            v0.setTransactionSuccessful();
        } catch (Throwable v4_1) {
            v0.endTransaction();
            throw v4_1;
        } catch (Exception) {
        }
        v0.endTransaction();
        return;
    }

Method com.e.a.b.a() calling method android.database.sqlite.SQLiteDatabase.delete()


    private void a(int p8, int p9, int p10, int p11)
    {
        int v4_1;
        String v3_2;
        android.database.sqlite.SQLiteDatabase v0 = this.getDB();
        android.content.ContentValues v1_3 = new StringBuilder();
        v1_3.append("SELECT * FROM ");
        v1_3.append(com.e.a.e$a.a);
        v1_3.append(" WHERE ");
        v1_3.append("business_id");
        v1_3.append("=?");
        android.content.ContentValues v1_0 = v1_3.toString();
        String v3_0 = new String[1];
        v3_0[0] = String.valueOf(p8);
        android.content.ContentValues v1_2 = v0.rawQuery(v1_0, v3_0);
        if (!v1_2.moveToFirst()) {
            v3_2 = 0;
            v4_1 = 0;
        } else {
            v3_2 = v1_2.getInt(v1_2.getColumnIndex("sync_status"));
            v4_1 = 1;
        }
        v1_2.close();
        try {
            if ((v3_2 != 1) || (p11 != 0)) {
                android.content.ContentValues v1_5 = new android.content.ContentValues();
                v1_5.put("business_id", Integer.valueOf(p8));
                v1_5.put("entity_type", Integer.valueOf(p9));
                v1_5.put("sync_type", Integer.valueOf(p10));
                v1_5.put("sync_status", Integer.valueOf(p11));
                if (v4_1 == 0) {
                    v0.insert(com.e.a.e$a.a, 0, v1_5);
                } else {
                    int v9_5 = new String[1];
                    v9_5[0] = String.valueOf(p8);
                    v0.update(com.e.a.e$a.a, v1_5, "business_id=?", v9_5);
                }
            } else {
                int v9_6 = new String[1];
                v9_6[0] = String.valueOf(p8);
                v0.delete(com.e.a.e$a.a, "business_id=?", v9_6);
                return;
            }
        } catch (String v8_6) {
            throw v8_6;
        } catch (Exception) {
        }
        return;
    }

Method com.facebook.ads.internal.g.g.g() calling method android.database.sqlite.SQLiteDatabase.delete()


    protected boolean g()
    {
        if (this.f().delete(this.a(), 0, 0) <= 0) {
            return 0;
        } else {
            return 1;
        }
    }

Method com.e.a.h.x() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    public int x()
    {
        try {
            int v0_0 = this.getDB();
            String v1_2 = new StringBuilder();
            v1_2.append("SELECT COUNT(*) FROM ");
            v1_2.append(com.e.a.e$l.a);
            v1_2.append(" where ");
            v1_2.append("offline_play_count");
            v1_2.append(" = 0");
            v1_2.append(" AND ");
            v1_2.append("has_downloaded");
            v1_2.append(" = ");
            v1_2.append(1);
            return ((int) v0_0.compileStatement(v1_2.toString()).simpleQueryForLong());
        } catch (android.database.sqlite.SQLiteDoneException) {
            return 0;
        }
    }

Method com.e.a.h.l() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    public int l()
    {
        try {
            int v0_0 = this.getDB();
            String v1_2 = new StringBuilder();
            v1_2.append("SELECT COUNT(*) FROM ");
            v1_2.append(com.e.a.e$l.a);
            v1_2.append(" where has_downloaded = ");
            v1_2.append(-2);
            return ((int) v0_0.compileStatement(v1_2.toString()).simpleQueryForLong());
        } catch (android.database.sqlite.SQLiteDoneException) {
            return 0;
        }
    }

Method com.e.a.h.k() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    public int k()
    {
        try {
            long v1_2 = this.getDB();
            String v2_2 = new StringBuilder();
            v2_2.append("SELECT COUNT(*) FROM ");
            v2_2.append(com.e.a.e$l.a);
            v2_2.append(" where has_downloaded = ");
            v2_2.append(0);
            int v0_1 = ((int) v1_2.compileStatement(v2_2.toString()).simpleQueryForLong());
            return v0_1;
        } catch (android.database.sqlite.SQLiteDoneException) {
            return v0_1;
        }
    }

Method com.e.a.h.j() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    public int j()
    {
        try {
            int v0_0 = this.getDB();
            String v1_2 = new StringBuilder();
            v1_2.append("SELECT COUNT(*) FROM ");
            v1_2.append(com.e.a.e$k.a);
            v1_2.append(" where has_downloaded=-1");
            return ((int) v0_0.compileStatement(v1_2.toString()).simpleQueryForLong());
        } catch (android.database.sqlite.SQLiteDoneException) {
            return 0;
        }
    }

Method com.e.a.h.i() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    public int i(int p4)
    {
        try {
            long v0_0 = this.getDB();
            StringBuilder v1_1 = new StringBuilder();
            v1_1.append("SELECT COUNT(*) FROM track_details where has_downloaded=1 AND playlist_id=");
            v1_1.append(p4);
            return ((int) v0_0.compileStatement(v1_1.toString()).simpleQueryForLong());
        } catch (android.database.sqlite.SQLiteDoneException) {
            return 0;
        }
    }

Method com.e.a.h.i() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    public int i()
    {
        try {
            int v0_0 = this.getDB();
            String v1_1 = new StringBuilder();
            v1_1.append("SELECT COUNT(*) FROM ");
            v1_1.append(com.e.a.e$l.a);
            return ((int) v0_0.compileStatement(v1_1.toString()).simpleQueryForLong());
        } catch (android.database.sqlite.SQLiteDoneException) {
            return 0;
        }
    }

Method com.e.a.h.h() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    public int h(int p4)
    {
        try {
            long v0_0 = this.getDB();
            StringBuilder v1_1 = new StringBuilder();
            v1_1.append("SELECT COUNT(*) FROM track_details where playlist_id=");
            v1_1.append(p4);
            return ((int) v0_0.compileStatement(v1_1.toString()).simpleQueryForLong());
        } catch (android.database.sqlite.SQLiteDoneException) {
            return 0;
        }
    }

Method com.e.a.h.h() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    public int h()
    {
        try {
            int v0_0 = this.getDB();
            String v1_2 = new StringBuilder();
            v1_2.append("SELECT COUNT(*) FROM ");
            v1_2.append(com.e.a.e$l.a);
            v1_2.append(" where has_downloaded=1");
            return ((int) v0_0.compileStatement(v1_2.toString()).simpleQueryForLong());
        } catch (android.database.sqlite.SQLiteDoneException) {
            return 0;
        }
    }

Method com.e.a.h.d() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    public int d(int p4)
    {
        try {
            long v0_0 = this.getDB();
            StringBuilder v1_1 = new StringBuilder();
            v1_1.append("SELECT playlist_type FROM ");
            v1_1.append(com.e.a.e$h.a);
            v1_1.append(" where ");
            v1_1.append("playlist_id");
            v1_1.append("=");
            v1_1.append(p4);
            return ((int) v0_0.compileStatement(v1_1.toString()).simpleQueryForLong());
        } catch (android.database.sqlite.SQLiteDoneException) {
            return 0;
        }
    }

Method com.e.a.h.c() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    public int c(int p4)
    {
        try {
            long v0_0 = this.getDB();
            StringBuilder v1_1 = new StringBuilder();
            v1_1.append("SELECT COUNT(*) FROM track_details where track_id =");
            v1_1.append(p4);
            return ((int) v0_0.compileStatement(v1_1.toString()).simpleQueryForLong());
        } catch (android.database.sqlite.SQLiteDoneException) {
            return 0;
        }
    }

Method com.e.a.h.b() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    public int b(int p4)
    {
        try {
            long v0_0 = this.getDB();
            StringBuilder v1_1 = new StringBuilder();
            v1_1.append("SELECT COUNT(*) FROM ");
            v1_1.append(com.e.a.e$l.a);
            v1_1.append(" where has_downloaded=");
            v1_1.append(p4);
            v1_1.append(" and smart_download=1");
            return ((int) v0_0.compileStatement(v1_1.toString()).simpleQueryForLong());
        } catch (android.database.sqlite.SQLiteDoneException) {
            return 0;
        }
    }

Method com.e.a.h.a() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    public boolean a(String p5)
    {
        int v0 = 0;
        try {
            long v1_1 = this.getDB();
            StringBuilder v2_1 = new StringBuilder();
            v2_1.append("SELECT COUNT(*) FROM ");
            v2_1.append(com.e.a.e$l.a);
            v2_1.append(" where has_downloaded=1 and smart_download=1 and track_id=");
            v2_1.append(p5);
        } catch (android.database.sqlite.SQLiteDoneException) {
            return 0;
        }
        if (((int) v1_1.compileStatement(v2_1.toString()).simpleQueryForLong()) != 0) {
            v0 = 1;
        }
        return v0;
    }

Method com.e.a.f.g() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    public int g(String p4)
    {
        try {
            if (Integer.parseInt(p4) <= 0) {
                int v4_7 = (0 - Integer.parseInt(p4));
                long v0_4 = this.k();
                StringBuilder v1_3 = new StringBuilder();
                v1_3.append("SELECT has_synced FROM ");
                v1_3.append(com.e.a.e$f.a);
                v1_3.append(" where ");
                v1_3.append("id");
                v1_3.append("=");
                v1_3.append(v4_7);
                return ((int) v0_4.compileStatement(v1_3.toString()).simpleQueryForLong());
            } else {
                long v0_2 = this.k();
                StringBuilder v1_1 = new StringBuilder();
                v1_1.append("SELECT has_synced FROM ");
                v1_1.append(com.e.a.e$f.a);
                v1_1.append(" where ");
                v1_1.append("playlist_id");
                v1_1.append("=");
                v1_1.append(p4);
                return ((int) v0_2.compileStatement(v1_1.toString()).simpleQueryForLong());
            }
        } catch (android.database.sqlite.SQLiteDoneException) {
            return -3;
        }
    }

Method com.e.a.f.a() calling method android.database.sqlite.SQLiteDatabase.compileStatement()

Couldn't retrieve source code

Method com.e.a.f.j() calling method android.database.sqlite.SQLiteDatabase.compileStatement()

Couldn't retrieve source code

Method com.e.a.d.e() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    private String e()
    {
        try {
            return this.getDB().compileStatement("SELECT feed_url FROM feed_table WHERE feed_id=(SELECT MIN(feed_id) FROM feed_table WHERE is_dynamic_cache=1)").simpleQueryForString();
        } catch (android.database.sqlite.SQLiteDoneException) {
            return 0;
        }
    }

Method com.e.a.d.d() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    private int d()
    {
        try {
            return ((int) this.getDB().compileStatement("SELECT COUNT(*) FROM feed_table WHERE is_dynamic_cache=1").simpleQueryForLong());
        } catch (android.database.sqlite.SQLiteDoneException) {
            return 0;
        }
    }

Method com.e.a.b.a() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    public int a(int p4)
    {
        long v0_1 = new StringBuilder();
        v0_1.append("select COUNT(*) from ");
        v0_1.append(com.e.a.e$a.a);
        v0_1.append(" where ");
        v0_1.append("sync_status");
        v0_1.append("=");
        v0_1.append(1);
        v0_1.append(" AND ");
        v0_1.append("entity_type");
        v0_1.append("=");
        v0_1.append(p4);
        v0_1.append(" AND ");
        v0_1.append("sync_type");
        v0_1.append("=");
        v0_1.append(1);
        try {
            return ((int) this.getDB().compileStatement(v0_1.toString()).simpleQueryForLong());
        } catch (android.database.sqlite.SQLiteDoneException) {
            return 0;
        }
    }

Method android.arch.persistence.a.a.a.a() calling method android.database.sqlite.SQLiteDatabase.compileStatement()


    public android.arch.persistence.a.f a(String p3)
    {
        return new android.arch.persistence.a.a.e(this.c.compileStatement(p3));
    }

Method com.helpshift.support.search.a.b.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public com.helpshift.support.search.b a(String p13)
    {
        com.helpshift.support.search.b v1_0 = 0;
        try {
            int v3_1 = ark>com.helpshift.support.search.a.bark>.a.getWritableDatabase();
            com.helpshift.support.search.b v5_0 = new String[3];
            v5_0[0] = "token";
            v5_0[1] = "type";
            v5_0[2] = "score";
            int v8_0 = new String[1];
            v8_0[0] = p13;
            Throwable v13_2 = v3_1.query("search_token_table", v5_0, "token=?", v8_0, 0, 0, 0);
            try {
                if (v13_2.getCount() > 0) {
                    v13_2.moveToFirst();
                    v1_0 = new com.helpshift.support.search.b(v13_2.getString(v13_2.getColumnIndexOrThrow("token")), v13_2.getInt(v13_2.getColumnIndexOrThrow("type")), this.b(v13_2.getString(v13_2.getColumnIndexOrThrow("score"))));
                }
            } catch (String v2_4) {
                com.helpshift.util.l.c("Helpshift_SearchToknDao", "Error occurred when calling get method", v2_4);
                if (v13_2 == null) {
                    return v1_0;
                } else {
                    v13_2.close();
                    return v1_0;
                }
            }
            if (v13_2 == null) {
                return v1_0;
            } else {
            }
        } catch (Throwable v13_3) {
            com.helpshift.support.search.b v1_1 = v13_3;
            v13_2 = 0;
            if (v13_2 != null) {
                v13_2.close();
            }
            throw v1_1;
        } catch (String v2_4) {
            v13_2 = 0;
        }
    }

Method com.helpshift.support.h.i.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public java.util.List a()
    {
        Throwable v0_1 = new java.util.ArrayList();
        try {
            int v3_0 = this.a.getReadableDatabase().query("sections", 0, 0, 0, 0, 0, 0);
            try {
                v3_0.moveToFirst();
            } catch (com.helpshift.support.Section v2_0) {
                com.helpshift.util.l.c("HelpShiftDebug", "Error in getAllSections", v2_0);
                if (v3_0 == 0) {
                    return v0_1;
                } else {
                    v3_0.close();
                    return v0_1;
                }
            }
            while (!v3_0.isAfterLast()) {
                v0_1.add(ark>com.helpshift.support.h.iark>.a(v3_0));
                v3_0.moveToNext();
            }
            if (v3_0 == 0) {
                return v0_1;
            } else {
            }
        } catch (Throwable v0_2) {
            v3_0 = 0;
            if (v3_0 != 0) {
                v3_0.close();
            }
            throw v0_2;
        } catch (int v3_1) {
            v3_0 = 0;
            v2_0 = v3_1;
        }
    }

Method com.helpshift.support.h.i.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public com.helpshift.support.Section a(String p13)
    {
        if ((p13 != null) && (!p13.equals(""))) {
            com.helpshift.support.Section v1_1 = 0;
            try {
                String v3_1 = this.a.getReadableDatabase();
                String[] v7 = new String[1];
                v7[0] = p13;
                Throwable v13_1 = v3_1.query("sections", 0, "publish_id = ?", v7, 0, 0, 0);
                try {
                    v13_1.moveToFirst();
                } catch (com.helpshift.support.Section v2_2) {
                    com.helpshift.util.l.c("HelpShiftDebug", "Error in getSection", v2_2);
                    if (v13_1 == null) {
                        return v1_1;
                    } else {
                        v13_1.close();
                        return v1_1;
                    }
                }
                if (!v13_1.isAfterLast()) {
                    v1_1 = ark>com.helpshift.support.h.iark>.a(v13_1);
                }
                if (v13_1 == null) {
                    return v1_1;
                } else {
                }
            } catch (Throwable v13_2) {
                if (v1_1 != null) {
                    v1_1.close();
                }
                throw v13_2;
            } catch (com.helpshift.support.Section v2_2) {
                v13_1 = 0;
            }
        } else {
            return new com.helpshift.support.Section();
        }
    }

Method com.helpshift.support.h.d.c() calling method android.database.sqlite.SQLiteDatabase.query()


    public java.util.List c(String p14)
    {
        if (!android.text.TextUtils.isEmpty(p14)) {
            Throwable v0_3 = new java.util.ArrayList();
            com.helpshift.support.Faq v2_3 = 0;
            try {
                String v4_1 = this.a.getReadableDatabase();
                String[] v8 = new String[1];
                v8[0] = p14;
                Throwable v14_1 = v4_1.query("faqs", 0, "section_id = ?", v8, 0, 0, 0);
                try {
                    if (v14_1.moveToFirst()) {
                        while (!v14_1.isAfterLast()) {
                            v0_3.add(com.helpshift.support.h.d.a(v14_1));
                            v14_1.moveToNext();
                        }
                    }
                } catch (Throwable v0_2) {
                    v2_3 = v14_1;
                    if (v2_3 != null) {
                        v2_3.close();
                    }
                    throw v0_2;
                } catch (com.helpshift.support.Faq v2_2) {
                    v2_3 = v14_1;
                    Throwable v14_2 = v2_2;
                    com.helpshift.util.l.c("HelpShiftDebug", "Error in getFaqsDataForSection", v14_2);
                    if (v2_3 == null) {
                        return v0_3;
                    } else {
                        v2_3.close();
                        return v0_3;
                    }
                }
                if (v14_1 == null) {
                    return v0_3;
                } else {
                    v14_1.close();
                    return v0_3;
                }
            } catch (Throwable v0_2) {
            } catch (Throwable v14_2) {
            }
        } else {
            return new java.util.ArrayList();
        }
    }

Method com.helpshift.support.h.d.b() calling method android.database.sqlite.SQLiteDatabase.query()


    public com.helpshift.support.Faq b(String p13)
    {
        if (!android.text.TextUtils.isEmpty(p13)) {
            com.helpshift.support.Faq v1_1 = 0;
            try {
                String v3_1 = this.a.getReadableDatabase();
                String[] v7 = new String[1];
                v7[0] = p13;
                Throwable v13_1 = v3_1.query("faqs", 0, "publish_id = ?", v7, 0, 0, 0);
                try {
                    if (v13_1.moveToFirst()) {
                        v1_1 = com.helpshift.support.h.d.a(v13_1);
                    }
                } catch (com.helpshift.support.Faq v2_2) {
                    com.helpshift.util.l.c("HelpShiftDebug", "Error in getFaq", v2_2);
                    if (v13_1 == null) {
                        return v1_1;
                    } else {
                        v13_1.close();
                        return v1_1;
                    }
                }
                if (v13_1 == null) {
                    return v1_1;
                } else {
                }
            } catch (Throwable v13_2) {
                if (v1_1 != null) {
                    v1_1.close();
                }
                throw v13_2;
            } catch (com.helpshift.support.Faq v2_2) {
                v13_1 = 0;
            }
        } else {
            return new com.helpshift.support.Faq();
        }
    }

Method com.helpshift.support.h.d.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public java.util.List a()
    {
        Throwable v0_1 = new java.util.ArrayList();
        try {
            String[] v6 = new String[1];
            v6[0] = "publish_id";
            int v3_0 = this.a.getReadableDatabase().query("faqs", v6, 0, 0, 0, 0, 0);
            try {
                if (v3_0.moveToFirst()) {
                    while (!v3_0.isAfterLast()) {
                        v0_1.add(v3_0.getString(v3_0.getColumnIndex("publish_id")));
                        v3_0.moveToNext();
                    }
                }
            } catch (String v2_0) {
                com.helpshift.util.l.c("HelpShiftDebug", "Error in getFaqsDataForSection", v2_0);
                if (v3_0 == 0) {
                    return v0_1;
                } else {
                    v3_0.close();
                    return v0_1;
                }
            }
            if (v3_0 == 0) {
                return v0_1;
            } else {
            }
        } catch (Throwable v0_2) {
            v3_0 = 0;
            if (v3_0 != 0) {
                v3_0.close();
            }
            throw v0_2;
        } catch (int v3_1) {
            v3_0 = 0;
            v2_0 = v3_1;
        }
    }

Method com.helpshift.q.b.a() calling method android.database.sqlite.SQLiteDatabase.query()

Couldn't retrieve source code

Method com.helpshift.campaigns.l.j.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public java.util.ArrayList a(Integer p14)
    {
        Throwable v0_1 = new java.util.ArrayList();
        com.helpshift.campaigns.models.f v2_1 = 0;
        try {
            String v4_1 = this.a.getReadableDatabase();
            String[] v8 = new String[2];
            v8[0] = String.valueOf(p14);
            v8[1] = String.valueOf(0);
            Throwable v14_3 = v4_1.query("sessions", 0, "sync_status=? AND end_time>?", v8, 0, 0, 0);
            try {
                if (v14_3.moveToFirst()) {
                    while (!v14_3.isAfterLast()) {
                        v0_1.add(this.a(v14_3));
                        v14_3.moveToNext();
                    }
                }
            } catch (Throwable v0_2) {
                v2_1 = v14_3;
                if (v2_1 != null) {
                    v2_1.close();
                }
                throw v0_2;
            } catch (com.helpshift.campaigns.models.f v2_3) {
                v2_1 = v14_3;
                Throwable v14_4 = v2_3;
                com.helpshift.util.l.c("Helpshift_SessionDB", "Error getting all sessions", v14_4);
                if (v2_1 == null) {
                    return v0_1;
                } else {
                    v2_1.close();
                    return v0_1;
                }
            }
            if (v14_3 == null) {
                return v0_1;
            } else {
                v14_3.close();
                return v0_1;
            }
        } catch (Throwable v0_2) {
        } catch (Throwable v14_4) {
        }
    }

Method com.helpshift.campaigns.l.h.c() calling method android.database.sqlite.SQLiteDatabase.query()


    public java.util.HashMap c(String p14)
    {
        java.util.HashMap v1_0 = 0;
        if (!android.text.TextUtils.isEmpty(p14)) {
            try {
                Exception v0_1 = this.a.getReadableDatabase().query(this.a.a(this.f(p14)), 0, 0, 0, 0, 0, 0);
                try {
                    if (v0_1.moveToFirst()) {
                        java.util.HashMap v3_1 = new java.util.HashMap();
                        try {
                            while (!v0_1.isAfterLast()) {
                                v3_1.put(v0_1.getString(0), this.a(v0_1));
                                v0_1.moveToNext();
                            }
                        } catch (java.util.HashMap v1_2) {
                            v1_0 = v0_1;
                            Exception v0_2 = v1_2;
                            StringBuilder v5_2 = new StringBuilder();
                            v5_2.append("Error getAllProperties for identifier : ");
                            v5_2.append(p14);
                            com.helpshift.util.l.c("Helpshift_PropertyDB", v5_2.toString(), v0_2);
                            if (v1_0 != null) {
                                v1_0.close();
                            }
                            v1_0 = v3_1;
                            return v1_0;
                        }
                        v1_0 = v3_1;
                    }
                } catch (Throwable v14_2) {
                    v1_0 = v0_1;
                    if (v1_0 != null) {
                        v1_0.close();
                    }
                    throw v14_2;
                } catch (java.util.HashMap v3_4) {
                    v1_0 = v0_1;
                    v0_2 = v3_4;
                    v3_1 = 0;
                }
                if (v0_1 == null) {
                    return v1_0;
                } else {
                    v0_1.close();
                    return v1_0;
                }
            } catch (Throwable v14_2) {
            } catch (Exception v0_2) {
                v3_1 = 0;
            }
        } else {
            return 0;
        }
    }

Method com.helpshift.campaigns.l.h.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public com.helpshift.campaigns.models.PropertyValue a(String p12, String p13)
    {
        com.helpshift.campaigns.models.PropertyValue v1 = 0;
        if ((!android.text.TextUtils.isEmpty(p12)) && (!android.text.TextUtils.isEmpty(p13))) {
            int v13_2 = this.f(p13);
            try {
                String v3_0 = this.a.getReadableDatabase();
                String[] v7 = new String[1];
                v7[0] = p12;
                int v13_1 = v3_0.query(this.a.a(v13_2), 0, "key=?", v7, 0, 0, 0);
                try {
                    if (v13_1.moveToFirst()) {
                        v1 = this.a(v13_1);
                    }
                } catch (com.helpshift.campaigns.models.PropertyValue v2_4) {
                    StringBuilder v4_2 = new StringBuilder();
                    v4_2.append("Error getProperty key: ");
                    v4_2.append(p12);
                    com.helpshift.util.l.c("Helpshift_PropertyDB", v4_2.toString(), v2_4);
                    if (v13_1 == 0) {
                        return v1;
                    } else {
                        v13_1.close();
                        return v1;
                    }
                }
                if (v13_1 == 0) {
                    return v1;
                } else {
                }
            } catch (Throwable v12_1) {
                v13_1 = 0;
                if (v13_1 != 0) {
                    v13_1.close();
                }
                throw v12_1;
            } catch (com.helpshift.campaigns.models.PropertyValue v2_4) {
                v13_1 = 0;
            }
        } else {
            return 0;
        }
    }

Method com.helpshift.campaigns.l.a.d() calling method android.database.sqlite.SQLiteDatabase.query()


    public com.helpshift.campaigns.models.b d(String p12)
    {
        com.helpshift.campaigns.models.b v1 = 0;
        if (!android.text.TextUtils.isEmpty(p12)) {
            try {
                com.helpshift.campaigns.models.b v3_3 = this.a.getReadableDatabase();
                String[] v7 = new String[1];
                v7[0] = p12;
                int v2_1 = v3_3.query("campaigns", 0, "identifier=?", v7, 0, 0, 0);
                try {
                    if (v2_1.moveToFirst()) {
                        v1 = this.a(v2_1);
                    }
                } catch (com.helpshift.campaigns.models.b v3_0) {
                    StringBuilder v5_2 = new StringBuilder();
                    v5_2.append("Exception while fetching campaign for id : ");
                    v5_2.append(p12);
                    com.helpshift.util.l.c("Helpshift_CampDBStore", v5_2.toString(), v3_0);
                    if (v2_1 == 0) {
                        return v1;
                    } else {
                        v2_1.close();
                        return v1;
                    }
                }
                if (v2_1 == 0) {
                    return v1;
                } else {
                }
            } catch (Throwable v12_1) {
                v2_1 = 0;
                if (v2_1 != 0) {
                    v2_1.close();
                }
                throw v12_1;
            } catch (com.helpshift.campaigns.models.b v3_0) {
                v2_1 = 0;
            }
        } else {
            return 0;
        }
    }

Method com.helpshift.campaigns.l.a.c() calling method android.database.sqlite.SQLiteDatabase.query()


    public java.util.List c(String p13)
    {
        java.util.ArrayList v1_0 = 0;
        if (!android.text.TextUtils.isEmpty(p13)) {
            try {
                String v3_1 = this.a.getReadableDatabase();
                String[] v7 = new String[1];
                v7[0] = p13;
                Exception v13_1 = v3_1.query("campaigns", 0, "user_identifier=?", v7, 0, 0, "created_at DESC");
                try {
                    if (v13_1.moveToFirst()) {
                        java.util.ArrayList v2_1 = new java.util.ArrayList();
                        try {
                            while (!v13_1.isAfterLast()) {
                                v2_1.add(this.a(v13_1));
                                v13_1.moveToNext();
                            }
                        } catch (java.util.ArrayList v1_2) {
                            v1_0 = v13_1;
                            Exception v13_2 = v1_2;
                            com.helpshift.util.l.c("Helpshift_CampDBStore", "Exception in retrieving all the campaigns ", v13_2);
                            if (v1_0 != null) {
                                v1_0.close();
                            }
                            v1_0 = v2_1;
                            return v1_0;
                        }
                        v1_0 = v2_1;
                    }
                } catch (java.util.ArrayList v1_3) {
                    v1_0 = v13_1;
                    Exception v13_3 = v1_3;
                    if (v1_0 != null) {
                        v1_0.close();
                    }
                    throw v13_3;
                } catch (java.util.ArrayList v2_4) {
                    v1_0 = v13_1;
                    v13_2 = v2_4;
                    v2_1 = 0;
                }
                if (v13_1 == null) {
                    return v1_0;
                } else {
                    v13_1.close();
                    return v1_0;
                }
            } catch (Exception v13_3) {
            } catch (Exception v13_2) {
                v2_1 = 0;
            }
        } else {
            return 0;
        }
    }

Method com.inmobi.commons.core.d.b.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public final declared_synchronized java.util.List a(String p14, String[] p15, String p16, String[] p17, String p18, String p19, String p20, String p21)
    {
        try {
            Throwable v2_2 = new java.util.ArrayList();
            try {
                int v4_0 = this.f.query(p14, p15, p16, p17, p18, p19, p20, p21);
                try {
                    if (v4_0.moveToFirst()) {
                        do {
                            String v3_2 = new android.content.ContentValues();
                            android.database.DatabaseUtils.cursorRowToContentValues(v4_0, v3_2);
                            v2_2.add(v3_2);
                        } while(v4_0.moveToNext());
                    }
                } catch (Exception v0_0) {
                    new StringBuilder("SDK encountered unexpected error in DbStore.getRows() method; ").append(v0_0.getMessage());
                    if (v4_0 == 0) {
                        return v2_2;
                    } else {
                        v4_0.close();
                        return v2_2;
                    }
                }
                v4_0.close();
                if (v4_0 == 0) {
                    return v2_2;
                } else {
                }
            } catch (Exception v0_1) {
                Throwable v2_1 = v0_1;
                v4_0 = 0;
                if (v4_0 != 0) {
                    v4_0.close();
                }
                throw v2_1;
            } catch (Exception v0_0) {
                v4_0 = 0;
            } catch (Exception v0_2) {
                v2_1 = v0_2;
            }
        } catch (Exception v0_3) {
            throw v0_3;
        }
    }

Method com.helpshift.support.h.g.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public declared_synchronized com.helpshift.account.dao.ProfileDTO a(String p12)
    {
        com.helpshift.account.dao.ProfileDTO v0_0 = 0;
        try {
            String v2_1 = this.a.getReadableDatabase();
            String[] v6 = new String[1];
            v6[0] = p12;
            Throwable v12_1 = v2_1.query("profiles", 0, "IDENTIFIER=?", v6, 0, 0, 0);
            try {
                if (v12_1.moveToFirst()) {
                    v0_0 = this.b(v12_1);
                }
            } catch (com.helpshift.account.dao.ProfileDTO v1_1) {
                com.helpshift.util.l.c("Helpshift_ProfileDB", "Error in getProfile", v1_1);
                if (v12_1 == null) {
                    return v0_0;
                } else {
                    v12_1.close();
                    return v0_0;
                }
            }
            if (v12_1 == null) {
                return v0_0;
            } else {
            }
        } catch (Throwable v12_2) {
            if (v0_0 != null) {
                v0_0.close();
            }
            throw v12_2;
        } catch (com.helpshift.account.dao.ProfileDTO v1_1) {
            v12_1 = 0;
        } catch (com.helpshift.account.dao.ProfileDTO v0_1) {
            v0_0 = v12_1;
            v12_2 = v0_1;
        }
    }

Method com.helpshift.common.a.a.c() calling method android.database.sqlite.SQLiteDatabase.query()


    public declared_synchronized java.util.List c(long p13)
    {
        try {
            java.util.ArrayList v0_1 = new java.util.ArrayList();
            String v1 = 0;
            String v2_4 = new StringBuilder();
            this.y.getClass();
            v2_4.append("conversation_id");
            v2_4.append(" = ?");
            String v7 = v2_4.toString();
            String[] v8 = new String[1];
            v8[0] = String.valueOf(p13);
            try {
                String v13_3 = this.z.getReadableDatabase().query("messages", 0, v7, v8, 0, 0, 0);
                try {
                    if (v13_3.moveToFirst()) {
                        do {
                            v0_1.add(this.c(v13_3));
                        } while(v13_3.moveToNext());
                    }
                } catch (boolean v14_2) {
                    v1 = v13_3;
                    if (v1 != null) {
                        v1.close();
                    }
                    throw v14_2;
                } catch (boolean v14_0) {
                    v1 = v13_3;
                    com.helpshift.util.l.c("Helpshift_ConverDB", "Error in read messages", v14_0);
                    if (v1 == null) {
                        return v0_1;
                    } else {
                        v1.close();
                        return v0_1;
                    }
                }
                if (v13_3 == null) {
                    return v0_1;
                } else {
                    v13_3.close();
                    return v0_1;
                }
            } catch (boolean v14_2) {
            } catch (boolean v14_0) {
            }
        } catch (String v13_5) {
            throw v13_5;
        }
    }

Method com.helpshift.common.a.a.b() calling method android.database.sqlite.SQLiteDatabase.query()


    public declared_synchronized com.helpshift.conversation.dto.a.a b(long p12)
    {
        try {
            com.helpshift.conversation.dto.a.a v0_1 = new StringBuilder();
            this.y.getClass();
            v0_1.append("profile_id");
            v0_1.append(" = ?");
            String v5 = v0_1.toString();
            String[] v6 = new String[1];
            v6[0] = String.valueOf(p12);
            com.helpshift.conversation.dto.a.a v12_2 = 0;
            try {
                String v2_0 = this.z.getReadableDatabase();
                this.y.getClass();
                Throwable v13_2 = v2_0.query("conversation_inbox", 0, v5, v6, 0, 0, 0);
                try {
                    if (v13_2.moveToFirst()) {
                        v12_2 = this.a(v13_2);
                    }
                } catch (com.helpshift.conversation.dto.a.a v0_4) {
                    com.helpshift.util.l.c("Helpshift_ConverDB", "Error in read conversation inbox record", v0_4);
                    if (v13_2 == null) {
                        return v12_2;
                    } else {
                        v13_2.close();
                        return v12_2;
                    }
                }
                if (v13_2 == null) {
                    return v12_2;
                } else {
                }
            } catch (Throwable v13_3) {
                if (v12_2 != null) {
                    v12_2.close();
                }
                throw v13_3;
            } catch (com.helpshift.conversation.dto.a.a v0_4) {
                v13_2 = 0;
            } catch (com.helpshift.conversation.dto.a.a v12_3) {
                v13_3 = v12_3;
                v12_2 = v13_2;
            }
        } catch (com.helpshift.conversation.dto.a.a v12_4) {
            throw v12_4;
        }
    }

Method com.helpshift.common.a.a.b() calling method android.database.sqlite.SQLiteDatabase.query()


    public declared_synchronized com.helpshift.conversation.activeconversation.message.j b(String p12)
    {
        try {
            Throwable v0_1 = new StringBuilder();
            this.y.getClass();
            v0_1.append("server_id");
            v0_1.append(" = ?");
            String v5 = v0_1.toString();
            String[] v6 = new String[1];
            v6[0] = String.valueOf(p12);
            com.helpshift.conversation.activeconversation.message.j v12_2 = 0;
            try {
                Throwable v0_5 = this.z.getReadableDatabase().query("messages", 0, v5, v6, 0, 0, 0);
                try {
                    if (v0_5.moveToFirst()) {
                        v12_2 = this.c(v0_5);
                    }
                } catch (com.helpshift.conversation.activeconversation.message.j v1_1) {
                    com.helpshift.util.l.c("Helpshift_ConverDB", "Error in read message with serverId", v1_1);
                    if (v0_5 == null) {
                        return v12_2;
                    } else {
                        v0_5.close();
                        return v12_2;
                    }
                }
                if (v0_5 == null) {
                    return v12_2;
                } else {
                }
            } catch (Throwable v0_6) {
                v0_5 = 0;
                com.helpshift.conversation.activeconversation.message.j v12_3 = v0_6;
                if (v0_5 != null) {
                    v0_5.close();
                }
                throw v12_3;
            } catch (com.helpshift.conversation.activeconversation.message.j v1_1) {
                v0_5 = 0;
            } catch (com.helpshift.conversation.activeconversation.message.j v12_3) {
            }
        } catch (com.helpshift.conversation.activeconversation.message.j v12_4) {
            throw v12_4;
        }
    }

Method com.helpshift.common.a.a.b() calling method android.database.sqlite.SQLiteDatabase.query()


    public declared_synchronized com.helpshift.conversation.activeconversation.message.j b(Long p12)
    {
        try {
            Throwable v0_1 = new StringBuilder();
            this.y.getClass();
            v0_1.append("_id");
            v0_1.append(" = ?");
            String v5 = v0_1.toString();
            String[] v6 = new String[1];
            v6[0] = String.valueOf(p12);
            com.helpshift.conversation.activeconversation.message.j v12_2 = 0;
            try {
                Throwable v0_5 = this.z.getReadableDatabase().query("messages", 0, v5, v6, 0, 0, 0);
                try {
                    if (v0_5.moveToFirst()) {
                        v12_2 = this.c(v0_5);
                    }
                } catch (com.helpshift.conversation.activeconversation.message.j v1_1) {
                    com.helpshift.util.l.c("Helpshift_ConverDB", "Error in read message with localId", v1_1);
                    if (v0_5 == null) {
                        return v12_2;
                    } else {
                        v0_5.close();
                        return v12_2;
                    }
                }
                if (v0_5 == null) {
                    return v12_2;
                } else {
                }
            } catch (Throwable v0_6) {
                v0_5 = 0;
                com.helpshift.conversation.activeconversation.message.j v12_3 = v0_6;
                if (v0_5 != null) {
                    v0_5.close();
                }
                throw v12_3;
            } catch (com.helpshift.conversation.activeconversation.message.j v1_1) {
                v0_5 = 0;
            } catch (com.helpshift.conversation.activeconversation.message.j v12_3) {
            }
        } catch (com.helpshift.conversation.activeconversation.message.j v12_4) {
            throw v12_4;
        }
    }

Method com.helpshift.common.a.a.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public declared_synchronized java.util.List a(long p13)
    {
        try {
            java.util.ArrayList v0_1 = new java.util.ArrayList();
            String v1 = 0;
            String v2_4 = new StringBuilder();
            this.y.getClass();
            v2_4.append("profile_id");
            v2_4.append(" = ?");
            String v7 = v2_4.toString();
            String[] v8 = new String[1];
            v8[0] = String.valueOf(p13);
            try {
                android.database.sqlite.SQLiteDatabase v4 = this.z.getReadableDatabase();
                this.y.getClass();
                String v13_4 = v4.query("issues", 0, v7, v8, 0, 0, 0);
                try {
                    if (v13_4.moveToFirst()) {
                        do {
                            v0_1.add(this.b(v13_4));
                        } while(v13_4.moveToNext());
                    }
                } catch (boolean v14_2) {
                    v1 = v13_4;
                    if (v1 != null) {
                        v1.close();
                    }
                    throw v14_2;
                } catch (boolean v14_0) {
                    v1 = v13_4;
                    com.helpshift.util.l.c("Helpshift_ConverDB", "Error in read conversations with profileId", v14_0);
                    if (v1 == null) {
                        return v0_1;
                    } else {
                        v1.close();
                        return v0_1;
                    }
                }
                if (v13_4 == null) {
                    return v0_1;
                } else {
                    v13_4.close();
                    return v0_1;
                }
            } catch (boolean v14_2) {
            } catch (boolean v14_0) {
            }
        } catch (String v13_6) {
            throw v13_6;
        }
    }

Method com.helpshift.common.a.a.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public declared_synchronized com.helpshift.conversation.activeconversation.a a(String p12)
    {
        try {
            Throwable v0_1 = new StringBuilder();
            this.y.getClass();
            v0_1.append("server_id");
            v0_1.append(" = ?");
            String v5 = v0_1.toString();
            String[] v6 = new String[1];
            v6[0] = String.valueOf(p12);
            com.helpshift.conversation.activeconversation.a v12_2 = 0;
            try {
                String v2_0 = this.z.getReadableDatabase();
                this.y.getClass();
                Throwable v0_6 = v2_0.query("issues", 0, v5, v6, 0, 0, 0);
                try {
                    if (v0_6.moveToFirst()) {
                        v12_2 = this.b(v0_6);
                    }
                } catch (com.helpshift.conversation.activeconversation.a v1_1) {
                    com.helpshift.util.l.c("Helpshift_ConverDB", "Error in read conversations with serverId", v1_1);
                    if (v0_6 == null) {
                        return v12_2;
                    } else {
                        v0_6.close();
                        return v12_2;
                    }
                }
                if (v0_6 == null) {
                    return v12_2;
                } else {
                }
            } catch (Throwable v0_7) {
                if (v12_2 != null) {
                    v12_2.close();
                }
                throw v0_7;
            } catch (com.helpshift.conversation.activeconversation.a v1_1) {
                v0_6 = 0;
            } catch (com.helpshift.conversation.activeconversation.a v12_3) {
                v0_7 = v12_3;
                v12_2 = v0_6;
            }
        } catch (com.helpshift.conversation.activeconversation.a v12_4) {
            throw v12_4;
        }
    }

Method com.helpshift.common.a.a.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public declared_synchronized com.helpshift.conversation.activeconversation.a a(Long p12)
    {
        try {
            Throwable v0_1 = new StringBuilder();
            this.y.getClass();
            v0_1.append("_id");
            v0_1.append(" = ?");
            String v5 = v0_1.toString();
            String[] v6 = new String[1];
            v6[0] = String.valueOf(p12);
            com.helpshift.conversation.activeconversation.a v12_2 = 0;
            try {
                String v2_0 = this.z.getReadableDatabase();
                this.y.getClass();
                Throwable v0_6 = v2_0.query("issues", 0, v5, v6, 0, 0, 0);
                try {
                    if (v0_6.moveToFirst()) {
                        v12_2 = this.b(v0_6);
                    }
                } catch (com.helpshift.conversation.activeconversation.a v1_1) {
                    com.helpshift.util.l.c("Helpshift_ConverDB", "Error in read conversations with localId", v1_1);
                    if (v0_6 == null) {
                        return v12_2;
                    } else {
                        v0_6.close();
                        return v12_2;
                    }
                }
                if (v0_6 == null) {
                    return v12_2;
                } else {
                }
            } catch (Throwable v0_7) {
                if (v12_2 != null) {
                    v12_2.close();
                }
                throw v0_7;
            } catch (com.helpshift.conversation.activeconversation.a v1_1) {
                v0_6 = 0;
            } catch (com.helpshift.conversation.activeconversation.a v12_3) {
                v0_7 = v12_3;
                v12_2 = v0_6;
            }
        } catch (com.helpshift.conversation.activeconversation.a v12_4) {
            throw v12_4;
        }
    }

Method com.google.android.gms.internal.measurement.zzbf.zzf() calling method android.database.sqlite.SQLiteDatabase.query()


    public final java.util.List zzf(long p28)
    {
        this.zzcl();
        com.google.android.gms.analytics.zzk.zzaf();
        Throwable v2_1 = this.getWritableDatabase();
        try {
            boolean v4_2 = new String[5];
            v4_2[0] = "cid";
            v4_2[1] = "tid";
            v4_2[2] = "adid";
            v4_2[3] = "hits_count";
            v4_2[4] = "params";
            com.google.android.gms.internal.measurement.zzaz v9_0 = ((Integer) com.google.android.gms.internal.measurement.zzcf.zzzc.get()).intValue();
            String v16 = String.valueOf(v9_0);
            String v6_0 = new String[1];
            v6_0[0] = "0";
            android.database.sqlite.SQLiteException v11_1 = v9_0;
            Throwable v2_2 = v2_1.query("properties", v4_2, "app_uid=?", v6_0, 0, 0, 0, v16);
            try {
                String v3_11 = new java.util.ArrayList();
            } catch (Throwable v0_0) {
                android.database.sqlite.SQLiteException v11_0 = v2_2;
                Throwable v2_0 = v0_0;
                if (v11_0 != null) {
                    v11_0.close();
                }
                throw v2_0;
            } catch (Throwable v0_3) {
                v11_0 = v2_2;
                Throwable v2_3 = v0_3;
                try {
                    this.zze("Error loading hits from the database", v2_3);
                    throw v2_3;
                } catch (Throwable v0_0) {
                }
            }
            if (v2_2.moveToFirst()) {
                do {
                    int v23;
                    boolean v4_1 = v2_2.getString(0);
                    String v5_1 = v2_2.getString(1);
                    if (v2_2.getInt(2) == 0) {
                        v23 = 0;
                    } else {
                        v23 = 1;
                    }
                    String v6_3 = ((long) v2_2.getInt(3));
                    java.util.Map vtmp13 = this.zzw(v2_2.getString(4));
                    if (android.text.TextUtils.isEmpty(v4_1)) {
                        this.zzc("Read property with empty client id or tracker id", v4_1, v5_1);
                    } else {
                        if (!android.text.TextUtils.isEmpty(v5_1)) {
                            com.google.android.gms.internal.measurement.zzaz v9_5 = new com.google.android.gms.internal.measurement.zzaz;
                            v9_5(0, v4_1, v5_1, v23, v6_3, vtmp13);
                            v3_11.add(v9_5);
                        } else {
                        }
                    }
                } while(v2_2.moveToNext());
            }
            if (v3_11.size() >= v11_1) {
                this.zzt("Sending hits to too many properties. Campaign report might be incorrect");
            }
            if (v2_2 != null) {
                v2_2.close();
            }
            return v3_11;
        } catch (Throwable v0_2) {
            v2_0 = v0_2;
            v11_0 = 0;
        } catch (Throwable v0_1) {
            v2_3 = v0_1;
            v11_0 = 0;
        }
    }

Method com.google.android.gms.internal.measurement.zzbf.zzd() calling method android.database.sqlite.SQLiteDatabase.query()


    public final java.util.List zzd(long p24)
    {
        boolean v1_5;
        int v11_0 = 0;
        if (p24 < 0) {
            v1_5 = 0;
        } else {
            v1_5 = 1;
        }
        com.google.android.gms.common.internal.Preconditions.checkArgument(v1_5);
        com.google.android.gms.analytics.zzk.zzaf();
        this.zzcl();
        int v13_0 = this.getWritableDatabase();
        try {
            int v15_0 = new String[5];
            v15_0[0] = "hit_id";
            v15_0[1] = "hit_time";
            int v9_0 = 2;
            v15_0[2] = "hit_string";
            int v7_0 = 3;
            v15_0[3] = "hit_url";
            int v8 = 4;
            v15_0[4] = "hit_app_id";
            Object[] v5_1 = new Object[1];
            v5_1[0] = "hit_id";
            int v13_1 = v13_0.query("hits2", v15_0, 0, 0, 0, 0, String.format("%s ASC", v5_1), Long.toString(p24));
            try {
                java.util.ArrayList v14_2 = new java.util.ArrayList();
            } catch (android.database.sqlite.SQLiteException v0_0) {
                boolean v1_3 = v0_0;
                this.zze("Error loading hits from the database", v1_3);
                throw v1_3;
            }
            if (v13_1.moveToFirst()) {
                while(true) {
                    String v2_9 = new com.google.android.gms.internal.measurement.zzck;
                    int v11_1 = v2_9;
                    int v18_1 = v7_0;
                    int v19_1 = v8;
                    int v15_2 = v9_0;
                    v2_9(this, this.zzv(v13_1.getString(v9_0)), v13_1.getLong(1), com.google.android.gms.internal.measurement.zzdg.zzai(v13_1.getString(v7_0)), v13_1.getLong(v11_0), v13_1.getInt(v8));
                    v14_2.add(v11_1);
                    if (!v13_1.moveToNext()) {
                        break;
                    }
                    v9_0 = v15_2;
                    v7_0 = v18_1;
                    v8 = v19_1;
                    v11_0 = 0;
                }
            }
            if (v13_1 != 0) {
                v13_1.close();
            }
            return v14_2;
        } catch (android.database.sqlite.SQLiteException v0_1) {
            v13_1 = 0;
            boolean v1_4 = v0_1;
            if (v13_1 != 0) {
                v13_1.close();
            }
            throw v1_4;
        } catch (android.database.sqlite.SQLiteException v0_0) {
            v13_1 = 0;
        } catch (android.database.sqlite.SQLiteException v0_1) {
        }
    }

Method com.google.android.gms.internal.measurement.zzbf.zzc() calling method android.database.sqlite.SQLiteDatabase.query()


    private final java.util.List zzc(long p14)
    {
        com.google.android.gms.analytics.zzk.zzaf();
        this.zzcl();
        if (p14 > 0) {
            long v0_2 = this.getWritableDatabase();
            java.util.ArrayList v9_1 = new java.util.ArrayList();
            String v10 = 0;
            try {
                int v3_0 = new String[1];
                v3_0[0] = "hit_id";
                String[] v2_1 = new Object[1];
                v2_1[0] = "hit_id";
                String v14_2 = v0_2.query("hits2", v3_0, 0, 0, 0, 0, String.format("%s ASC", v2_1), Long.toString(p14));
                try {
                    if (v14_2.moveToFirst()) {
                        do {
                            v9_1.add(Long.valueOf(v14_2.getLong(0)));
                        } while(v14_2.moveToNext());
                    }
                } catch (boolean v15_2) {
                    v10 = v14_2;
                    if (v10 != null) {
                        v10.close();
                    }
                    throw v15_2;
                } catch (boolean v15_0) {
                    v10 = v14_2;
                    this.zzd("Error selecting hit ids", v15_0);
                    if (v10 == null) {
                        return v9_1;
                    } else {
                        v10.close();
                        return v9_1;
                    }
                }
                if (v14_2 == null) {
                    return v9_1;
                } else {
                    v14_2.close();
                    return v9_1;
                }
            } catch (boolean v15_2) {
            } catch (boolean v15_0) {
            }
        } else {
            return java.util.Collections.emptyList();
        }
    }

Method com.google.android.gms.tagmanager.zzeb.zzpk() calling method android.database.sqlite.SQLiteDatabase.query()


    private final int zzpk()
    {
        String v1_0 = this.zzdl("Error opening database for getNumStoredHits.");
        int v0_2 = 0;
        if (v1_0 != null) {
            String v9 = 0;
            try {
                String[] v3_1 = new String[2];
                v3_1[0] = "hit_id";
                v3_1[1] = "hit_first_send_time";
                String v1_1 = v1_0.query("gtm_hits", v3_1, "hit_first_send_time=0", 0, 0, 0, 0);
                try {
                    int v2_0 = v1_1.getCount();
                } catch (int v0_1) {
                    v9 = v1_1;
                    if (v9 != null) {
                        v9.close();
                    }
                    throw v0_1;
                } catch (android.database.sqlite.SQLiteException) {
                    v9 = v1_1;
                    com.google.android.gms.tagmanager.zzdi.zzab("Error getting num untried hits");
                    if (v9 == null) {
                        return v0_2;
                    } else {
                        v9.close();
                        return v0_2;
                    }
                }
                if (v1_1 != null) {
                    v1_1.close();
                }
                v0_2 = v2_0;
                return v0_2;
            } catch (int v0_1) {
            }
        } else {
            return 0;
        }
    }

Method com.google.android.gms.tagmanager.zzeb.zzac() calling method android.database.sqlite.SQLiteDatabase.query()


    private final java.util.List zzac(int p19)
    {
        int v1_1 = new java.util.ArrayList();
        int v2_3 = this.zzdl("Error opening database for peekHits");
        if (v2_3 != 0) {
            try {
                boolean v6_7 = new String[3];
                int v14 = 0;
                v6_7[0] = "hit_id";
                v6_7[1] = "hit_time";
                v6_7[2] = "hit_first_send_time";
                java.util.ArrayList v11_3 = new Object[1];
                v11_3[0] = "hit_id";
                String v12_3 = v2_3.query("gtm_hits", v6_7, 0, 0, 0, 0, String.format("%s ASC", v11_3), Integer.toString(40));
                try {
                    java.util.ArrayList v11_5 = new java.util.ArrayList();
                    try {
                        if (v12_3.moveToFirst()) {
                            try {
                                do {
                                    int v1_19 = new com.google.android.gms.tagmanager.zzbw;
                                    v1_19(v12_3.getLong(0), v12_3.getLong(1), v12_3.getLong(2));
                                    v11_5.add(v1_19);
                                } while(v12_3.moveToNext());
                            } catch (android.database.sqlite.SQLiteException v0_10) {
                                int v1_16 = v0_10;
                                String v13_3 = v12_3;
                                if (v13_3 != null) {
                                    v13_3.close();
                                }
                                throw v1_16;
                            } catch (android.database.sqlite.SQLiteException v0_8) {
                                int v1_17 = v0_8;
                                v13_3 = v12_3;
                                try {
                                    int v1_22 = String.valueOf(v1_17.getMessage());
                                } catch (android.database.sqlite.SQLiteException v0_9) {
                                    v1_16 = v0_9;
                                }
                                if (v1_22.length() == 0) {
                                    int v1_24 = new String("Error in peekHits fetching hitIds: ");
                                } else {
                                    v1_24 = "Error in peekHits fetching hitIds: ".concat(v1_22);
                                }
                                com.google.android.gms.tagmanager.zzdi.zzab(v1_24);
                                if (v13_3 != null) {
                                    v13_3.close();
                                }
                                return v11_5;
                            }
                            if (!v12_3.moveToNext()) {
                            }
                        }
                    } catch (android.database.sqlite.SQLiteException v0_6) {
                        v1_17 = v0_6;
                        v13_3 = v12_3;
                    }
                    if (v12_3 != null) {
                        v12_3.close();
                    }
                    try {
                        boolean v6_0 = new String[2];
                        v6_0[0] = "hit_id";
                        v6_0[1] = "hit_url";
                        int v4_1 = new Object[1];
                        v4_1[0] = "hit_id";
                        int v2_0 = v11_5;
                        java.util.ArrayList v11_0 = String.format("%s ASC", v4_1);
                        String v16_0 = v12_3;
                        String v12_0 = Integer.toString(40);
                        try {
                            v12_0 = v2_3.query("gtm_hits", v6_0, 0, 0, 0, 0, v11_0, v12_0);
                            try {
                                if (v12_0.moveToFirst()) {
                                    int v1_9 = 0;
                                    do {
                                        if (((android.database.sqlite.SQLiteCursor) v12_0).getWindow().getNumRows() <= 0) {
                                            com.google.android.gms.tagmanager.zzbw v5_1 = new Object[1];
                                            v5_1[0] = Long.valueOf(((com.google.android.gms.tagmanager.zzbw) v2_0.get(v1_9)).zzov());
                                            com.google.android.gms.tagmanager.zzdi.zzab(String.format("HitString for hitId %d too large.  Hit will be deleted.", v5_1));
                                        } else {
                                            ((com.google.android.gms.tagmanager.zzbw) v2_0.get(v1_9)).zzds(v12_0.getString(1));
                                        }
                                        v1_9++;
                                    } while(v12_0.moveToNext());
                                }
                            } catch (android.database.sqlite.SQLiteException v0_0) {
                                int v1_6 = v0_0;
                                int v1_11 = String.valueOf(v1_6.getMessage());
                                if (v1_11.length() == 0) {
                                    int v1_13 = new String("Error in peekHits fetching hit url: ");
                                } else {
                                    v1_13 = "Error in peekHits fetching hit url: ".concat(v1_11);
                                }
                                com.google.android.gms.tagmanager.zzdi.zzab(v1_13);
                                int v1_15 = new java.util.ArrayList();
                                java.util.ArrayList v11_2 = ((java.util.ArrayList) v2_0);
                                int v2_1 = v11_2.size();
                                int v4_15 = 0;
                            }
                            if (v12_0 != null) {
                                v12_0.close();
                            }
                            return v2_0;
                        } catch (android.database.sqlite.SQLiteException v0_3) {
                            int v1_7 = v0_3;
                            v12_0 = v16_0;
                            if (v12_0 != null) {
                                v12_0.close();
                            }
                            throw v1_7;
                        } catch (android.database.sqlite.SQLiteException v0_2) {
                            v1_6 = v0_2;
                            v12_0 = v16_0;
                        }
                    } catch (android.database.sqlite.SQLiteException v0_1) {
                        v1_7 = v0_1;
                    } catch (android.database.sqlite.SQLiteException v0_0) {
                        v2_0 = v11_0;
                    } catch (android.database.sqlite.SQLiteException v0_1) {
                    }
                } catch (android.database.sqlite.SQLiteException v0_7) {
                    v1_16 = v0_7;
                    v13_3 = v12_3;
                } catch (android.database.sqlite.SQLiteException v0_4) {
                    v11_5 = v1_1;
                    v13_3 = v12_3;
                    v1_17 = v0_4;
                }
            } catch (android.database.sqlite.SQLiteException v0_5) {
                v1_16 = v0_5;
                v13_3 = 0;
            } catch (android.database.sqlite.SQLiteException v0_4) {
                v11_5 = v1_1;
                v13_3 = 0;
            }
        } else {
            return v1_1;
        }
    }

Method android.arch.persistence.a.a.a$1.newCursor() calling method android.database.sqlite.SQLiteCursor.<init>()


    public android.database.Cursor newCursor(android.database.sqlite.SQLiteDatabase p2, android.database.sqlite.SQLiteCursorDriver p3, String p4, android.database.sqlite.SQLiteQuery p5)
    {
        this.a.a(new android.arch.persistence.a.a.d(p5));
        return new android.database.sqlite.SQLiteCursor(p3, p4, p5);
    }

Method com.moe.pushlibrary.providers.MoEProvider.query() calling method android.database.sqlite.SQLiteQueryBuilder.appendWhere()


    public android.database.Cursor query(android.net.Uri p11, String[] p12, String p13, String[] p14, String p15)
    {
        android.database.sqlite.SQLiteDatabase v2 = this.mOpenHelper.getReadableDatabase();
        this.updateIfRequired(v2);
        android.database.sqlite.SQLiteQueryBuilder v1_1 = new android.database.sqlite.SQLiteQueryBuilder();
        String v9 = p11.getQueryParameter("LIMIT");
        StringBuilder v0_1 = com.moe.pushlibrary.providers.MoEProvider.sUriMatcher.match(p11);
        if (v0_1 == 9) {
            v1_1.setProjectionMap(com.moe.pushlibrary.providers.MoEProvider.sUserAttributeProjectionMap);
            v1_1.setTables("USERATTRIBUTES");
        } else {
            if (v0_1 == 11) {
                v1_1.setProjectionMap(com.moe.pushlibrary.providers.MoEProvider.sCampaignListProjectionMap);
                v1_1.setTables("CAMPAIGNLIST");
            } else {
                if (v0_1 == 13) {
                    v1_1.setProjectionMap(com.moe.pushlibrary.providers.MoEProvider.sBatchDataProjectionMap);
                    v1_1.setTables("BATCH_DATA");
                } else {
                    switch (v0_1) {
                        case 1:
                            break;
                        case 2:
                            StringBuilder v0_8 = new StringBuilder();
                            v0_8.append("_id=");
                            v0_8.append(((String) p11.getPathSegments().get(1)));
                            v1_1.appendWhere(v0_8.toString());
                            break;
                        case 3:
                            v1_1.setProjectionMap(com.moe.pushlibrary.providers.MoEProvider.sEventProjectionMap);
                            v1_1.setTables("DATAPOINTS");
                            break;
                        case 4:
                            StringBuilder v0_5 = new StringBuilder();
                            v0_5.append("_id=");
                            v0_5.append(((String) p11.getPathSegments().get(1)));
                            v1_1.appendWhere(v0_5.toString());
                            break;
                        case 5:
                            v1_1.setProjectionMap(com.moe.pushlibrary.providers.MoEProvider.sInAppProjectionMap);
                            v1_1.setTables("INAPPMSG");
                            if (android.text.TextUtils.isEmpty(p15)) {
                                p15 = "priority DESC, gtime DESC";
                            }
                            break;
                        case 6:
                            StringBuilder v0_3 = new StringBuilder();
                            v0_3.append("_id=");
                            v0_3.append(((String) p11.getPathSegments().get(1)));
                            v1_1.appendWhere(v0_3.toString());
                            break;
                        default:
                            StringBuilder v0_11 = new StringBuilder();
                            v0_11.append("Unknown URI ");
                            v0_11.append(p11);
                            com.moengage.core.Logger.f(v0_11.toString());
                    }
                    v1_1.setProjectionMap(com.moe.pushlibrary.providers.MoEProvider.sMessageProjectionMap);
                    v1_1.setTables("MESSAGES");
                    if (android.text.TextUtils.isEmpty(p15)) {
                        p15 = "gtime DESC";
                    }
                }
            }
        }
        try {
        } catch (Exception) {
        }
        return v1_1.query(v2, p12, p13, p14, 0, 0, p15, v9);
    }

Method com.moe.pushlibrary.providers.MoEProvider.query() calling method android.database.sqlite.SQLiteQueryBuilder.query()


    public android.database.Cursor query(android.net.Uri p11, String[] p12, String p13, String[] p14, String p15)
    {
        android.database.sqlite.SQLiteDatabase v2 = this.mOpenHelper.getReadableDatabase();
        this.updateIfRequired(v2);
        android.database.sqlite.SQLiteQueryBuilder v1_1 = new android.database.sqlite.SQLiteQueryBuilder();
        String v9 = p11.getQueryParameter("LIMIT");
        StringBuilder v0_1 = com.moe.pushlibrary.providers.MoEProvider.sUriMatcher.match(p11);
        if (v0_1 == 9) {
            v1_1.setProjectionMap(com.moe.pushlibrary.providers.MoEProvider.sUserAttributeProjectionMap);
            v1_1.setTables("USERATTRIBUTES");
        } else {
            if (v0_1 == 11) {
                v1_1.setProjectionMap(com.moe.pushlibrary.providers.MoEProvider.sCampaignListProjectionMap);
                v1_1.setTables("CAMPAIGNLIST");
            } else {
                if (v0_1 == 13) {
                    v1_1.setProjectionMap(com.moe.pushlibrary.providers.MoEProvider.sBatchDataProjectionMap);
                    v1_1.setTables("BATCH_DATA");
                } else {
                    switch (v0_1) {
                        case 1:
                            break;
                        case 2:
                            StringBuilder v0_8 = new StringBuilder();
                            v0_8.append("_id=");
                            v0_8.append(((String) p11.getPathSegments().get(1)));
                            v1_1.appendWhere(v0_8.toString());
                            break;
                        case 3:
                            v1_1.setProjectionMap(com.moe.pushlibrary.providers.MoEProvider.sEventProjectionMap);
                            v1_1.setTables("DATAPOINTS");
                            break;
                        case 4:
                            StringBuilder v0_5 = new StringBuilder();
                            v0_5.append("_id=");
                            v0_5.append(((String) p11.getPathSegments().get(1)));
                            v1_1.appendWhere(v0_5.toString());
                            break;
                        case 5:
                            v1_1.setProjectionMap(com.moe.pushlibrary.providers.MoEProvider.sInAppProjectionMap);
                            v1_1.setTables("INAPPMSG");
                            if (android.text.TextUtils.isEmpty(p15)) {
                                p15 = "priority DESC, gtime DESC";
                            }
                            break;
                        case 6:
                            StringBuilder v0_3 = new StringBuilder();
                            v0_3.append("_id=");
                            v0_3.append(((String) p11.getPathSegments().get(1)));
                            v1_1.appendWhere(v0_3.toString());
                            break;
                        default:
                            StringBuilder v0_11 = new StringBuilder();
                            v0_11.append("Unknown URI ");
                            v0_11.append(p11);
                            com.moengage.core.Logger.f(v0_11.toString());
                    }
                    v1_1.setProjectionMap(com.moe.pushlibrary.providers.MoEProvider.sMessageProjectionMap);
                    v1_1.setTables("MESSAGES");
                    if (android.text.TextUtils.isEmpty(p15)) {
                        p15 = "gtime DESC";
                    }
                }
            }
        }
        try {
        } catch (Exception) {
        }
        return v1_1.query(v2, p12, p13, p14, 0, 0, p15, v9);
    }

Method com.google.android.gms.tagmanager.zzeb.zzab() calling method android.database.sqlite.SQLiteDatabase.query()


    private final java.util.List zzab(int p15)
    {
        Throwable v0_1 = new java.util.ArrayList();
        if (p15 > null) {
            String v2_1 = this.zzdl("Error opening database for peekHitIds.");
            if (v2_1 != null) {
                boolean v1_3 = 0;
                try {
                    int v5_0 = new String[1];
                    v5_0[0] = "hit_id";
                    String[] v4_0 = new Object[1];
                    v4_0[0] = "hit_id";
                    String v15_2 = v2_1.query("gtm_hits", v5_0, 0, 0, 0, 0, String.format("%s ASC", v4_0), Integer.toString(p15));
                    try {
                        if (v15_2.moveToFirst()) {
                            do {
                                v0_1.add(String.valueOf(v15_2.getLong(0)));
                            } while(v15_2.moveToNext());
                        }
                    } catch (Throwable v0_2) {
                        v1_3 = v15_2;
                        if (v1_3) {
                            v1_3.close();
                        }
                        throw v0_2;
                    } catch (boolean v1_2) {
                        v1_3 = v15_2;
                        String v15_3 = v1_2;
                        String v15_5 = String.valueOf(v15_3.getMessage());
                        if (v15_5.length() == 0) {
                            String v15_7 = new String("Error in peekHits fetching hitIds: ");
                        } else {
                            v15_7 = "Error in peekHits fetching hitIds: ".concat(v15_5);
                        }
                        com.google.android.gms.tagmanager.zzdi.zzab(v15_7);
                        if (!v1_3) {
                            return v0_1;
                        } else {
                            v1_3.close();
                            return v0_1;
                        }
                    }
                    if (v15_2 == null) {
                        return v0_1;
                    } else {
                        v15_2.close();
                        return v0_1;
                    }
                } catch (Throwable v0_2) {
                } catch (String v15_3) {
                }
            } else {
                return v0_1;
            }
        } else {
            com.google.android.gms.tagmanager.zzdi.zzab("Invalid maxHits specified. Skipping");
            return v0_1;
        }
    }

Method com.google.android.gms.tagmanager.zzat.zzw() calling method android.database.sqlite.SQLiteDatabase.query()


    private final java.util.List zzw(int p15)
    {
        Throwable v0_1 = new java.util.ArrayList();
        if (p15 > null) {
            String v2_1 = this.zzdl("Error opening database for peekEntryIds.");
            if (v2_1 != null) {
                boolean v1_3 = 0;
                try {
                    int v5_0 = new String[1];
                    v5_0[0] = "ID";
                    String[] v4_0 = new Object[1];
                    v4_0[0] = "ID";
                    String v15_2 = v2_1.query("datalayer", v5_0, 0, 0, 0, 0, String.format("%s ASC", v4_0), Integer.toString(p15));
                    try {
                        if (v15_2.moveToFirst()) {
                            do {
                                v0_1.add(String.valueOf(v15_2.getLong(0)));
                            } while(v15_2.moveToNext());
                        }
                    } catch (Throwable v0_2) {
                        v1_3 = v15_2;
                        if (v1_3) {
                            v1_3.close();
                        }
                        throw v0_2;
                    } catch (boolean v1_2) {
                        v1_3 = v15_2;
                        String v15_3 = v1_2;
                        String v15_5 = String.valueOf(v15_3.getMessage());
                        if (v15_5.length() == 0) {
                            String v15_7 = new String("Error in peekEntries fetching entryIds: ");
                        } else {
                            v15_7 = "Error in peekEntries fetching entryIds: ".concat(v15_5);
                        }
                        com.google.android.gms.tagmanager.zzdi.zzab(v15_7);
                        if (!v1_3) {
                            return v0_1;
                        } else {
                            v1_3.close();
                            return v0_1;
                        }
                    }
                    if (v15_2 == null) {
                        return v0_1;
                    } else {
                        v15_2.close();
                        return v0_1;
                    }
                } catch (Throwable v0_2) {
                } catch (String v15_3) {
                }
            } else {
                return v0_1;
            }
        } else {
            com.google.android.gms.tagmanager.zzdi.zzab("Invalid maxEntries specified. Skipping.");
            return v0_1;
        }
    }

Method com.google.android.gms.tagmanager.zzat.zzoi() calling method android.database.sqlite.SQLiteDatabase.query()


    private final java.util.List zzoi()
    {
        android.database.Cursor v1_0 = this.zzdl("Error opening database for loadSerialized.");
        Throwable v0_3 = new java.util.ArrayList();
        if (v1_0 != null) {
            String v3_1 = new String[2];
            v3_1[0] = "key";
            v3_1[1] = "value";
            android.database.Cursor v1_1 = v1_0.query("datalayer", v3_1, 0, 0, 0, 0, "ID", 0);
            try {
                while (v1_1.moveToNext()) {
                    v0_3.add(new com.google.android.gms.tagmanager.zzay(v1_1.getString(0), v1_1.getBlob(1)));
                }
            } catch (Throwable v0_1) {
                v1_1.close();
                throw v0_1;
            }
            v1_1.close();
            return v0_3;
        } else {
            return v0_3;
        }
    }

Method com.google.android.gms.tagmanager.zzed.zza() calling method android.database.sqlite.SQLiteDatabase.query()


    private static boolean zza(String p10, android.database.sqlite.SQLiteDatabase p11)
    {
        String v1_0 = 0;
        try {
            String[] v4 = new String[1];
            v4[0] = "name";
            String[] v6 = new String[1];
            v6[0] = p10;
            String v11_1 = p11.query("SQLITE_MASTER", v4, "name=?", v6, 0, 0, 0);
            try {
                String v1_1 = v11_1.moveToFirst();
            } catch (Throwable v10_4) {
                v1_0 = v11_1;
                if (v1_0 != null) {
                    v1_0.close();
                }
                throw v10_4;
            } catch (android.database.sqlite.SQLiteException) {
                v1_0 = v11_1;
                Throwable v10_1 = String.valueOf(p10);
                if (v10_1.length() == 0) {
                    Throwable v10_3 = new String("Error querying for table ");
                } else {
                    v10_3 = "Error querying for table ".concat(v10_1);
                }
                com.google.android.gms.tagmanager.zzdi.zzab(v10_3);
                if (v1_0 != null) {
                    v1_0.close();
                }
                return 0;
            }
            if (v11_1 != null) {
                v11_1.close();
            }
            return v1_1;
        } catch (Throwable v10_4) {
        }
    }

Method com.google.android.gms.tagmanager.zzax.zza() calling method android.database.sqlite.SQLiteDatabase.query()


    private static boolean zza(String p10, android.database.sqlite.SQLiteDatabase p11)
    {
        String v1_0 = 0;
        try {
            String[] v4 = new String[1];
            v4[0] = "name";
            String[] v6 = new String[1];
            v6[0] = p10;
            String v11_1 = p11.query("SQLITE_MASTER", v4, "name=?", v6, 0, 0, 0);
            try {
                String v1_1 = v11_1.moveToFirst();
            } catch (Throwable v10_4) {
                v1_0 = v11_1;
                if (v1_0 != null) {
                    v1_0.close();
                }
                throw v10_4;
            } catch (android.database.sqlite.SQLiteException) {
                v1_0 = v11_1;
                Throwable v10_1 = String.valueOf(p10);
                if (v10_1.length() == 0) {
                    Throwable v10_3 = new String("Error querying for table ");
                } else {
                    v10_3 = "Error querying for table ".concat(v10_1);
                }
                com.google.android.gms.tagmanager.zzdi.zzab(v10_3);
                if (v1_0 != null) {
                    v1_0.close();
                }
                return 0;
            }
            if (v11_1 != null) {
                v11_1.close();
            }
            return v1_1;
        } catch (Throwable v10_4) {
        }
    }

Method com.google.android.gms.internal.measurement.zzbg.zza() calling method android.database.sqlite.SQLiteDatabase.query()


    private final boolean zza(android.database.sqlite.SQLiteDatabase p12, String p13)
    {
        android.database.sqlite.SQLiteException v1_0 = 0;
        try {
            String[] v4 = new String[1];
            v4[0] = "name";
            String[] v6 = new String[1];
            v6[0] = p13;
            android.database.sqlite.SQLiteException v12_1 = p12.query("SQLITE_MASTER", v4, "name=?", v6, 0, 0, 0);
            try {
                android.database.sqlite.SQLiteException v1_1 = v12_1.moveToFirst();
            } catch (Throwable v13_1) {
                v1_0 = v12_1;
                if (v1_0 != null) {
                    v1_0.close();
                }
                throw v13_1;
            } catch (android.database.sqlite.SQLiteException v1_2) {
                v1_0 = v12_1;
                android.database.sqlite.SQLiteException v12_2 = v1_2;
                this.zzxk.zzc("Error querying for table", p13, v12_2);
                if (v1_0 != null) {
                    v1_0.close();
                }
                return 0;
            }
            if (v12_1 != null) {
                v12_1.close();
            }
            return v1_1;
        } catch (Throwable v13_1) {
        } catch (android.database.sqlite.SQLiteException v12_2) {
        }
    }

Method com.e.a.h.b() calling method android.database.sqlite.SQLiteDatabase.query()

Couldn't retrieve source code

Method com.e.a.h.a() calling method android.database.sqlite.SQLiteDatabase.query()

Couldn't retrieve source code

Method com.e.a.f.d() calling method android.database.sqlite.SQLiteDatabase.query()


    public com.gaana.models.Playlists$Playlist d(String p11)
    {
        com.managers.URLManager$BusinessObjectType v0_0 = this.k();
        int v4_0 = new String[1];
        v4_0[0] = p11;
        int v11_3 = new String[8];
        v11_3[0] = "local_playlist_id";
        v11_3[1] = "playlist_id";
        v11_3[2] = "id";
        v11_3[3] = "has_synced";
        v11_3[4] = "playlist_metadata";
        v11_3[5] = "name";
        v11_3[6] = "language";
        v11_3[7] = "last_sync_time";
        try {
            int v11_1 = v0_0.query(com.e.a.e$f.a, v11_3, "name=?", v4_0, 0, 0, 0, 0);
            try {
                int v5_1;
                if (!v11_1.moveToFirst()) {
                    v5_1 = 0;
                } else {
                    com.managers.URLManager$BusinessObjectType v0_5 = v11_1.getString(v11_1.getColumnIndex("local_playlist_id"));
                    String v1_10 = v11_1.getString(v11_1.getColumnIndex("playlist_id"));
                    long v2_11 = v11_1.getLong(v11_1.getColumnIndex("id"));
                    int v4_3 = v11_1.getInt(v11_1.getColumnIndex("has_synced"));
                    int v5_4 = v11_1.getString(v11_1.getColumnIndex("playlist_metadata"));
                    String v6_3 = v11_1.getString(v11_1.getColumnIndex("name"));
                    String v7_3 = v11_1.getString(v11_1.getColumnIndex("language"));
                    long v8_3 = v11_1.getLong(v11_1.getColumnIndex("last_sync_time"));
                    v5_1 = ((com.gaana.models.Playlists$Playlist) com.services.n.a(v5_4));
                    v5_1.setOfflinePlaylistId(v2_11);
                    v5_1.setLocalPlaylistId(v0_5);
                    v5_1.setPlaylistId(v1_10);
                    v5_1.setSyncStatus(v4_3);
                    v5_1.setBusinessObjType(com.managers.URLManager$BusinessObjectType.Playlists);
                    v5_1.setName(v6_3);
                    v5_1.setLanguage(v7_3);
                    v5_1.setSyncTime(v8_3);
                }
            } catch (com.managers.URLManager$BusinessObjectType v0_1) {
                if (v11_1 != 0) {
                    v11_1.close();
                }
                throw v0_1;
            }
            if (v11_1 != 0) {
                v11_1.close();
            }
            return v5_1;
        } catch (com.managers.URLManager$BusinessObjectType v0_1) {
            v11_1 = 0;
        }
    }

Method com.e.a.f.b() calling method android.database.sqlite.SQLiteDatabase.query()


    public String b(String p13)
    {
        StringBuilder v0_0 = this.k();
        int v9 = 1;
        String[] v4 = new String[1];
        int v1_11 = new StringBuilder();
        v1_11.append("%");
        v1_11.append(p13);
        v1_11.append("%");
        int v10 = 0;
        v4[0] = v1_11.toString();
        int v2_0 = new String[2];
        v2_0[0] = "id";
        int v1_4 = new StringBuilder();
        v1_4.append("SUBSTR(name,");
        v1_4.append(p13.length());
        v1_4.append(")");
        v2_0[1] = v1_4.toString();
        boolean[] v11 = 0;
        try {
            StringBuilder v0_1 = v0_0.query(com.e.a.e$f.a, v2_0, "name LIKE ?", v4, 0, 0, "name DESC, time_stamp DESC", 0);
            try {
                if (v0_1.getCount() > 0) {
                    v11 = new boolean[v0_1.getCount()];
                }
            } catch (String v13_1) {
                if (v0_1 != null) {
                    v0_1.close();
                }
                throw v13_1;
            }
            while (v0_1.moveToNext()) {
                int v1_15 = com.utilities.Util.a(v0_1.getString(1), 0);
                if ((v1_15 > 0) && (v1_15 < (v11.length + 1))) {
                    v11[(v1_15 - 1)] = 1;
                }
            }
            if ((v11 != null) && (v11.length > 0)) {
                int v1_13 = 1;
                while (v10 < v11.length) {
                    if (v11[v10]) {
                        if (v10 == (v11.length - 1)) {
                            v1_13 = (v10 + 2);
                        }
                        v10++;
                    } else {
                        v9 = (1 + v10);
                    }
                }
                v9 = v1_13;
            }
            if (v0_1 != null) {
                v0_1.close();
            }
            StringBuilder v0_3 = new StringBuilder();
            v0_3.append(p13);
            v0_3.append("");
            v0_3.append(v9);
            return v0_3.toString();
        } catch (String v13_1) {
            v0_1 = 0;
        }
    }

Method com.e.a.f.b() calling method android.database.sqlite.SQLiteDatabase.query()


    public int b(com.gaana.models.Playlists$Playlist p19, java.util.ArrayList p20)
    {
        int v1_0 = 0;
        if ((p19 != null) && (p20 != null)) {
            long v4 = p19.getOfflinePlaylistId();
            if (v4 <= 0) {
                v4 = this.a(p19.getBusinessObjId());
            }
            if (v4 > 0) {
                android.database.sqlite.SQLiteDatabase v2_2 = this.k();
                try {
                    v2_2.beginTransaction();
                    java.util.Iterator v3 = p20.iterator();
                    int v6_0 = 0;
                    try {
                        while (v3.hasNext()) {
                            String[] v13 = new String[2];
                            v13[0] = String.valueOf(((com.gaana.models.Tracks$Track) v3.next()).getBusinessObjId());
                            v13[1] = String.valueOf(v4);
                            String[] v11 = new String[2];
                            v11[0] = "track_id";
                            v11[1] = "id";
                            android.database.Cursor v7_7 = v2_2.query(com.e.a.e$g.a, v11, "track_id= ? AND id= ?", v13, 0, 0, 0, 0);
                            if ((v7_7 != null) && (v7_7.getCount() > 0)) {
                                v6_0++;
                            }
                            v7_7.close();
                        }
                    } catch (Exception) {
                        v1_0 = v6_0;
                        v2_2.endTransaction();
                    }
                    v2_2.setTransactionSuccessful();
                    v2_2.endTransaction();
                    v1_0 = v6_0;
                } catch (Throwable v0) {
                    int v1_1 = v0;
                    v2_2.endTransaction();
                    throw v1_1;
                } catch (Exception) {
                }
            }
            return v1_0;
        } else {
            return 0;
        }
    }

Method com.e.a.d.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public void a(String p17, String p18, boolean p19, int p20)
    {
        String v1_0 = p17;
        android.database.sqlite.SQLiteDatabase v3 = this.getDB();
        int v5_0 = new String[1];
        v5_0[0] = p17;
        String v7_1 = 0;
        try {
            String[] v10 = new String[1];
            v10[0] = "feed_id";
            String[] v12 = new String[1];
            v12[0] = p17;
            android.content.ContentValues v8_2 = this.getDB().query(com.e.a.e$b.a, v10, "feed_url=?", v12, 0, 0, 0);
            try {
                String v7_2;
                if (!v8_2.moveToFirst()) {
                    v7_2 = -1;
                } else {
                    v7_2 = v8_2.getInt(0);
                }
            } catch (Throwable v0_1) {
                String v1_5 = v0_1;
                v7_1 = v8_2;
                if (v7_1 != null) {
                    v7_1.close();
                }
                throw v1_5;
            } catch (Exception) {
                v7_1 = v8_2;
                if (v7_1 != null) {
                    v7_1.close();
                }
                v7_2 = -1;
                android.content.ContentValues v8_4 = new android.content.ContentValues();
                if (v7_2 != -1) {
                    v8_4.put("feed_id", Integer.valueOf(v7_2));
                }
                v8_4.put("feed_content", p18);
                v8_4.put("feed_time_stamp", String.valueOf(new java.util.Date().getTime()));
                v8_4.put("feed_url", p17);
                v8_4.put("feed_user_type", Integer.valueOf(p20));
                v3.beginTransaction();
                try {
                    if (!p19) {
                        v8_4.put("is_dynamic_cache", Integer.valueOf(0));
                        v3.insertWithOnConflict("feed_table", "feed_id", v8_4, 5);
                        if (p19) {
                            this.c();
                        }
                        v3.setTransactionSuccessful();
                    } else {
                        v8_4.put("is_dynamic_cache", Integer.valueOf(1));
                    }
                } catch (Exception) {
                }
                v3.endTransaction();
                return;
            }
            if (v8_2 == null) {
            } else {
                v8_2.close();
            }
        } catch (Throwable v0_0) {
            v1_5 = v0_0;
        } catch (Exception) {
        }
    }

Method com.e.a.c.c() calling method android.database.sqlite.SQLiteDatabase.query()


    public java.util.List c(String p11)
    {
        Throwable v0_1 = new java.util.ArrayList();
        String[] v5 = new String[2];
        v5[0] = "1";
        v5[1] = p11;
        String[] v3 = new String[1];
        v3[0] = "id";
        String v11_2 = 0;
        try {
            int v1_1 = this.k().query("local_favorite_table", v3, "favourite_status=? AND type=?", v5, 0, 0, 0);
            try {
                while (v1_1.moveToNext()) {
                    v0_1.add(v1_1.getString(0));
                }
            } catch (String v11_3) {
                if (v1_1 != 0) {
                    v1_1.close();
                }
                throw v11_3;
            } catch (Exception) {
                v11_2 = v1_1;
                if (v11_2 == null) {
                    return v0_1;
                } else {
                    v11_2.close();
                    return v0_1;
                }
            }
            if (v1_1 == 0) {
                return v0_1;
            } else {
                v1_1.close();
                return v0_1;
            }
        } catch (Throwable v0_2) {
            v1_1 = 0;
            v11_3 = v0_2;
        } catch (Exception) {
        }
    }

Method com.e.a.c.c() calling method android.database.sqlite.SQLiteDatabase.query()

Couldn't retrieve source code

Method com.e.a.c.a() calling method android.database.sqlite.SQLiteDatabase.query()

Couldn't retrieve source code

Method com.e.a.c.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public com.gaana.models.BusinessObject a(com.managers.URLManager$BusinessObjectType p24, String p25, String p26, String p27)
    {
        com.managers.URLManager$BusinessObjectType v9_2;
        String v6_5;
        Class v10_0;
        com.gaana.models.Artists v8_1;
        java.util.ArrayList v4_2 = new java.util.ArrayList();
        StringBuilder v5_0 = "favourite_status=? AND type=?";
        if (p24 != com.managers.URLManager$BusinessObjectType.Tracks) {
            if (p24 != com.managers.URLManager$BusinessObjectType.Albums) {
                if (p24 != com.managers.URLManager$BusinessObjectType.Playlists) {
                    if (p24 != com.managers.URLManager$BusinessObjectType.Radios) {
                        if (p24 != com.managers.URLManager$BusinessObjectType.FavoriteOccasions) {
                            v8_1 = new com.gaana.models.Artists();
                            v8_1.setBusinessObjType(com.managers.URLManager$BusinessObjectType.Artists);
                            v6_5 = "AR";
                            v10_0 = com.gaana.models.Artists$Artist;
                        } else {
                            v6_5 = "OC%";
                            v5_0 = "favourite_status=? AND type LIKE ?";
                            v8_1 = new com.gaana.models.FavoriteOccasions();
                            v8_1.setBusinessObjType(com.managers.URLManager$BusinessObjectType.FavoriteOccasions);
                            v10_0 = com.gaana.models.FavoriteOccasions$FavoriteOccasion;
                        }
                    } else {
                        v6_5 = "RD%";
                        v5_0 = "favourite_status=? AND type LIKE ?";
                        v8_1 = new com.gaana.models.Radios();
                        v8_1.setBusinessObjType(com.managers.URLManager$BusinessObjectType.Radios);
                        v10_0 = com.gaana.models.Radios$Radio;
                    }
                    v9_2 = 0;
                } else {
                    v6_5 = "PL";
                    v8_1 = new com.gaana.models.Playlists();
                    v9_2 = android.text.TextUtils.isEmpty(p25);
                    v8_1.setBusinessObjType(com.managers.URLManager$BusinessObjectType.Playlists);
                    v10_0 = com.gaana.models.Playlists$Playlist;
                }
            } else {
                v6_5 = "AL";
                v8_1 = new com.gaana.models.Albums();
                v9_2 = android.text.TextUtils.isEmpty(p25);
                v8_1.setBusinessObjType(com.managers.URLManager$BusinessObjectType.Albums);
                v10_0 = com.gaana.models.Albums$Album;
            }
        } else {
            v6_5 = "TR";
            v8_1 = new com.gaana.models.Tracks();
            v9_2 = android.text.TextUtils.isEmpty(p25);
            v8_1.setBusinessObjType(com.managers.URLManager$BusinessObjectType.Tracks);
            v10_0 = com.gaana.models.Tracks$Track;
        }
        long v12_7 = new StringBuilder();
        v12_7.append(p26);
        v12_7.append(" ");
        v12_7.append(p27);
        String v20 = v12_7.toString();
        try {
            android.database.sqlite.SQLiteDatabase v13_1 = new String[2];
            v13_1[0] = "1";
            v13_1[1] = v6_5;
        } catch (Exception v0_1) {
            String v2_2 = v0_1;
            android.database.Cursor v11_5 = 0;
            if (v11_5 != null) {
                v11_5.close();
            }
            throw v2_2;
        } catch (Exception v0_0) {
            String v2_1 = v0_0;
            v11_5 = 0;
            com.google.devtools.build.android.desugar.runtime.ThrowableExtension.printStackTrace(v2_1);
            if (v11_5 == null) {
                return v8_1;
            } else {
                v11_5.close();
                return v8_1;
            }
        } catch (Exception v0_3) {
            v2_2 = v0_3;
        }
        if (!android.text.TextUtils.isEmpty(p25)) {
            android.database.sqlite.SQLiteDatabase v13_7 = new StringBuilder();
            v13_7.append(v5_0);
            v13_7.append(" AND (");
            v13_7.append("name");
            v13_7.append(" LIKE ? OR ");
            v13_7.append("artist_names");
            v13_7.append(" LIKE ? OR ");
            v13_7.append("album_name");
            v13_7.append(" LIKE ?)");
            v5_0 = v13_7.toString();
            v13_1 = new String[5];
            v13_1[0] = "1";
            v13_1[1] = v6_5;
            String v14_2 = new StringBuilder();
            v14_2.append("%");
            v14_2.append(p25);
            v14_2.append("%");
            v13_1[2] = v14_2.toString();
            String v14_4 = new StringBuilder();
            v14_4.append("%");
            v14_4.append(p25);
            v14_4.append("%");
            v13_1[3] = v14_4.toString();
            String v14_7 = new StringBuilder();
            v14_7.append("%");
            v14_7.append(p25);
            v14_7.append("%");
            v13_1[4] = v14_7.toString();
        }
        String v16 = v5_0;
        String[] v17 = v13_1;
        String[] v15_4 = new String[2];
        v15_4[0] = "business_object";
        v15_4[1] = "added_on";
        v11_5 = this.k().query("local_favorite_table", v15_4, v16, v17, 0, 0, v20, 0);
        if (v11_5 != null) {
            while (v11_5.moveToNext()) {
                com.gaana.models.BusinessObject v7_4 = ((com.gaana.models.BusinessObject) this.a.fromJson(v11_5.getString(v11_5.getColumnIndex("business_object")), v10_0));
                long v12_5 = v11_5.getLong(v11_5.getColumnIndex("added_on"));
                v7_4.setBusinessObjType(p24);
                v7_4.setUserFavorite(1);
                v7_4.setResponseTime(v12_5);
                v4_2.add(v7_4);
            }
        }
        if (v4_2.size() > 0) {
            String v2_5;
            if (v9_2 == null) {
                v2_5 = ((long) v4_2.size());
            } else {
                v2_5 = this.b(v6_5, p25);
            }
            StringBuilder v5_5 = new StringBuilder();
            v5_5.append(v2_5);
            v5_5.append("");
            v8_1.setCount(v5_5.toString());
            v8_1.setArrListBusinessObj(((java.util.ArrayList) v4_2));
        }
        if (v11_5 == null) {
            return v8_1;
        } else {
        }
    }

Method com.e.a.c.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public com.gaana.models.BusinessObject a(com.managers.URLManager$BusinessObjectType p25, String p26, int p27, int p28, String p29, String p30)
    {
        String v6_5;
        com.managers.URLManager$BusinessObjectType v9_2;
        com.gaana.models.Artists v8_1;
        Class v10_0;
        java.util.ArrayList v4_2 = new java.util.ArrayList();
        StringBuilder v5_7 = "favourite_status=? AND type=?";
        if (p25 != com.managers.URLManager$BusinessObjectType.Tracks) {
            if (p25 != com.managers.URLManager$BusinessObjectType.Albums) {
                if (p25 != com.managers.URLManager$BusinessObjectType.Playlists) {
                    if (p25 != com.managers.URLManager$BusinessObjectType.Radios) {
                        if (p25 != com.managers.URLManager$BusinessObjectType.FavoriteOccasions) {
                            v8_1 = new com.gaana.models.Artists();
                            v8_1.setBusinessObjType(com.managers.URLManager$BusinessObjectType.Artists);
                            v6_5 = "AR";
                            v10_0 = com.gaana.models.Artists$Artist;
                        } else {
                            v6_5 = "OC%";
                            v5_7 = "favourite_status=? AND type LIKE ?";
                            v8_1 = new com.gaana.models.FavoriteOccasions();
                            v8_1.setBusinessObjType(com.managers.URLManager$BusinessObjectType.FavoriteOccasions);
                            v10_0 = com.gaana.models.FavoriteOccasions$FavoriteOccasion;
                        }
                    } else {
                        v6_5 = "RD%";
                        v5_7 = "favourite_status=? AND type LIKE ?";
                        v8_1 = new com.gaana.models.Radios();
                        v8_1.setBusinessObjType(com.managers.URLManager$BusinessObjectType.Radios);
                        v10_0 = com.gaana.models.Radios$Radio;
                    }
                    v9_2 = 0;
                } else {
                    v6_5 = "PL";
                    v8_1 = new com.gaana.models.Playlists();
                    v9_2 = android.text.TextUtils.isEmpty(p26);
                    v8_1.setBusinessObjType(com.managers.URLManager$BusinessObjectType.Playlists);
                    v10_0 = com.gaana.models.Playlists$Playlist;
                }
            } else {
                v6_5 = "AL";
                v8_1 = new com.gaana.models.Albums();
                v9_2 = android.text.TextUtils.isEmpty(p26);
                v8_1.setBusinessObjType(com.managers.URLManager$BusinessObjectType.Albums);
                v10_0 = com.gaana.models.Albums$Album;
            }
        } else {
            v6_5 = "TR";
            v8_1 = new com.gaana.models.Tracks();
            v9_2 = android.text.TextUtils.isEmpty(p26);
            v8_1.setBusinessObjType(com.managers.URLManager$BusinessObjectType.Tracks);
            v10_0 = com.gaana.models.Tracks$Track;
        }
        long v12_7 = new StringBuilder();
        v12_7.append(p29);
        v12_7.append(" ");
        v12_7.append(p30);
        v12_7.append(",");
        v12_7.append("id");
        v12_7.append(" ASC");
        String v21 = v12_7.toString();
        long v12_9 = new StringBuilder();
        v12_9.append(p27);
        v12_9.append(",");
        v12_9.append(p28);
        String v22 = v12_9.toString();
        try {
            String[] v13_1 = new String[2];
            v13_1[0] = "1";
            v13_1[1] = v6_5;
        } catch (Exception v0_1) {
            String v2_2 = v0_1;
            android.database.Cursor v11_5 = 0;
            if (v11_5 != null) {
                v11_5.close();
            }
            throw v2_2;
        } catch (Exception v0_0) {
            String v2_1 = v0_0;
            v11_5 = 0;
            com.google.devtools.build.android.desugar.runtime.ThrowableExtension.printStackTrace(v2_1);
            if (v11_5 == null) {
                return v8_1;
            } else {
                v11_5.close();
                return v8_1;
            }
        } catch (Exception v0_3) {
            v2_2 = v0_3;
        }
        if (!android.text.TextUtils.isEmpty(p26)) {
            String[] v13_12 = new StringBuilder();
            v13_12.append(v5_7);
            v13_12.append(" AND (");
            v13_12.append("name");
            v13_12.append(" LIKE ? OR ");
            v13_12.append("artist_names");
            v13_12.append(" LIKE ? OR ");
            v13_12.append("album_name");
            v13_12.append(" LIKE ?)");
            v5_7 = v13_12.toString();
            v13_1 = new String[5];
            v13_1[0] = "1";
            v13_1[1] = v6_5;
            android.database.sqlite.SQLiteDatabase v14_2 = new StringBuilder();
            v14_2.append("%");
            v14_2.append(p26);
            v14_2.append("%");
            v13_1[2] = v14_2.toString();
            android.database.sqlite.SQLiteDatabase v14_4 = new StringBuilder();
            v14_4.append("%");
            v14_4.append(p26);
            v14_4.append("%");
            v13_1[3] = v14_4.toString();
            android.database.sqlite.SQLiteDatabase v14_7 = new StringBuilder();
            v14_7.append("%");
            v14_7.append(p26);
            v14_7.append("%");
            v13_1[4] = v14_7.toString();
        }
        String v17 = v5_7;
        String[] v18 = v13_1;
        StringBuilder v5_8 = new String[2];
        v5_8[0] = "business_object";
        v5_8[1] = "added_on";
        v11_5 = this.k().query("local_favorite_table", v5_8, v17, v18, 0, 0, v21, v22);
        if (v11_5 != null) {
            while (v11_5.moveToNext()) {
                StringBuilder v5_14 = ((com.gaana.models.BusinessObject) this.a.fromJson(v11_5.getString(v11_5.getColumnIndex("business_object")), v10_0));
                long v12_5 = v11_5.getLong(v11_5.getColumnIndex("added_on"));
                v5_14.setBusinessObjType(p25);
                v5_14.setUserFavorite(1);
                v5_14.setResponseTime(v12_5);
                v4_2.add(v5_14);
            }
        }
        if (v4_2.size() > 0) {
            String v2_5;
            if (v9_2 == null) {
                v2_5 = ((long) v4_2.size());
            } else {
                v2_5 = this.b(v6_5, p26);
            }
            StringBuilder v5_11 = new StringBuilder();
            v5_11.append(v2_5);
            v5_11.append("");
            v8_1.setCount(v5_11.toString());
            v8_1.setArrListBusinessObj(((java.util.ArrayList) v4_2));
        }
        if (v11_5 == null) {
            return v8_1;
        } else {
        }
    }

Method com.e.a.c.a() calling method android.database.sqlite.SQLiteDatabase.query()


    public int a(com.gaana.models.BusinessObject p12)
    {
        int v0 = -1;
        if ((p12 != null) && (!android.text.TextUtils.isEmpty(p12.getBusinessObjId()))) {
            String[] v4 = new String[1];
            v4[0] = "favourite_status";
            android.database.sqlite.SQLiteDatabase v2_1 = this.b(p12);
            String[] v6 = new String[2];
            v6[0] = p12.getBusinessObjId();
            v6[1] = v2_1;
            android.database.Cursor v12_2 = this.k().query("local_favorite_table", v4, "id=? and type=?", v6, 0, 0, 0);
            if (v12_2.moveToFirst()) {
                v0 = v12_2.getInt(0);
            }
            v12_2.close();
        }
        return v0;
    }