Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a327e3b3 authored by Dianne Hackborn's avatar Dianne Hackborn Committed by Kenny Root
Browse files

DO NOT MERGE Fix issue #29871385: Need JobScheduler.scheduleAsPackage to be system API

(cherry picked from commit a0e55c43)

Change-Id: I415d7ddfc703111998688da71ec6c8f1e5d6d6fc
parent c68e6d67
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -6675,6 +6675,7 @@ package android.app.job {
    method public abstract java.util.List<android.app.job.JobInfo> getAllPendingJobs();
    method public abstract android.app.job.JobInfo getPendingJob(int);
    method public abstract int schedule(android.app.job.JobInfo);
    method public abstract int scheduleAsPackage(android.app.job.JobInfo, java.lang.String, int, java.lang.String);
    field public static final int RESULT_FAILURE = 0; // 0x0
    field public static final int RESULT_SUCCESS = 1; // 0x1
  }
+2 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ package android.app.job;

import android.annotation.NonNull;
import android.annotation.Nullable;
import android.annotation.SystemApi;

import java.util.List;

@@ -75,6 +76,7 @@ public abstract class JobScheduler {
     * @return {@link #RESULT_SUCCESS} or {@link #RESULT_FAILURE}
     * @hide
     */
    @SystemApi
    public abstract int scheduleAsPackage(JobInfo job, String packageName, int userId, String tag);

    /**