void reportNewIdleState(Context context, boolean isIdle) {
        JobStore jobStore = JobStore.initAndGet(context);
        synchronized (jobStore) {
            ArraySet<JobStatus> jobs = jobStore.getJobs();
            for (int i = 0; i < jobs.size(); i++) {
                JobStatus ts = jobs.valueAt(i);
                ts.idleConstraintSatisfied.set(isIdle);
            }
        }
        startWakefulService(context, JobServiceCompat.maybeRunJobs(context));
    }
void reportNewIdleState(Context context, boolean isIdle) {
        JobStore jobStore = JobStore.initAndGet(context);
        synchronized (jobStore) {
            ArraySet<JobStatus> jobs = jobStore.getJobs();
            for (int i = 0; i < jobs.size(); i++) {
                JobStatus ts = jobs.valueAt(i);
                ts.idleConstraintSatisfied.set(isIdle);
            }
        }
        startWakefulService(context, JobServiceCompat.maybeRunJobs(context));
    }
void reportNewIdleState ( Context context , boolean isIdle ) { JobStore jobStore = JobStore . initAndGet ( context ) ; synchronized ( jobStore ) { ArraySet < JobStatus > jobs = jobStore . getJobs ( ) ; for ( int i = 0 ; i < jobs . size ( ) ; i ++ ) { JobStatus ts = jobs . valueAt ( i ) ; ts . idleConstraintSatisfied . set ( isIdle ) ; } } startWakefulService ( context , JobServiceCompat . maybeRunJobs ( context ) ) ; }
Interaction with the task manager service
Interaction with the task manager service