work/workmanager/src/main/java/androidx/work/impl/constraints/WorkConstraintsTracker.java
public boolean areAllConstraintsMet(@NonNull String workSpecId) {
        for (ConstraintController constraintController : mConstraintControllers) {
            if (constraintController.isWorkSpecConstrained(workSpecId)) {
                Log.d(TAG, String.format("Work %s constrained by %s", workSpecId,
                        constraintController.getClass().getSimpleName()));
                return false;
            }
        }
        return true;
    }
/**
     * Returns <code>true</code> if all the underlying constraints for a given WorkSpec are met.
     *
     * @param workSpecId The {@link WorkSpec} id
     * @return <code>true</code> if all the underlying constraints for a given {@link WorkSpec} are
     * met.
     */
Returns true if all the underlying constraints for a given WorkSpec are met.
@param workSpecId The  WorkSpec id
@return true if all the underlying constraints for a given  WorkSpec are
met.
Returns true if all the underlying constraints for a given WorkSpec are met . @param workSpecId The WorkSpec id @return true if all the underlying constraints for a given WorkSpec are met .
public boolean areAllConstraintsMet(@NonNull String workSpecId) {
        for (ConstraintController constraintController : mConstraintControllers) {
            if (constraintController.isWorkSpecConstrained(workSpecId)) {
                Log.d(TAG, String.format("Work %s constrained by %s", workSpecId,
                        constraintController.getClass().getSimpleName()));
                return false;
            }
        }
        return true;
    }
public boolean areAllConstraintsMet ( @ NonNull String workSpecId ) { for ( ConstraintController constraintController : mConstraintControllers ) { if ( constraintController . isWorkSpecConstrained ( workSpecId ) ) { Log . d ( TAG , String . format ( "Work %s constrained by %s" , workSpecId , constraintController . getClass ( ) . getSimpleName ( ) ) ) ; return false ; } } return true ; }
Returns <code>true</code> if all the underlying constraints for a given WorkSpec are met.
Returns <code > true< / code > if all the underlying constraints for a given WorkSpec are met .