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
61 lines
1.3 KiB
Java
61 lines
1.3 KiB
Java
|
|
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();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|