Merge "Fix issue #29871385: Need JobScheduler.scheduleAsPackage to be system API" into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
205bc262ce
@@ -6675,6 +6675,7 @@ package android.app.job {
|
|||||||
method public abstract java.util.List<android.app.job.JobInfo> getAllPendingJobs();
|
method public abstract java.util.List<android.app.job.JobInfo> getAllPendingJobs();
|
||||||
method public abstract android.app.job.JobInfo getPendingJob(int);
|
method public abstract android.app.job.JobInfo getPendingJob(int);
|
||||||
method public abstract int schedule(android.app.job.JobInfo);
|
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_FAILURE = 0; // 0x0
|
||||||
field public static final int RESULT_SUCCESS = 1; // 0x1
|
field public static final int RESULT_SUCCESS = 1; // 0x1
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ package android.app.job;
|
|||||||
|
|
||||||
import android.annotation.NonNull;
|
import android.annotation.NonNull;
|
||||||
import android.annotation.Nullable;
|
import android.annotation.Nullable;
|
||||||
|
import android.annotation.SystemApi;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@@ -75,6 +76,7 @@ public abstract class JobScheduler {
|
|||||||
* @return {@link #RESULT_SUCCESS} or {@link #RESULT_FAILURE}
|
* @return {@link #RESULT_SUCCESS} or {@link #RESULT_FAILURE}
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
|
@SystemApi
|
||||||
public abstract int scheduleAsPackage(JobInfo job, String packageName, int userId, String tag);
|
public abstract int scheduleAsPackage(JobInfo job, String packageName, int userId, String tag);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user