Lines Matching refs:setThreadPolicy
106 * StrictMode.setThreadPolicy(new {@link ThreadPolicy.Builder StrictMode.ThreadPolicy.Builder}()
435 * <p>The policy is enabled by {@link #setThreadPolicy}. The current policy can be retrieved
476 * StrictMode.setThreadPolicy(policy);
1098 public static void setThreadPolicy(final ThreadPolicy policy) {
1120 BlockGuard.setThreadPolicy(BlockGuard.LAX_POLICY);
1129 BlockGuard.setThreadPolicy(androidPolicy);
1167 * policy with {@link #setThreadPolicy}, returning the old policy so you can restore it at the
1170 * @return the old policy, to be passed to {@link #setThreadPolicy} to restore the policy at the
1193 * #setThreadPolicy}, returning the old policy so you can restore it at the end of a block.
1195 * @return the old policy, to be passed to setThreadPolicy to restore the policy.
1301 setThreadPolicy(builder.build());
1721 setThreadPolicy(oldPolicy);
1912 * #setThreadPolicy}.
1915 setThreadPolicy(new StrictMode.ThreadPolicy.Builder().detectAll().penaltyLog().build());