package androidx.work.impl.background.systemalarm;

import android.content.Intent;
import p037.p099.ServiceC2224;
import p037.p123.AbstractC2562;
import p037.p123.p124.p125.p127.C2616;
import p037.p123.p124.p134.C2709;

/* JADX INFO: loaded from: classes.dex */
public class SystemAlarmService extends ServiceC2224 implements C2616.InterfaceC2619 {

    /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
    public static final String f1453 = AbstractC2562.m4622("SystemAlarmService");

    /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
    public C2616 f1454;

    /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
    public boolean f1455;

    @Override // p037.p099.ServiceC2224, android.app.Service
    public void onCreate() {
        super.onCreate();
        m868();
        this.f1455 = false;
    }

    @Override // p037.p099.ServiceC2224, android.app.Service
    public void onDestroy() {
        super.onDestroy();
        this.f1455 = true;
        this.f1454.m4701();
    }

    @Override // p037.p099.ServiceC2224, android.app.Service
    public int onStartCommand(Intent intent, int i, int i2) {
        super.onStartCommand(intent, i, i2);
        if (this.f1455) {
            AbstractC2562.m4623().mo4627(f1453, "Re-initializing SystemAlarmDispatcher after a request to shut-down.", new Throwable[0]);
            this.f1454.m4701();
            m868();
            this.f1455 = false;
        }
        if (intent == null) {
            return 3;
        }
        this.f1454.m4698(intent, i2);
        return 3;
    }

    @Override // p037.p123.p124.p125.p127.C2616.InterfaceC2619
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public void mo867() {
        this.f1455 = true;
        AbstractC2562.m4623().mo4625(f1453, "All commands completed in dispatcher", new Throwable[0]);
        C2709.m4778();
        stopSelf();
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public final void m868() {
        C2616 c2616 = new C2616(this);
        this.f1454 = c2616;
        if (c2616.f8226 != null) {
            AbstractC2562.m4623().mo4626(C2616.f8216, "A completion listener for SystemAlarmDispatcher already exists.", new Throwable[0]);
        } else {
            c2616.f8226 = this;
        }
    }
}
