Home
last modified time | relevance | path

Searched refs:restorePolicyWithId (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
DPolicy.java138 public static Policy restorePolicyWithId(Context context, long id) { in restorePolicyWithId() method in Policy
139 return restorePolicyWithId(context, id, null); in restorePolicyWithId()
142 public static Policy restorePolicyWithId(Context context, long id, ContentObserver observer) { in restorePolicyWithId() method in Policy
/packages/apps/Email/tests/src/com/android/email/
DSecurityPolicyTests.java217 Policy policy = Policy.restorePolicyWithId(mMockContext, policyKey); in assertAccountPolicyConsistent()
227 Policy.restorePolicyWithId(mMockContext, oldKey)); in assertAccountPolicyConsistent()
252 Policy.restorePolicyWithId(mMockContext, oldKey)); in testSettingAccountPolicy()
/packages/apps/Email/provider_src/com/android/email/
DSecurityPolicy.java503 Policy policy = Policy.restorePolicyWithId(mContext, account.mPolicyKey); in policiesRequired()
606 oldPolicy = Policy.restorePolicyWithId(mContext, account.mPolicyKey); in setAccountPolicy()
/packages/apps/Email/tests/src/com/android/email/provider/
DPolicyTests.java101 Policy dbPolicy = Policy.restorePolicyWithId(mMockContext, account.mPolicyKey); in testSetAndClearAccountPolicy()
DProviderTests.java2309 assertNull(Policy.restorePolicyWithId(mMockContext, p1.mId)); in testCleanupOrphans()
2310 assertNull(Policy.restorePolicyWithId(mMockContext, p2.mId)); in testCleanupOrphans()
2312 assertNotNull(Policy.restorePolicyWithId(mMockContext, a.mPolicyKey)); in testCleanupOrphans()
/packages/apps/Email/provider_src/com/android/email/activity/setup/
DAccountSecurity.java302 account.mPolicy = Policy.restorePolicyWithId(mContext, policyId); in loadInBackground()
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountSettingsFragment.java464 Policy.restorePolicyWithId(getContext(), account.mPolicyKey, mObserver); in loadInBackground()