Lines Matching defs:SecurityPolicy
38 * This is a series of unit tests for backup/restore of the SecurityPolicy class.
49 private SecurityPolicy mSecurityPolicy;
130 mSecurityPolicy = SecurityPolicy.getInstance(mMockContext);
145 SecurityPolicy.setAccountPolicy(mMockContext, a3, p3ain, null);
153 SecurityPolicy.setAccountPolicy(mMockContext, a3, p3bin, null);
169 SecurityPolicy.setAccountPolicy(mMockContext, a4, p4in, null);
195 SecurityPolicy.setAccountPolicy(mMockContext, a5, p5in, null);
239 SecurityPolicy.setAccountPolicy(mMockContext, account, initial, null);
245 SecurityPolicy.setAccountPolicy(mMockContext, account, updated, null);
249 SecurityPolicy.clearAccountPolicy(
287 SecurityPolicy.setAccountHoldFlag(mMockContext, a2, false);
302 SecurityPolicy.setAccountPolicy(mMockContext, a1, p1, "security-sync-key-1");
307 SecurityPolicy.setAccountPolicy(mMockContext, a2, p2, "security-sync-key-2");
310 SecurityPolicy.clearAccountPolicy(mMockContext, a3);
312 mSecurityPolicy = SecurityPolicy.getInstance(mMockContext);
347 long nextExpiringAccountId = SecurityPolicy.findShortestExpiration(mMockContext);
355 SecurityPolicy.setAccountPolicy(mMockContext, a2, p2, null);
358 nextExpiringAccountId = SecurityPolicy.findShortestExpiration(mMockContext);
365 SecurityPolicy.setAccountPolicy(mMockContext, a3, p3, null);
368 nextExpiringAccountId = SecurityPolicy.findShortestExpiration(mMockContext);
375 SecurityPolicy.setAccountPolicy(mMockContext, a4, p4, null);
378 nextExpiringAccountId = SecurityPolicy.findShortestExpiration(mMockContext);
386 mSecurityPolicy = SecurityPolicy.getInstance(mMockContext);
393 SecurityPolicy.setAccountPolicy(mMockContext, a2, p2, null);
408 boolean wiped = SecurityPolicy.wipeExpiredAccounts(mMockContext);
419 SecurityPolicy.setAccountPolicy(mMockContext, a3, p3, null);
434 wiped = SecurityPolicy.wipeExpiredAccounts(mMockContext);