You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
api-impl: misc stubs and fixes for Spotify II
This commit is contained in:
17
src/api-impl/android/app/job/JobInfo.java
Normal file
17
src/api-impl/android/app/job/JobInfo.java
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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>();
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user