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
This commit is contained in:
@@ -4,6 +4,8 @@ public class FileObserver {
|
||||
|
||||
public FileObserver(String path, int mask) {}
|
||||
|
||||
public FileObserver(String path) {}
|
||||
|
||||
public void startWatching() {}
|
||||
|
||||
public void stopWatching() {}
|
||||
|
||||
@@ -11,6 +11,9 @@ public final class StrictMode {
|
||||
public Builder detectAll() {
|
||||
return this;
|
||||
}
|
||||
public Builder detectNetwork() {
|
||||
return this;
|
||||
}
|
||||
public Builder permitDiskReads() {
|
||||
return this;
|
||||
}
|
||||
@@ -20,9 +23,6 @@ public final class StrictMode {
|
||||
public Builder penaltyLog() {
|
||||
return this;
|
||||
}
|
||||
public Builder detectNetwork() {
|
||||
return this;
|
||||
}
|
||||
public ThreadPolicy build() {
|
||||
return new ThreadPolicy();
|
||||
}
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
package android.os;
|
||||
|
||||
public class UserManager {
|
||||
public boolean isUserUnlocked() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,6 +9,10 @@ public class Vibrator {
|
||||
fd = native_constructor();
|
||||
}
|
||||
|
||||
public boolean hasVibrator(){
|
||||
return true;
|
||||
}
|
||||
|
||||
public void vibrate(long millis) {
|
||||
if(fd != -1)
|
||||
native_vibrate(fd, millis);
|
||||
|
||||
Reference in New Issue
Block a user