package a1; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import androidx.work.m; /* loaded from: classes.dex */ public class h extends c { /* renamed from: i, reason: collision with root package name */ private static final String f30i = m.f("StorageNotLowTracker"); public h(Context context, e1.a aVar) { super(context, aVar); } @Override // a1.c public IntentFilter g() { IntentFilter intentFilter = new IntentFilter(); intentFilter.addAction("android.intent.action.DEVICE_STORAGE_OK"); intentFilter.addAction("android.intent.action.DEVICE_STORAGE_LOW"); return intentFilter; } @Override // a1.c public void h(Context context, Intent intent) { if (intent.getAction() == null) { return; } m.c().a(f30i, String.format("Received %s", intent.getAction()), new Throwable[0]); String action = intent.getAction(); action.hashCode(); if (action.equals("android.intent.action.DEVICE_STORAGE_LOW")) { d(Boolean.FALSE); } else if (action.equals("android.intent.action.DEVICE_STORAGE_OK")) { d(Boolean.TRUE); } } @Override // a1.d /* renamed from: i, reason: merged with bridge method [inline-methods] */ public Boolean b() { Intent registerReceiver = this.f18b.registerReceiver(null, g()); if (registerReceiver == null || registerReceiver.getAction() == null) { return Boolean.TRUE; } String action = registerReceiver.getAction(); action.hashCode(); if (action.equals("android.intent.action.DEVICE_STORAGE_LOW")) { return Boolean.FALSE; } if (action.equals("android.intent.action.DEVICE_STORAGE_OK")) { return Boolean.TRUE; } return null; } }