Loading apex/jobscheduler/framework/java/android/app/job/JobInfo.java +0 −23 Original line number Diff line number Diff line Loading @@ -592,15 +592,6 @@ public class JobInfo implements Parcelable { return (flags & FLAG_EXPEDITED) != 0; } /** * @see JobInfo.Builder#setExpedited(boolean) * @deprecated Use {@link #isExpedited()} instead */ @Deprecated public boolean isForegroundJob() { return (flags & FLAG_EXPEDITED) != 0; } /** * @see JobInfo.Builder#setImportantWhileForeground(boolean) */ Loading Loading @@ -1502,20 +1493,6 @@ public class JobInfo implements Parcelable { return this; } /** * @deprecated Use {@link #setExpedited(boolean)} instead. */ @Deprecated @NonNull public Builder setForeground(boolean foreground) { if (foreground) { mFlags |= FLAG_EXPEDITED; } else { mFlags &= (~FLAG_EXPEDITED); } return this; } /** * Setting this to true indicates that this job is important while the scheduling app * is in the foreground or on the temporary whitelist for background restrictions. Loading core/api/current.txt +0 −2 Original line number Diff line number Diff line Loading @@ -7747,7 +7747,6 @@ package android.app.job { method public long getTriggerContentUpdateDelay(); method @Nullable public android.app.job.JobInfo.TriggerContentUri[] getTriggerContentUris(); method public boolean isExpedited(); method @Deprecated public boolean isForegroundJob(); method public boolean isImportantWhileForeground(); method public boolean isPeriodic(); method public boolean isPersisted(); Loading Loading @@ -7780,7 +7779,6 @@ package android.app.job { method public android.app.job.JobInfo.Builder setEstimatedNetworkBytes(long, long); method @NonNull public android.app.job.JobInfo.Builder setExpedited(boolean); method public android.app.job.JobInfo.Builder setExtras(@NonNull android.os.PersistableBundle); method @Deprecated @NonNull public android.app.job.JobInfo.Builder setForeground(boolean); method @Deprecated public android.app.job.JobInfo.Builder setImportantWhileForeground(boolean); method public android.app.job.JobInfo.Builder setMinimumLatency(long); method public android.app.job.JobInfo.Builder setOverrideDeadline(long); Loading
apex/jobscheduler/framework/java/android/app/job/JobInfo.java +0 −23 Original line number Diff line number Diff line Loading @@ -592,15 +592,6 @@ public class JobInfo implements Parcelable { return (flags & FLAG_EXPEDITED) != 0; } /** * @see JobInfo.Builder#setExpedited(boolean) * @deprecated Use {@link #isExpedited()} instead */ @Deprecated public boolean isForegroundJob() { return (flags & FLAG_EXPEDITED) != 0; } /** * @see JobInfo.Builder#setImportantWhileForeground(boolean) */ Loading Loading @@ -1502,20 +1493,6 @@ public class JobInfo implements Parcelable { return this; } /** * @deprecated Use {@link #setExpedited(boolean)} instead. */ @Deprecated @NonNull public Builder setForeground(boolean foreground) { if (foreground) { mFlags |= FLAG_EXPEDITED; } else { mFlags &= (~FLAG_EXPEDITED); } return this; } /** * Setting this to true indicates that this job is important while the scheduling app * is in the foreground or on the temporary whitelist for background restrictions. Loading
core/api/current.txt +0 −2 Original line number Diff line number Diff line Loading @@ -7747,7 +7747,6 @@ package android.app.job { method public long getTriggerContentUpdateDelay(); method @Nullable public android.app.job.JobInfo.TriggerContentUri[] getTriggerContentUris(); method public boolean isExpedited(); method @Deprecated public boolean isForegroundJob(); method public boolean isImportantWhileForeground(); method public boolean isPeriodic(); method public boolean isPersisted(); Loading Loading @@ -7780,7 +7779,6 @@ package android.app.job { method public android.app.job.JobInfo.Builder setEstimatedNetworkBytes(long, long); method @NonNull public android.app.job.JobInfo.Builder setExpedited(boolean); method public android.app.job.JobInfo.Builder setExtras(@NonNull android.os.PersistableBundle); method @Deprecated @NonNull public android.app.job.JobInfo.Builder setForeground(boolean); method @Deprecated public android.app.job.JobInfo.Builder setImportantWhileForeground(boolean); method public android.app.job.JobInfo.Builder setMinimumLatency(long); method public android.app.job.JobInfo.Builder setOverrideDeadline(long);