Home
last modified time | relevance | path

Searched refs:mPolicyKey (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Email/tests/src/com/android/email/provider/
DPolicyTests.java81 assertTrue(account1.mPolicyKey > 0); in testGetAccountIdWithPolicyKey()
83 assertTrue(account2.mPolicyKey > 0); in testGetAccountIdWithPolicyKey()
85 account1.mPolicyKey)); in testGetAccountIdWithPolicyKey()
87 account2.mPolicyKey)); in testGetAccountIdWithPolicyKey()
94 assertEquals(0, account.mPolicyKey); in testSetAndClearAccountPolicy()
100 assertTrue(account.mPolicyKey > 0); in testSetAndClearAccountPolicy()
101 Policy dbPolicy = Policy.restorePolicyWithId(mMockContext, account.mPolicyKey); in testSetAndClearAccountPolicy()
111 assertEquals(0, account.mPolicyKey); in testSetAndClearAccountPolicy()
DProviderTestUtils.java63 account.mPolicyKey = 0; in setupAccount()
308 assertEquals(caller + " mPolicyKey", expect.mPolicyKey, actual.mPolicyKey); in assertAccountEqual()
DAccountBackupRestoreTests.java73 assertEquals(0, actual.mPolicyKey); in assertRestoredAccountEqual()
DProviderTests.java2312 assertNotNull(Policy.restorePolicyWithId(mMockContext, a.mPolicyKey)); in testCleanupOrphans()
/packages/apps/Email/provider_src/com/android/email/
DSecurityPolicy.java502 if (account.mPolicyKey == 0) return; in policiesRequired()
503 Policy policy = Policy.restorePolicyWithId(mContext, account.mPolicyKey); in policiesRequired()
561 if (account.mPolicyKey > 0) { in setAccountPolicy()
564 Policy.CONTENT_URI, account.mPolicyKey)).build()); in setAccountPolicy()
605 if (account.mPolicyKey > 0) { in setAccountPolicy()
606 oldPolicy = Policy.restorePolicyWithId(mContext, account.mPolicyKey); in setAccountPolicy()
/packages/apps/Email/tests/src/com/android/email/
DSecurityPolicyTests.java212 long policyKey = account.mPolicyKey; in assertAccountPolicyConsistent()
219 assertEquals(account.mPolicyKey, policy.mId); in assertAccountPolicyConsistent()
321 assertTrue(a1a.mPolicyKey > 0); in testDisableAdmin()
324 assertTrue(a2a.mPolicyKey > 0); in testDisableAdmin()
327 assertTrue(a3a.mPolicyKey == 0); in testDisableAdmin()
/packages/apps/Email/tests/src/com/android/emailcommon/provider/
DAccountTest.java92 before.mPolicyKey = 66; in testSerializeAndDeserializeWithJSON()
116 assertEquals(0, after.mPolicyKey); // policy key is not serialized; field defaults to 0 in testSerializeAndDeserializeWithJSON()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
DAccount.java140 public long mPolicyKey; field in Account
280 mPolicyKey = cursor.getLong(CONTENT_POLICY_KEY_COLUMN); in restore()
750 values.put(AccountColumns.POLICY_KEY, mPolicyKey); in toContentValues()
891 dest.writeLong(mPolicyKey); in writeToParcel()
929 mPolicyKey = in.readLong(); in Account()
/packages/apps/Email/provider_src/com/android/email/activity/setup/
DAccountSecurity.java253 if (account == null || (account.mPolicyKey != 0 && account.mPolicy == null)) { in onLoadFinished()
300 final long policyId = account.mPolicyKey; in loadInBackground()
333 if (mAccount.mPolicyKey != 0) { in completeCreate()
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountSettingsFragment.java464 Policy.restorePolicyWithId(getContext(), account.mPolicyKey, mObserver); in loadInBackground()
/packages/apps/Email/provider_src/com/android/email/provider/
DEmailProvider.java1633 account.mPolicyKey = 0; in copyAccountTables()