package p037.p123.p124.p129.p131;

import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import p037.p123.AbstractC2562;
import p037.p123.p124.p134.p136.InterfaceC2730;

/* JADX INFO: renamed from: މ.ޗ.ޘ.ލ.ރ.ؠ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public class C2638 extends AbstractC2639<Boolean> {

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

    public C2638(Context context, InterfaceC2730 interfaceC2730) {
        super(context, interfaceC2730);
    }

    @Override // p037.p123.p124.p129.p131.AbstractC2641
    /* JADX INFO: renamed from: ֏ */
    public Object mo4720() {
        Intent intentRegisterReceiver = this.f8262.registerReceiver(null, new IntentFilter("android.intent.action.BATTERY_CHANGED"));
        if (intentRegisterReceiver != null) {
            return Boolean.valueOf(intentRegisterReceiver.getIntExtra("status", -1) == 1 || ((float) intentRegisterReceiver.getIntExtra("level", -1)) / ((float) intentRegisterReceiver.getIntExtra("scale", -1)) > 0.15f);
        }
        AbstractC2562.m4623().mo4626(f8256, "getInitialState - null intent received", new Throwable[0]);
        return null;
    }

    @Override // p037.p123.p124.p129.p131.AbstractC2639
    /* JADX INFO: renamed from: ֏ */
    public void mo4721(Context context, Intent intent) {
        if (intent.getAction() == null) {
            return;
        }
        AbstractC2562.m4623().mo4625(f8256, String.format("Received %s", intent.getAction()), new Throwable[0]);
        String action = intent.getAction();
        byte b = -1;
        int iHashCode = action.hashCode();
        if (iHashCode != -1980154005) {
            if (iHashCode == 490310653 && action.equals("android.intent.action.BATTERY_LOW")) {
                b = 1;
            }
        } else if (action.equals("android.intent.action.BATTERY_OKAY")) {
            b = 0;
        }
        if (b == 0) {
            m4725(true);
        } else {
            if (b != 1) {
                return;
            }
            m4725(false);
        }
    }

    @Override // p037.p123.p124.p129.p131.AbstractC2639
    /* JADX INFO: renamed from: ށ */
    public IntentFilter mo4722() {
        IntentFilter intentFilter = new IntentFilter();
        intentFilter.addAction("android.intent.action.BATTERY_OKAY");
        intentFilter.addAction("android.intent.action.BATTERY_LOW");
        return intentFilter;
    }
}
