content: package androidx.work.impl.background.systemalarm;
  
  import android.content.BroadcastReceiver;
  import android.content.Context;
  import android.content.Intent;
  import androidx.work.Constraints;
  import androidx.work.Logger;
  import androidx.work.NetworkType;
  import androidx.work.impl.model.WorkSpec;
  import java.util.List;
  import mt.Log1F380D;
  
  /* compiled from: 00B8 */
  abstract class ConstraintProxy extends BroadcastReceiver {
      private static final String TAG;
  
      public static class BatteryChargingProxy extends ConstraintProxy {
          public /* bridge */ /* synthetic */ void onReceive(Context context, Intent intent) {
              ConstraintProxy.super.onReceive(context, intent);
          }
      }
  
      public static class BatteryNotLowProxy extends ConstraintProxy {
          public /* bridge */ /* synthetic */ void onReceive(Context context, Intent intent) {
              ConstraintProxy.super.onReceive(context, intent);
          }
      }
  
      public static class NetworkStateProxy extends ConstraintProxy {
          public /* bridge */ /* synthetic */ void onReceive(Context context, Intent intent) {
              ConstraintProxy.super.onReceive(context, intent);
          }
      }
  
      public static class StorageNotLowProxy extends ConstraintProxy {
          public /* bridge */ /* synthetic */ void onReceive(Context context, Intent intent) {
              ConstraintProxy.super.onReceive(context, intent);
          }
      }
  
      static {
          String tagWithPrefix = Logger.tagWithPrefix("ConstraintProxy");
          Log1F380D.a((Object) tagWithPrefix);
          TAG = tagWithPrefix;
      }
  
      ConstraintProxy() {
      }
  
      static void updateAll(Context context, List<WorkSpec> list) {
          boolean z = false;
          boolean z2 = false;
          boolean z3 = false;
          boolean z4 = false;
          for (WorkSpec workSpec : list) {
              Constraints constraints = workSpec.constraints;
              z |= constraints.requiresBatteryNotLow();
              z2 |= constraints.requiresCharging();
              z3 |= constraints.requiresStorageNotLow();
              z4 |= constraints.getRequiredNetworkType() != NetworkType.NOT_REQUIRED;
              if (z && z2 && z3 && z4) {
                  break;
              }
          }
          context.sendBroadcast(ConstraintProxyUpdateReceiver.newConstraintProxyUpdateIntent(context, z, z2, z3, z4));
      }
  
      public void onReceive(Context context, Intent intent) {
          Logger logger = Logger.get();
          String str = TAG;
          String format = String.format("onReceive : %s", new Object[]{intent});
          Log1F380D.a((Object) format);
          logger.debug(str, format, new Throwable[0]);
          context.startService(CommandHandler.createConstraintsChangedIntent(context));
      }
  }
  