work/workmanager/src/main/java/androidx/work/impl/WorkManagerImpl.java
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
    public void rescheduleEligibleWork() {
        // TODO (rahulrav@) Make every scheduler do its own cancelAll().
        if (Build.VERSION.SDK_INT >= WorkManagerImpl.MIN_JOB_SCHEDULER_API_LEVEL) {
            SystemJobScheduler.jobSchedulerCancelAll(getApplicationContext());
        }

        // Reset scheduled state.
        getWorkDatabase().workSpecDao().resetScheduledState();

        // Delegate to the WorkManager's schedulers.
        // Using getters here so we can use from a mocked instance
        // of WorkManagerImpl.
        Schedulers.schedule(getConfiguration(), getWorkDatabase(), getSchedulers());
    }
/**
     * Reschedules all the eligible work. Useful for cases like, app was force stopped or
     * BOOT_COMPLETED, TIMEZONE_CHANGED and TIME_SET for AlarmManager.
     *
     * @hide
     */
Reschedules all the eligible work. Useful for cases like, app was force stopped or
BOOT_COMPLETED, TIMEZONE_CHANGED and TIME_SET for AlarmManager.

@hide
Reschedules all the eligible work . Useful for cases like app was force stopped or BOOT_COMPLETED TIMEZONE_CHANGED and TIME_SET for AlarmManager . @hide
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
    public void rescheduleEligibleWork() {
        if (Build.VERSION.SDK_INT >= WorkManagerImpl.MIN_JOB_SCHEDULER_API_LEVEL) {
            SystemJobScheduler.jobSchedulerCancelAll(getApplicationContext());
        }
        getWorkDatabase().workSpecDao().resetScheduledState();
        Schedulers.schedule(getConfiguration(), getWorkDatabase(), getSchedulers());
    }
@ RestrictTo ( RestrictTo . Scope . LIBRARY_GROUP ) public void rescheduleEligibleWork ( ) { if ( Build . VERSION . SDK_INT >= WorkManagerImpl . MIN_JOB_SCHEDULER_API_LEVEL ) { SystemJobScheduler . jobSchedulerCancelAll ( getApplicationContext ( ) ) ; } getWorkDatabase ( ) . workSpecDao ( ) . resetScheduledState ( ) ; Schedulers . schedule ( getConfiguration ( ) , getWorkDatabase ( ) , getSchedulers ( ) ) ; }
Reschedules all the eligible work.
Reschedules all the eligible work .
// TODO (rahulrav@) Make every scheduler do its own cancelAll(). // Reset scheduled state. // Delegate to the WorkManager's schedulers. // Using getters here so we can use from a mocked instance // of WorkManagerImpl.