work/workmanager-firebase/src/main/java/androidx/work/impl/background/firebase/FirebaseJobConverter.java
private static JobTrigger.ExecutionWindowTrigger createPeriodicTrigger(WorkSpec workSpec) {
        int windowEndSeconds = convertMillisecondsToSeconds(workSpec.intervalDuration);
        int flexDurationSeconds = convertMillisecondsToSeconds(workSpec.flexDuration);
        int windowStartSeconds = windowEndSeconds - flexDurationSeconds;

        return Trigger.executionWindow(windowStartSeconds, windowEndSeconds);
    }
/**
     * Firebase accepts an execution window with a START and END.
     * Internally, it sets the flex duration to be END-START and interval duration to be END.
     * {@link com.firebase.jobdispatcher.GooglePlayJobWriter#writeExecutionWindowTriggerToBundle}
     */
Firebase accepts an execution window with a START and END.
Internally, it sets the flex duration to be END-START and interval duration to be END.
Firebase accepts an execution window with a START and END . Internally it sets the flex duration to be END - START and interval duration to be END .
private static JobTrigger.ExecutionWindowTrigger createPeriodicTrigger(WorkSpec workSpec) {
        int windowEndSeconds = convertMillisecondsToSeconds(workSpec.intervalDuration);
        int flexDurationSeconds = convertMillisecondsToSeconds(workSpec.flexDuration);
        int windowStartSeconds = windowEndSeconds - flexDurationSeconds;
        return Trigger.executionWindow(windowStartSeconds, windowEndSeconds);
    }
private static JobTrigger . ExecutionWindowTrigger createPeriodicTrigger ( WorkSpec workSpec ) { int windowEndSeconds = convertMillisecondsToSeconds ( workSpec . intervalDuration ) ; int flexDurationSeconds = convertMillisecondsToSeconds ( workSpec . flexDuration ) ; int windowStartSeconds = windowEndSeconds - flexDurationSeconds ; return Trigger . executionWindow ( windowStartSeconds , windowEndSeconds ) ; }
Firebase accepts an execution window with a START and END.
Firebase accepts an execution window with a START and END .