api-impl: misc stubs and fixes for Spotify II

This commit is contained in:
Daniel Panero
2024-11-03 01:04:40 +01:00
committed by Dani Pani
parent 4b36bca4c6
commit f48fce5932
9 changed files with 85 additions and 16 deletions

View File

@@ -0,0 +1,17 @@
package android.app.job;
import android.content.ComponentName;
public class JobInfo {
public static final class Builder {
public Builder(int jobId, ComponentName jobService) {}
public Builder setMinimumLatency(long minLatencyMillis) {
return this;
}
public Builder setRequiredNetworkType(int networkType) {
return this;
}
}
}

View File

@@ -1,4 +1,16 @@
package android.app.job;
import java.util.ArrayList;
import java.util.List;
public class JobScheduler {
/**
* Retrieve all jobs that have been scheduled by the calling application.
*
* @return a list of all of the app's scheduled jobs. This includes jobs that are
* currently started as well as those that are still waiting to run.
*/
public List<JobInfo> getAllPendingJobs() {
return new ArrayList<JobInfo>();
};
}