Lines Matching refs:newPolicy
375 … StrictMode.ThreadPolicy.Builder newPolicy = new StrictMode.ThreadPolicy.Builder(); in onCreate()
376 if (checkNoWrite.isChecked()) newPolicy.detectDiskWrites(); in onCreate()
377 if (checkNoRead.isChecked()) newPolicy.detectDiskReads(); in onCreate()
378 if (checkNoNetwork.isChecked()) newPolicy.detectNetwork(); in onCreate()
379 if (checkCustom.isChecked()) newPolicy.detectCustomSlowCalls(); in onCreate()
380 if (checkResourceMismatch.isChecked()) newPolicy.detectResourceMismatches(); in onCreate()
381 if (checkPenaltyLog.isChecked()) newPolicy.penaltyLog(); in onCreate()
382 if (checkPenaltyDialog.isChecked()) newPolicy.penaltyDialog(); in onCreate()
383 if (checkPenaltyDeath.isChecked()) newPolicy.penaltyDeath(); in onCreate()
384 if (checkPenaltyDropBox.isChecked()) newPolicy.penaltyDropBox(); in onCreate()
385 if (checkPenaltyFlash.isChecked()) newPolicy.penaltyFlashScreen(); in onCreate()
386 if (checkPenaltyNetworkDeath.isChecked()) newPolicy.penaltyDeathOnNetwork(); in onCreate()
387 StrictMode.ThreadPolicy policy = newPolicy.build(); in onCreate()