package androidx.work.impl;

import android.content.Context;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import p037.p109.AbstractC2401;
import p037.p109.C2377;
import p037.p109.C2387;
import p037.p109.C2406;
import p037.p109.p111.C2421;
import p037.p109.p111.C2424;
import p037.p115.p116.InterfaceC2442;
import p037.p115.p116.InterfaceC2443;
import p037.p115.p116.p117.C2449;
import p037.p123.p124.p133.C2655;
import p037.p123.p124.p133.C2659;
import p037.p123.p124.p133.C2663;
import p037.p123.p124.p133.C2668;
import p037.p123.p124.p133.C2672;
import p037.p123.p124.p133.C2682;
import p037.p123.p124.p133.C2694;
import p037.p123.p124.p133.InterfaceC2654;
import p037.p123.p124.p133.InterfaceC2658;
import p037.p123.p124.p133.InterfaceC2662;
import p037.p123.p124.p133.InterfaceC2667;
import p037.p123.p124.p133.InterfaceC2671;
import p037.p123.p124.p133.InterfaceC2680;
import p037.p123.p124.p133.InterfaceC2693;

/* JADX INFO: loaded from: classes.dex */
public final class WorkDatabase_Impl extends WorkDatabase {

    /* JADX INFO: renamed from: މ, reason: contains not printable characters */
    public volatile InterfaceC2680 f1439;

    /* JADX INFO: renamed from: ފ, reason: contains not printable characters */
    public volatile InterfaceC2654 f1440;

    /* JADX INFO: renamed from: ދ, reason: contains not printable characters */
    public volatile InterfaceC2693 f1441;

    /* JADX INFO: renamed from: ތ, reason: contains not printable characters */
    public volatile InterfaceC2662 f1442;

    /* JADX INFO: renamed from: ލ, reason: contains not printable characters */
    public volatile InterfaceC2667 f1443;

    /* JADX INFO: renamed from: ގ, reason: contains not printable characters */
    public volatile InterfaceC2671 f1444;

    /* JADX INFO: renamed from: ޏ, reason: contains not printable characters */
    public volatile InterfaceC2658 f1445;

    /* JADX INFO: renamed from: androidx.work.impl.WorkDatabase_Impl$֏, reason: contains not printable characters */
    public class C0247 extends C2406.AbstractC2407 {
        public C0247(int i) {
            super(i);
        }

        @Override // p037.p109.C2406.AbstractC2407
        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public void mo858(InterfaceC2442 interfaceC2442) {
            ((C2449) interfaceC2442).f7741.execSQL("CREATE TABLE IF NOT EXISTS `Dependency` (`work_spec_id` TEXT NOT NULL, `prerequisite_id` TEXT NOT NULL, PRIMARY KEY(`work_spec_id`, `prerequisite_id`), FOREIGN KEY(`work_spec_id`) REFERENCES `WorkSpec`(`id`) ON UPDATE CASCADE ON DELETE CASCADE , FOREIGN KEY(`prerequisite_id`) REFERENCES `WorkSpec`(`id`) ON UPDATE CASCADE ON DELETE CASCADE )");
            C2449 c2449 = (C2449) interfaceC2442;
            c2449.f7741.execSQL("CREATE INDEX IF NOT EXISTS `index_Dependency_work_spec_id` ON `Dependency` (`work_spec_id`)");
            c2449.f7741.execSQL("CREATE INDEX IF NOT EXISTS `index_Dependency_prerequisite_id` ON `Dependency` (`prerequisite_id`)");
            c2449.f7741.execSQL("CREATE TABLE IF NOT EXISTS `WorkSpec` (`id` TEXT NOT NULL, `state` INTEGER NOT NULL, `worker_class_name` TEXT NOT NULL, `input_merger_class_name` TEXT, `input` BLOB NOT NULL, `output` BLOB NOT NULL, `initial_delay` INTEGER NOT NULL, `interval_duration` INTEGER NOT NULL, `flex_duration` INTEGER NOT NULL, `run_attempt_count` INTEGER NOT NULL, `backoff_policy` INTEGER NOT NULL, `backoff_delay_duration` INTEGER NOT NULL, `period_start_time` INTEGER NOT NULL, `minimum_retention_duration` INTEGER NOT NULL, `schedule_requested_at` INTEGER NOT NULL, `run_in_foreground` INTEGER NOT NULL, `required_network_type` INTEGER, `requires_charging` INTEGER NOT NULL, `requires_device_idle` INTEGER NOT NULL, `requires_battery_not_low` INTEGER NOT NULL, `requires_storage_not_low` INTEGER NOT NULL, `trigger_content_update_delay` INTEGER NOT NULL, `trigger_max_content_delay` INTEGER NOT NULL, `content_uri_triggers` BLOB, PRIMARY KEY(`id`))");
            c2449.f7741.execSQL("CREATE INDEX IF NOT EXISTS `index_WorkSpec_schedule_requested_at` ON `WorkSpec` (`schedule_requested_at`)");
            c2449.f7741.execSQL("CREATE INDEX IF NOT EXISTS `index_WorkSpec_period_start_time` ON `WorkSpec` (`period_start_time`)");
            c2449.f7741.execSQL("CREATE TABLE IF NOT EXISTS `WorkTag` (`tag` TEXT NOT NULL, `work_spec_id` TEXT NOT NULL, PRIMARY KEY(`tag`, `work_spec_id`), FOREIGN KEY(`work_spec_id`) REFERENCES `WorkSpec`(`id`) ON UPDATE CASCADE ON DELETE CASCADE )");
            c2449.f7741.execSQL("CREATE INDEX IF NOT EXISTS `index_WorkTag_work_spec_id` ON `WorkTag` (`work_spec_id`)");
            c2449.f7741.execSQL("CREATE TABLE IF NOT EXISTS `SystemIdInfo` (`work_spec_id` TEXT NOT NULL, `system_id` INTEGER NOT NULL, PRIMARY KEY(`work_spec_id`), FOREIGN KEY(`work_spec_id`) REFERENCES `WorkSpec`(`id`) ON UPDATE CASCADE ON DELETE CASCADE )");
            c2449.f7741.execSQL("CREATE TABLE IF NOT EXISTS `WorkName` (`name` TEXT NOT NULL, `work_spec_id` TEXT NOT NULL, PRIMARY KEY(`name`, `work_spec_id`), FOREIGN KEY(`work_spec_id`) REFERENCES `WorkSpec`(`id`) ON UPDATE CASCADE ON DELETE CASCADE )");
            c2449.f7741.execSQL("CREATE INDEX IF NOT EXISTS `index_WorkName_work_spec_id` ON `WorkName` (`work_spec_id`)");
            c2449.f7741.execSQL("CREATE TABLE IF NOT EXISTS `WorkProgress` (`work_spec_id` TEXT NOT NULL, `progress` BLOB NOT NULL, PRIMARY KEY(`work_spec_id`), FOREIGN KEY(`work_spec_id`) REFERENCES `WorkSpec`(`id`) ON UPDATE CASCADE ON DELETE CASCADE )");
            c2449.f7741.execSQL("CREATE TABLE IF NOT EXISTS `Preference` (`key` TEXT NOT NULL, `long_value` INTEGER, PRIMARY KEY(`key`))");
            c2449.f7741.execSQL("CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)");
            c2449.f7741.execSQL("INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'cf029002fffdcadf079e8d0a1c9a70ac')");
        }

        @Override // p037.p109.C2406.AbstractC2407
        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public void mo859(InterfaceC2442 interfaceC2442) {
            ((C2449) interfaceC2442).f7741.execSQL("DROP TABLE IF EXISTS `Dependency`");
            C2449 c2449 = (C2449) interfaceC2442;
            c2449.f7741.execSQL("DROP TABLE IF EXISTS `WorkSpec`");
            c2449.f7741.execSQL("DROP TABLE IF EXISTS `WorkTag`");
            c2449.f7741.execSQL("DROP TABLE IF EXISTS `SystemIdInfo`");
            c2449.f7741.execSQL("DROP TABLE IF EXISTS `WorkName`");
            c2449.f7741.execSQL("DROP TABLE IF EXISTS `WorkProgress`");
            c2449.f7741.execSQL("DROP TABLE IF EXISTS `Preference`");
            if (WorkDatabase_Impl.this.f7602 != null) {
                int size = WorkDatabase_Impl.this.f7602.size();
                for (int i = 0; i < size; i++) {
                    if (WorkDatabase_Impl.this.f7602.get(i) == null) {
                        throw null;
                    }
                }
            }
        }

        @Override // p037.p109.C2406.AbstractC2407
        /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
        public void mo860(InterfaceC2442 interfaceC2442) {
            if (WorkDatabase_Impl.this.f7602 != null) {
                int size = WorkDatabase_Impl.this.f7602.size();
                for (int i = 0; i < size; i++) {
                    if (WorkDatabase_Impl.this.f7602.get(i) == null) {
                        throw null;
                    }
                }
            }
        }

        @Override // p037.p109.C2406.AbstractC2407
        /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
        public void mo861(InterfaceC2442 interfaceC2442) {
            WorkDatabase_Impl.this.f7595 = interfaceC2442;
            ((C2449) interfaceC2442).f7741.execSQL("PRAGMA foreign_keys = ON");
            WorkDatabase_Impl.this.f7599.m4457(interfaceC2442);
            List<AbstractC2401.AbstractC2403> list = WorkDatabase_Impl.this.f7602;
            if (list != null) {
                int size = list.size();
                for (int i = 0; i < size; i++) {
                    WorkDatabase_Impl.this.f7602.get(i).mo4487(interfaceC2442);
                }
            }
        }

        @Override // p037.p109.C2406.AbstractC2407
        /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
        public void mo862(InterfaceC2442 interfaceC2442) {
        }

        @Override // p037.p109.C2406.AbstractC2407
        /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
        public void mo863(InterfaceC2442 interfaceC2442) {
            C2421.m4505(interfaceC2442);
        }

        @Override // p037.p109.C2406.AbstractC2407
        /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
        public C2406.C2408 mo864(InterfaceC2442 interfaceC2442) {
            HashMap map = new HashMap(2);
            map.put("work_spec_id", new C2424.C2425("work_spec_id", "TEXT", true, 1, null, 1));
            map.put("prerequisite_id", new C2424.C2425("prerequisite_id", "TEXT", true, 2, null, 1));
            HashSet hashSet = new HashSet(2);
            hashSet.add(new C2424.C2426("WorkSpec", "CASCADE", "CASCADE", Arrays.asList("work_spec_id"), Arrays.asList("id")));
            hashSet.add(new C2424.C2426("WorkSpec", "CASCADE", "CASCADE", Arrays.asList("prerequisite_id"), Arrays.asList("id")));
            HashSet hashSet2 = new HashSet(2);
            hashSet2.add(new C2424.C2428("index_Dependency_work_spec_id", false, Arrays.asList("work_spec_id")));
            hashSet2.add(new C2424.C2428("index_Dependency_prerequisite_id", false, Arrays.asList("prerequisite_id")));
            C2424 c2424 = new C2424("Dependency", map, hashSet, hashSet2);
            C2424 c2424M4511 = C2424.m4511(interfaceC2442, "Dependency");
            if (!c2424.equals(c2424M4511)) {
                return new C2406.C2408(false, "Dependency(androidx.work.impl.model.Dependency).\n Expected:\n" + c2424 + "\n Found:\n" + c2424M4511);
            }
            HashMap map2 = new HashMap(24);
            map2.put("id", new C2424.C2425("id", "TEXT", true, 1, null, 1));
            map2.put("state", new C2424.C2425("state", "INTEGER", true, 0, null, 1));
            map2.put("worker_class_name", new C2424.C2425("worker_class_name", "TEXT", true, 0, null, 1));
            map2.put("input_merger_class_name", new C2424.C2425("input_merger_class_name", "TEXT", false, 0, null, 1));
            map2.put("input", new C2424.C2425("input", "BLOB", true, 0, null, 1));
            map2.put("output", new C2424.C2425("output", "BLOB", true, 0, null, 1));
            map2.put("initial_delay", new C2424.C2425("initial_delay", "INTEGER", true, 0, null, 1));
            map2.put("interval_duration", new C2424.C2425("interval_duration", "INTEGER", true, 0, null, 1));
            map2.put("flex_duration", new C2424.C2425("flex_duration", "INTEGER", true, 0, null, 1));
            map2.put("run_attempt_count", new C2424.C2425("run_attempt_count", "INTEGER", true, 0, null, 1));
            map2.put("backoff_policy", new C2424.C2425("backoff_policy", "INTEGER", true, 0, null, 1));
            map2.put("backoff_delay_duration", new C2424.C2425("backoff_delay_duration", "INTEGER", true, 0, null, 1));
            map2.put("period_start_time", new C2424.C2425("period_start_time", "INTEGER", true, 0, null, 1));
            map2.put("minimum_retention_duration", new C2424.C2425("minimum_retention_duration", "INTEGER", true, 0, null, 1));
            map2.put("schedule_requested_at", new C2424.C2425("schedule_requested_at", "INTEGER", true, 0, null, 1));
            map2.put("run_in_foreground", new C2424.C2425("run_in_foreground", "INTEGER", true, 0, null, 1));
            map2.put("required_network_type", new C2424.C2425("required_network_type", "INTEGER", false, 0, null, 1));
            map2.put("requires_charging", new C2424.C2425("requires_charging", "INTEGER", true, 0, null, 1));
            map2.put("requires_device_idle", new C2424.C2425("requires_device_idle", "INTEGER", true, 0, null, 1));
            map2.put("requires_battery_not_low", new C2424.C2425("requires_battery_not_low", "INTEGER", true, 0, null, 1));
            map2.put("requires_storage_not_low", new C2424.C2425("requires_storage_not_low", "INTEGER", true, 0, null, 1));
            map2.put("trigger_content_update_delay", new C2424.C2425("trigger_content_update_delay", "INTEGER", true, 0, null, 1));
            map2.put("trigger_max_content_delay", new C2424.C2425("trigger_max_content_delay", "INTEGER", true, 0, null, 1));
            map2.put("content_uri_triggers", new C2424.C2425("content_uri_triggers", "BLOB", false, 0, null, 1));
            HashSet hashSet3 = new HashSet(0);
            HashSet hashSet4 = new HashSet(2);
            hashSet4.add(new C2424.C2428("index_WorkSpec_schedule_requested_at", false, Arrays.asList("schedule_requested_at")));
            hashSet4.add(new C2424.C2428("index_WorkSpec_period_start_time", false, Arrays.asList("period_start_time")));
            C2424 c24242 = new C2424("WorkSpec", map2, hashSet3, hashSet4);
            C2424 c2424M45112 = C2424.m4511(interfaceC2442, "WorkSpec");
            if (!c24242.equals(c2424M45112)) {
                return new C2406.C2408(false, "WorkSpec(androidx.work.impl.model.WorkSpec).\n Expected:\n" + c24242 + "\n Found:\n" + c2424M45112);
            }
            HashMap map3 = new HashMap(2);
            map3.put("tag", new C2424.C2425("tag", "TEXT", true, 1, null, 1));
            map3.put("work_spec_id", new C2424.C2425("work_spec_id", "TEXT", true, 2, null, 1));
            HashSet hashSet5 = new HashSet(1);
            hashSet5.add(new C2424.C2426("WorkSpec", "CASCADE", "CASCADE", Arrays.asList("work_spec_id"), Arrays.asList("id")));
            HashSet hashSet6 = new HashSet(1);
            hashSet6.add(new C2424.C2428("index_WorkTag_work_spec_id", false, Arrays.asList("work_spec_id")));
            C2424 c24243 = new C2424("WorkTag", map3, hashSet5, hashSet6);
            C2424 c2424M45113 = C2424.m4511(interfaceC2442, "WorkTag");
            if (!c24243.equals(c2424M45113)) {
                return new C2406.C2408(false, "WorkTag(androidx.work.impl.model.WorkTag).\n Expected:\n" + c24243 + "\n Found:\n" + c2424M45113);
            }
            HashMap map4 = new HashMap(2);
            map4.put("work_spec_id", new C2424.C2425("work_spec_id", "TEXT", true, 1, null, 1));
            map4.put("system_id", new C2424.C2425("system_id", "INTEGER", true, 0, null, 1));
            HashSet hashSet7 = new HashSet(1);
            hashSet7.add(new C2424.C2426("WorkSpec", "CASCADE", "CASCADE", Arrays.asList("work_spec_id"), Arrays.asList("id")));
            C2424 c24244 = new C2424("SystemIdInfo", map4, hashSet7, new HashSet(0));
            C2424 c2424M45114 = C2424.m4511(interfaceC2442, "SystemIdInfo");
            if (!c24244.equals(c2424M45114)) {
                return new C2406.C2408(false, "SystemIdInfo(androidx.work.impl.model.SystemIdInfo).\n Expected:\n" + c24244 + "\n Found:\n" + c2424M45114);
            }
            HashMap map5 = new HashMap(2);
            map5.put("name", new C2424.C2425("name", "TEXT", true, 1, null, 1));
            map5.put("work_spec_id", new C2424.C2425("work_spec_id", "TEXT", true, 2, null, 1));
            HashSet hashSet8 = new HashSet(1);
            hashSet8.add(new C2424.C2426("WorkSpec", "CASCADE", "CASCADE", Arrays.asList("work_spec_id"), Arrays.asList("id")));
            HashSet hashSet9 = new HashSet(1);
            hashSet9.add(new C2424.C2428("index_WorkName_work_spec_id", false, Arrays.asList("work_spec_id")));
            C2424 c24245 = new C2424("WorkName", map5, hashSet8, hashSet9);
            C2424 c2424M45115 = C2424.m4511(interfaceC2442, "WorkName");
            if (!c24245.equals(c2424M45115)) {
                return new C2406.C2408(false, "WorkName(androidx.work.impl.model.WorkName).\n Expected:\n" + c24245 + "\n Found:\n" + c2424M45115);
            }
            HashMap map6 = new HashMap(2);
            map6.put("work_spec_id", new C2424.C2425("work_spec_id", "TEXT", true, 1, null, 1));
            map6.put("progress", new C2424.C2425("progress", "BLOB", true, 0, null, 1));
            HashSet hashSet10 = new HashSet(1);
            hashSet10.add(new C2424.C2426("WorkSpec", "CASCADE", "CASCADE", Arrays.asList("work_spec_id"), Arrays.asList("id")));
            C2424 c24246 = new C2424("WorkProgress", map6, hashSet10, new HashSet(0));
            C2424 c2424M45116 = C2424.m4511(interfaceC2442, "WorkProgress");
            if (!c24246.equals(c2424M45116)) {
                return new C2406.C2408(false, "WorkProgress(androidx.work.impl.model.WorkProgress).\n Expected:\n" + c24246 + "\n Found:\n" + c2424M45116);
            }
            HashMap map7 = new HashMap(2);
            map7.put("key", new C2424.C2425("key", "TEXT", true, 1, null, 1));
            map7.put("long_value", new C2424.C2425("long_value", "INTEGER", false, 0, null, 1));
            C2424 c24247 = new C2424("Preference", map7, new HashSet(0), new HashSet(0));
            C2424 c2424M45117 = C2424.m4511(interfaceC2442, "Preference");
            if (c24247.equals(c2424M45117)) {
                return new C2406.C2408(true, null);
            }
            return new C2406.C2408(false, "Preference(androidx.work.impl.model.Preference).\n Expected:\n" + c24247 + "\n Found:\n" + c2424M45117);
        }
    }

    @Override // p037.p109.AbstractC2401
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public InterfaceC2443 mo856(C2377 c2377) {
        C2406 c2406 = new C2406(c2377, new C0247(11), "cf029002fffdcadf079e8d0a1c9a70ac", "8aff2efc47fafe870c738f727dfcfc6e");
        Context context = c2377.f7532;
        String str = c2377.f7533;
        if (context == null) {
            throw new IllegalArgumentException("Must set a non-null context to create the configuration.");
        }
        return c2377.f7531.mo852(new InterfaceC2443.C2445(context, str, c2406, false));
    }

    @Override // p037.p109.AbstractC2401
    /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
    public C2387 mo857() {
        return new C2387(this, new HashMap(0), new HashMap(0), "Dependency", "WorkSpec", "WorkTag", "SystemIdInfo", "WorkName", "WorkProgress", "Preference");
    }

    @Override // androidx.work.impl.WorkDatabase
    /* JADX INFO: renamed from: އ */
    public InterfaceC2654 mo845() {
        InterfaceC2654 interfaceC2654;
        if (this.f1440 != null) {
            return this.f1440;
        }
        synchronized (this) {
            if (this.f1440 == null) {
                this.f1440 = new C2655(this);
            }
            interfaceC2654 = this.f1440;
        }
        return interfaceC2654;
    }

    @Override // androidx.work.impl.WorkDatabase
    /* JADX INFO: renamed from: ވ */
    public InterfaceC2658 mo846() {
        InterfaceC2658 interfaceC2658;
        if (this.f1445 != null) {
            return this.f1445;
        }
        synchronized (this) {
            if (this.f1445 == null) {
                this.f1445 = new C2659(this);
            }
            interfaceC2658 = this.f1445;
        }
        return interfaceC2658;
    }

    @Override // androidx.work.impl.WorkDatabase
    /* JADX INFO: renamed from: މ */
    public InterfaceC2662 mo847() {
        InterfaceC2662 interfaceC2662;
        if (this.f1442 != null) {
            return this.f1442;
        }
        synchronized (this) {
            if (this.f1442 == null) {
                this.f1442 = new C2663(this);
            }
            interfaceC2662 = this.f1442;
        }
        return interfaceC2662;
    }

    @Override // androidx.work.impl.WorkDatabase
    /* JADX INFO: renamed from: ފ */
    public InterfaceC2667 mo848() {
        InterfaceC2667 interfaceC2667;
        if (this.f1443 != null) {
            return this.f1443;
        }
        synchronized (this) {
            if (this.f1443 == null) {
                this.f1443 = new C2668(this);
            }
            interfaceC2667 = this.f1443;
        }
        return interfaceC2667;
    }

    @Override // androidx.work.impl.WorkDatabase
    /* JADX INFO: renamed from: ދ */
    public InterfaceC2671 mo849() {
        InterfaceC2671 interfaceC2671;
        if (this.f1444 != null) {
            return this.f1444;
        }
        synchronized (this) {
            if (this.f1444 == null) {
                this.f1444 = new C2672(this);
            }
            interfaceC2671 = this.f1444;
        }
        return interfaceC2671;
    }

    @Override // androidx.work.impl.WorkDatabase
    /* JADX INFO: renamed from: ތ */
    public InterfaceC2680 mo850() {
        InterfaceC2680 interfaceC2680;
        if (this.f1439 != null) {
            return this.f1439;
        }
        synchronized (this) {
            if (this.f1439 == null) {
                this.f1439 = new C2682(this);
            }
            interfaceC2680 = this.f1439;
        }
        return interfaceC2680;
    }

    @Override // androidx.work.impl.WorkDatabase
    /* JADX INFO: renamed from: ލ */
    public InterfaceC2693 mo851() {
        InterfaceC2693 interfaceC2693;
        if (this.f1441 != null) {
            return this.f1441;
        }
        synchronized (this) {
            if (this.f1441 == null) {
                this.f1441 = new C2694(this);
            }
            interfaceC2693 = this.f1441;
        }
        return interfaceC2693;
    }
}
