Lines Matching full:strictmode
46 import android.os.StrictMode;
182 // own pre-StrictMode network-on-Looper thread check. The
184 // instrumentation for StrictMode instead.
283 File file = new File("/sdcard/strictmode-service-dump.txt");
285 final StrictMode.ThreadPolicy oldPolicy = StrictMode.getThreadPolicy();
287 StrictMode.setThreadPolicy(StrictMode.ThreadPolicy.LAX);
289 StrictMode.setThreadPolicy(oldPolicy);
296 StrictMode.setThreadPolicy(oldPolicy);
319 final StrictMode.VmPolicy oldPolicy = StrictMode.getVmPolicy();
321 StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder()
331 StrictMode.setVmPolicy(oldPolicy);
340 StrictMode.noteSlowCall("my example call");
351 StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder(StrictMode.getVmPolicy())
356 StrictMode.conditionallyCheckInstanceCounts();
375 StrictMode.ThreadPolicy.Builder newPolicy = new StrictMode.ThreadPolicy.Builder();
387 StrictMode.ThreadPolicy policy = newPolicy.build();
389 StrictMode.setThreadPolicy(policy);