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
This commit is contained in:
@@ -8,4 +8,8 @@ public class KeyguardManager {
|
||||
public boolean isKeyguardLocked() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean isKeyguardSecure() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
9
src/api-impl/android/app/backup/BackupAgent.java
Normal file
9
src/api-impl/android/app/backup/BackupAgent.java
Normal file
@@ -0,0 +1,9 @@
|
||||
package android.app.backup;
|
||||
|
||||
import android.content.ContextWrapper;
|
||||
|
||||
public abstract class BackupAgent extends ContextWrapper {
|
||||
public BackupAgent() {
|
||||
super(null);
|
||||
}
|
||||
}
|
||||
5
src/api-impl/android/app/backup/BackupAgentHelper.java
Normal file
5
src/api-impl/android/app/backup/BackupAgentHelper.java
Normal file
@@ -0,0 +1,5 @@
|
||||
package android.app.backup;
|
||||
|
||||
public class BackupAgentHelper extends BackupAgent {
|
||||
|
||||
}
|
||||
8
src/api-impl/android/app/backup/BackupManager.java
Normal file
8
src/api-impl/android/app/backup/BackupManager.java
Normal file
@@ -0,0 +1,8 @@
|
||||
package android.app.backup;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
public class BackupManager {
|
||||
public BackupManager(Context context) {
|
||||
}
|
||||
}
|
||||
@@ -10,15 +10,7 @@ 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;
|
||||
}
|
||||
|
||||
public Builder setOverrideDeadline(long a) {
|
||||
public Builder setBackoffCriteria(long initialBackoffMillis, int backoffPolicy) {
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -26,15 +18,15 @@ public class JobInfo {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder setRequiresCharging(boolean requiresCharging) {
|
||||
public Builder setMinimumLatency(long minLatencyMillis) {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder setRequiresDeviceIdle(boolean requiresDeviceIdle) {
|
||||
public Builder setOverrideDeadline(long a) {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder setBackoffCriteria(long initialBackoffMillis, int backoffPolicy) {
|
||||
public Builder setPeriodic(long dummy) {
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -42,6 +34,18 @@ public class JobInfo {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder setRequiredNetworkType(int networkType) {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder setRequiresCharging(boolean requires_charging) {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder setRequiresDeviceIdle(boolean requires_device_idle) {
|
||||
return this;
|
||||
}
|
||||
|
||||
public JobInfo build() {
|
||||
return new JobInfo();
|
||||
}
|
||||
|
||||
@@ -21,4 +21,7 @@ public class JobScheduler {
|
||||
public int schedule(JobInfo job) {
|
||||
return 1; //RESULT_SUCCESS
|
||||
}
|
||||
|
||||
public void cancel(int dummy) {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user