content: package androidx.work.impl.constraints.controllers;
  
  import android.content.Context;
  import android.os.Build;
  import androidx.work.NetworkType;
  import androidx.work.impl.constraints.NetworkState;
  import androidx.work.impl.constraints.trackers.Trackers;
  import androidx.work.impl.model.WorkSpec;
  import androidx.work.impl.utils.taskexecutor.TaskExecutor;
  
  public class NetworkConnectedController extends ConstraintController<NetworkState> {
      public NetworkConnectedController(Context context, TaskExecutor taskExecutor) {
          super(Trackers.getInstance(context, taskExecutor).getNetworkStateTracker());
      }
  
      /* access modifiers changed from: package-private */
      public boolean hasConstraint(WorkSpec workSpec) {
          return workSpec.constraints.getRequiredNetworkType() == NetworkType.CONNECTED;
      }
  
      /* access modifiers changed from: package-private */
      public boolean isConstrained(NetworkState state) {
          return Build.VERSION.SDK_INT >= 26 ? !state.isConnected() || !state.isValidated() : !state.isConnected();
      }
  }
  