Home
last modified time | relevance | path

Searched refs:newPolicy (Results 1 – 2 of 2) sorted by relevance

/packages/experimental/StrictModeTest/src/com/android/strictmodetest/
DStrictModeActivity.java374 … StrictMode.ThreadPolicy.Builder newPolicy = new StrictMode.ThreadPolicy.Builder(); in onCreate()
375 if (checkNoWrite.isChecked()) newPolicy.detectDiskWrites(); in onCreate()
376 if (checkNoRead.isChecked()) newPolicy.detectDiskReads(); in onCreate()
377 if (checkNoNetwork.isChecked()) newPolicy.detectNetwork(); in onCreate()
378 if (checkCustom.isChecked()) newPolicy.detectCustomSlowCalls(); in onCreate()
379 if (checkPenaltyLog.isChecked()) newPolicy.penaltyLog(); in onCreate()
380 if (checkPenaltyDialog.isChecked()) newPolicy.penaltyDialog(); in onCreate()
381 if (checkPenaltyDeath.isChecked()) newPolicy.penaltyDeath(); in onCreate()
382 if (checkPenaltyDropBox.isChecked()) newPolicy.penaltyDropBox(); in onCreate()
383 if (checkPenaltyFlash.isChecked()) newPolicy.penaltyFlashScreen(); in onCreate()
[all …]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
DAccount.java413 public void setDeletePolicy(int newPolicy) { in setDeletePolicy() argument
415 mFlags |= (newPolicy << FLAGS_DELETE_POLICY_SHIFT) & FLAGS_DELETE_POLICY_MASK; in setDeletePolicy()