work/workmanager/src/main/java/androidx/work/impl/utils/IdGenerator.java
public int nextJobSchedulerIdWithRange(int minInclusive, int maxInclusive) {
        synchronized (IdGenerator.class) {
            int id = nextId(NEXT_JOB_SCHEDULER_ID_KEY);
            if (id < minInclusive || id > maxInclusive) {
                // outside the range, re-start at minInclusive.
                id = minInclusive;
                update(NEXT_JOB_SCHEDULER_ID_KEY, id + 1);
            }
            return id;
        }
    }
/**
     * Generates IDs for {@link android.app.job.JobInfo} jobs given a reserved range.
     */
Generates IDs for  android.app.job.JobInfo jobs given a reserved range.
Generates IDs for android . app . job . JobInfo jobs given a reserved range .
public int nextJobSchedulerIdWithRange(int minInclusive, int maxInclusive) {
        synchronized (IdGenerator.class) {
            int id = nextId(NEXT_JOB_SCHEDULER_ID_KEY);
            if (id < minInclusive || id > maxInclusive) {
                id = minInclusive;
                update(NEXT_JOB_SCHEDULER_ID_KEY, id + 1);
            }
            return id;
        }
    }
public int nextJobSchedulerIdWithRange ( int minInclusive , int maxInclusive ) { synchronized ( IdGenerator . class ) { int id = nextId ( NEXT_JOB_SCHEDULER_ID_KEY ) ; if ( id < minInclusive || id > maxInclusive ) { id = minInclusive ; update ( NEXT_JOB_SCHEDULER_ID_KEY , id + 1 ) ; } return id ; } }
Generates IDs for {@link android.app.job.JobInfo} jobs given a reserved range.
Generates IDs for { @link android . app . job . JobInfo } jobs given a reserved range .
// outside the range, re-start at minInclusive.