Lines Matching refs:StrictMode

50  * <p>StrictMode is a developer tool which detects things you might be
54 * <p>StrictMode is most commonly used to catch accidental disk or
79 * StrictMode.setThreadPolicy(new {@link ThreadPolicy.Builder StrictMode.ThreadPolicy.Builder}()
85 * StrictMode.setVmPolicy(new {@link VmPolicy.Builder StrictMode.VmPolicy.Builder}()
104 * But don't feel compelled to fix everything that StrictMode finds. In particular,
106 * StrictMode to find things you did by accident. Network requests on the UI thread
109 * <p class="note">StrictMode is not a security mechanism and is not
115 * more (or fewer) operations, so you should never leave StrictMode
118 public final class StrictMode {
119 private static final String TAG = "StrictMode";
171 * For StrictMode.noteSlowCall()
304 private StrictMode() {}
307 * {@link StrictMode} policy applied to a certain thread.
331 return "[StrictMode.ThreadPolicy; mask=" + mask + "]";
346 * StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder()
350 * StrictMode.setThreadPolicy(policy);
534 * {@link StrictMode} policy applied to all threads in the virtual machine's process.
559 return "[StrictMode.VmPolicy; mask=" + mask + "]";
574 * StrictMode.VmPolicy policy = new StrictMode.VmPolicy.Builder()
578 * StrictMode.setVmPolicy(policy);
961 int threadPolicyMask = StrictMode.DETECT_DISK_WRITE |
962 StrictMode.DETECT_DISK_READ |
963 StrictMode.DETECT_NETWORK;
966 threadPolicyMask |= StrictMode.PENALTY_DROPBOX;
969 threadPolicyMask |= StrictMode.PENALTY_FLASH;
972 StrictMode.setThreadPolicyMask(threadPolicyMask);
1115 // Not part of BlockGuard.Policy; just part of StrictMode:
1312 Log.d(TAG, "StrictMode policy violation; ~duration=" +
1315 Log.d(TAG, "StrictMode policy violation: " + info.crashInfo.stackTrace);
1320 // subset of the original StrictMode policy bitmask, with
1364 Log.e(TAG, "RemoteException trying to handle StrictMode violation", e);
1416 Log.e(TAG, "RemoteException handling StrictMode violation", e);
1473 private static boolean sIsIdlerRegistered = false; // guarded by StrictMode.class
1494 synchronized (StrictMode.class) {
1518 synchronized (StrictMode.class) {
1524 * Enable the recommended StrictMode defaults, with violations just being logged.
1532 StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder()
1536 StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder()
1653 // subset of the original StrictMode policy bitmask, with
1669 Log.e(TAG, "RemoteException trying to handle StrictMode violation", e);
1677 System.err.println("StrictMode VmPolicy violation with POLICY_DEATH; shutting down.");
1760 * requires changing the StrictMode policy mask. The role of this
1929 * current thread's {@link android.os.StrictMode.ThreadPolicy} has
1930 * {@link android.os.StrictMode.ThreadPolicy.Builder#detectCustomSlowCalls}
1939 // StrictMode not enabled.
1951 // StrictMode not enabled.
1963 // StrictMode not enabled.
1969 // Guarded by StrictMode.class
1990 synchronized (StrictMode.class) {
2010 synchronized (StrictMode.class) {
2039 // being restarted. Granted, it is only a problem when StrictMode is enabled
2273 new StackTraceElement("android.os.StrictMode", "setClassInstanceLimit",
2274 "StrictMode.java", 1)