Searched refs:mPolicyKey (Results 1 – 11 of 11) sorted by relevance
/packages/apps/Email/tests/src/com/android/email/provider/ |
D | PolicyTests.java | 81 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()
|
D | ProviderTestUtils.java | 63 account.mPolicyKey = 0; in setupAccount() 308 assertEquals(caller + " mPolicyKey", expect.mPolicyKey, actual.mPolicyKey); in assertAccountEqual()
|
D | AccountBackupRestoreTests.java | 73 assertEquals(0, actual.mPolicyKey); in assertRestoredAccountEqual()
|
D | ProviderTests.java | 2312 assertNotNull(Policy.restorePolicyWithId(mMockContext, a.mPolicyKey)); in testCleanupOrphans()
|
/packages/apps/Email/provider_src/com/android/email/ |
D | SecurityPolicy.java | 502 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/ |
D | SecurityPolicyTests.java | 212 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/ |
D | AccountTest.java | 92 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/ |
D | Account.java | 140 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/ |
D | AccountSecurity.java | 253 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/ |
D | AccountSettingsFragment.java | 464 Policy.restorePolicyWithId(getContext(), account.mPolicyKey, mObserver); in loadInBackground()
|
/packages/apps/Email/provider_src/com/android/email/provider/ |
D | EmailProvider.java | 1633 account.mPolicyKey = 0; in copyAccountTables()
|