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: add stubs / simple stuff for OsmAnd
without native libs present, launches and renders white square in map view; with native libs present, segfaults in bundled skia
This commit is contained in:
60
src/api-impl/android/os/StrictMode.java
Normal file
60
src/api-impl/android/os/StrictMode.java
Normal file
@@ -0,0 +1,60 @@
|
||||
package android.os;
|
||||
|
||||
public final class StrictMode {
|
||||
public static void setThreadPolicy(final ThreadPolicy policy) {}
|
||||
public static void setVmPolicy(final VmPolicy policy) {}
|
||||
|
||||
public static final class ThreadPolicy {
|
||||
public static final class Builder {
|
||||
public Builder detectAll() {
|
||||
return this;
|
||||
}
|
||||
public Builder permitDiskReads() {
|
||||
return this;
|
||||
}
|
||||
public Builder permitDiskWrites() {
|
||||
return this;
|
||||
}
|
||||
public Builder penaltyLog() {
|
||||
return this;
|
||||
}
|
||||
public ThreadPolicy build() {
|
||||
return new ThreadPolicy();
|
||||
}
|
||||
}
|
||||
}
|
||||
public static final class VmPolicy {
|
||||
public static final class Builder {
|
||||
public Builder detectActivityLeaks() {
|
||||
return this;
|
||||
}
|
||||
public Builder detectAll() {
|
||||
return this;
|
||||
}
|
||||
public Builder detectLeakedSqlLiteObjects() {
|
||||
return this;
|
||||
}
|
||||
public Builder detectLeakedClosableObjects() {
|
||||
return this;
|
||||
}
|
||||
public Builder detectLeakedRegistrationObjects() {
|
||||
return this;
|
||||
}
|
||||
public Builder detectFileUriExposure() {
|
||||
return this;
|
||||
}
|
||||
public Builder penaltyDeath() {
|
||||
return this;
|
||||
}
|
||||
public Builder penaltyLog() {
|
||||
return this;
|
||||
}
|
||||
public Builder penaltyDropBox() {
|
||||
return this;
|
||||
}
|
||||
public VmPolicy build() {
|
||||
return new VmPolicy();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user