FileDocCategorySizeDatePackage
StrictModeBenchmark.javaAPI DocAndroid 5.1 API1139Thu Mar 12 22:22:12 GMT 2015android.os

StrictModeBenchmark

public class StrictModeBenchmark extends com.google.caliper.SimpleBenchmark

Fields Summary
private android.os.StrictMode.ThreadPolicy
mOff
private android.os.StrictMode.ThreadPolicy
mOn
Constructors Summary
Methods Summary
public voidtimeToggleThreadPolicy(int reps)


        
        for (int i = 0; i < reps; i++) {
            StrictMode.setThreadPolicy(mOn);
            StrictMode.setThreadPolicy(mOff);
        }